Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(aio): align MCP tool scopes with the API (#111839)

Julian Bez50b3e1d1c0bf
diff --git a/products/ai_observability/mcp/tools.yaml b/products/ai_observability/mcp/tools.yaml
index 01c087a023ce..d27440e35bf3 100644
--- a/products/ai_observability/mcp/tools.yaml
+++ b/products/ai_observability/mcp/tools.yaml
@@ -623,7 +623,7 @@ tools:
operation: llm_analytics_evaluation_config_retrieve
enabled: true
scopes:
- - evaluation:read
+ - llm_analytics:read
annotations:
readOnly: true
destructive: false
@@ -773,7 +773,7 @@ tools:
operation: llm_analytics_models_retrieve
enabled: true
scopes:
- - evaluation:read
+ - llm_analytics:read
annotations:
readOnly: true
destructive: false
diff --git a/products/ai_observability/skills/exploring-llm-evaluations/SKILL.md b/products/ai_observability/skills/exploring-llm-evaluations/SKILL.md
index 40c71211ca07..1b2ed70a7a42 100644
--- a/products/ai_observability/skills/exploring-llm-evaluations/SKILL.md
+++ b/products/ai_observability/skills/exploring-llm-evaluations/SKILL.md
@@ -428,8 +428,8 @@ Always surface the relevant link so the user can verify in the UI.
- When showing failure patterns to the user, always include 1-2 example trace links so
they can validate the pattern visually
- `llma-evaluation-*` tools use `evaluation:read` for read tools and `evaluation:write` for
- mutating tools; the `llma-evaluation-report-*` tools use `llm_analytics:read` and
- `llm_analytics:write`
+ mutating tools, except `llma-evaluation-config-get` and `llma-evaluation-judge-models`,
+ which use `llm_analytics:read`
- Hog evaluators are reproducible — if you suspect a regression, `llma-evaluation-test-hog`
with the suspect source against the failing generations is the fastest way to bisect
whether the change is in the evaluator or in the producer of the generations
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index d28070e56d61..879e9951b431 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -7548,7 +7548,7 @@
"feature": "llm_analytics",
"summary": "Get evaluation config",
"title": "Get evaluation config",
- "required_scopes": ["evaluation:read"],
+ "required_scopes": ["llm_analytics:read"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -7688,7 +7688,7 @@
"feature": "llm_analytics",
"summary": "List supported llm_judge models",
"title": "List supported llm_judge models",
- "required_scopes": ["evaluation:read"],
+ "required_scopes": ["llm_analytics:read"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index b421dd12e982..28e5df3134e9 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -7759,7 +7759,7 @@
"feature": "llm_analytics",
"summary": "Get evaluation config",
"title": "Get evaluation config",
- "required_scopes": ["evaluation:read"],
+ "required_scopes": ["llm_analytics:read"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -7899,7 +7899,7 @@
"feature": "llm_analytics",
"summary": "List supported llm_judge models",
"title": "List supported llm_judge models",
- "required_scopes": ["evaluation:read"],
+ "required_scopes": ["llm_analytics:read"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,