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.

feat(llma): add product vocabulary to MCP exec tool description (#65986)

Thomas Obermüller2d368acb330d
diff --git a/services/mcp/src/templates/sections/exec-tool-blurb.md b/services/mcp/src/templates/sections/exec-tool-blurb.md
index 059dc9592c38..911466645ff7 100644
--- a/services/mcp/src/templates/sections/exec-tool-blurb.md
+++ b/services/mcp/src/templates/sections/exec-tool-blurb.md
@@ -1,5 +1,7 @@
### Using the `posthog` tool
+PostHog: dashboards, insights, funnels, SQL, experiments, surveys, replay, error tracking, flags.
+
Pass CLI-style commands in the `command` parameter for all PostHog interactions.
**MANDATORY — HARD REQUIREMENTS**
diff --git a/services/mcp/src/tools/exec.ts b/services/mcp/src/tools/exec.ts
index 25d0306ea93f..8ee01efb09cd 100644
--- a/services/mcp/src/tools/exec.ts
+++ b/services/mcp/src/tools/exec.ts
@@ -205,7 +205,7 @@ export function createExecTool(
return {
name: 'exec',
- title: 'Execute PostHog command',
+ title: 'PostHog analytics, dashboards, insights, feature flags & more',
description: toolDescription,
schema: ExecSchema,
scopes: [],
diff --git a/services/mcp/tests/unit/__snapshots__/exec-tool.json b/services/mcp/tests/unit/__snapshots__/exec-tool.json
index 2e6c4e4fb4ac..f53202e0ac3d 100644
--- a/services/mcp/tests/unit/__snapshots__/exec-tool.json
+++ b/services/mcp/tests/unit/__snapshots__/exec-tool.json
@@ -1,7 +1,7 @@
{
"name": "exec",
- "title": "Execute PostHog command",
- "description": "### Using the `posthog` tool\n\nPass CLI-style commands in the `command` parameter for all PostHog interactions.\n\n**MANDATORY — HARD REQUIREMENTS**\n\n1. Discover tools first with `search` or `tools`.\n2. Run `info <tool_name>` BEFORE every `call <tool_name> <json>`.\n\nBLOCKING, like reading a file before editing it. Tool names and schemas are NOT predictable — never assume.\n\n**Commands (in order):**\n\n```text\n# 1. Discover (preferred: focused regex over name/title/description)\nposthog:exec({ \"command\": \"search <regex>\" })\nposthog:exec({ \"command\": \"tools\" }) # fallback: list all\n\n# 2. Check description + top-level schema (REQUIRED before call)\nposthog:exec({ \"command\": \"info <tool_name>\" })\n\n# 3. Drill into complex fields — REQUIRED for any field with a `hint`\nposthog:exec({ \"command\": \"schema <tool_name> <field_path>\" })\n\n# 4. Call the tool\nposthog:exec({ \"command\": \"call <tool_name> <json_input>\" })\nposthog:exec({ \"command\": \"call --json <tool_name> <json_input>\" })\n```\n\n**Schema drill-down:**\n\n- `info` returns the full schema if it fits the token budget; otherwise it auto-summarizes (names, types, required, enums, defaults) and attaches `hint` entries pointing to `schema <tool> <path>` for complex fields.\n- `schema <tool>` (no path) returns the summarized top-level schema.\n- `schema <tool> <path>` resolves a dot path, descending through:\n - object `properties` (e.g. `query.source`)\n - array `items` — numeric segments step into items (`events.0.properties`), or jump to a property on the item type (`events.id`)\n - `anyOf`/`oneOf` — numeric segment picks a variant by index, or a property name matches any object variant defining it\n- Oversized sub-schemas are also summarized with a `note` to drill further.\n- Unknown paths return an error listing available child paths.\n\n**Not supported:**\n\n- `search` matches tool metadata only, not input schemas.\n- No pattern-based field projection — drill one path at a time.",
+ "title": "PostHog analytics, dashboards, insights, feature flags & more",
+ "description": "### Using the `posthog` tool\n\nPostHog: dashboards, insights, funnels, SQL, experiments, surveys, replay, error tracking, flags.\n\nPass CLI-style commands in the `command` parameter for all PostHog interactions.\n\n**MANDATORY — HARD REQUIREMENTS**\n\n1. Discover tools first with `search` or `tools`.\n2. Run `info <tool_name>` BEFORE every `call <tool_name> <json>`.\n\nBLOCKING, like reading a file before editing it. Tool names and schemas are NOT predictable — never assume.\n\n**Commands (in order):**\n\n```text\n# 1. Discover (preferred: focused regex over name/title/description)\nposthog:exec({ \"command\": \"search <regex>\" })\nposthog:exec({ \"command\": \"tools\" }) # fallback: list all\n\n# 2. Check description + top-level schema (REQUIRED before call)\nposthog:exec({ \"command\": \"info <tool_name>\" })\n\n# 3. Drill into complex fields — REQUIRED for any field with a `hint`\nposthog:exec({ \"command\": \"schema <tool_name> <field_path>\" })\n\n# 4. Call the tool\nposthog:exec({ \"command\": \"call <tool_name> <json_input>\" })\nposthog:exec({ \"command\": \"call --json <tool_name> <json_input>\" })\n```\n\n**Schema drill-down:**\n\n- `info` returns the full schema if it fits the token budget; otherwise it auto-summarizes (names, types, required, enums, defaults) and attaches `hint` entries pointing to `schema <tool> <path>` for complex fields.\n- `schema <tool>` (no path) returns the summarized top-level schema.\n- `schema <tool> <path>` resolves a dot path, descending through:\n - object `properties` (e.g. `query.source`)\n - array `items` — numeric segments step into items (`events.0.properties`), or jump to a property on the item type (`events.id`)\n - `anyOf`/`oneOf` — numeric segment picks a variant by index, or a property name matches any object variant defining it\n- Oversized sub-schemas are also summarized with a `note` to drill further.\n- Unknown paths return an error listing available child paths.\n\n**Not supported:**\n\n- `search` matches tool metadata only, not input schemas.\n- No pattern-based field projection — drill one path at a time.",
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
diff --git a/services/mcp/tests/unit/__snapshots__/instructions/exec-tool-description.txt b/services/mcp/tests/unit/__snapshots__/instructions/exec-tool-description.txt
index 18bfc191954b..d2e193f02802 100644
--- a/services/mcp/tests/unit/__snapshots__/instructions/exec-tool-description.txt
+++ b/services/mcp/tests/unit/__snapshots__/instructions/exec-tool-description.txt
@@ -1,5 +1,7 @@
### Using the `posthog` tool
+PostHog: dashboards, insights, funnels, SQL, experiments, surveys, replay, error tracking, flags.
+
Pass CLI-style commands in the `command` parameter for all PostHog interactions.
**MANDATORY — HARD REQUIREMENTS**