Repository navigation
Conversation
In the first 24h of hosted MCP analytics, 0 of 136 tool calls carried llm_model: agents skip optional arguments that only the tool schema describes. The initialize instructions now ask them to set it on every call, so PostHog can compare tool quality by model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Merging this PR will not alter performance
Comparing Footnotes
|
|
|
@coderabbitai review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Action not completed
|



Summary
Follow-up to #4235. In the first 24h of prod data (2026-11-27 15:21 → 2026-11-28 15:30 UTC) the hosted MCP emitted 136
$mcp_tool_callevents (1:1 withHosted MCP Tool Invoked), but 0 of 136 carried$mcp_llm_model, so PostHog's tool-quality-by-model view is empty.The argument is advertised on all 85 tools and the pipeline works: a manual
capgo_list_appscall withllm_modellanded as$mcp_llm_model=claude-opus-5-5,$mcp_llm_model_source=self_reported. Agents just don't fill an optional argument that only the tool schema describes.This adds one sentence to the
initializeinstructions asking agents to setllm_modelon every Capgo tool call. Instructions stay within the 2048-byte Claude Code limit (1653 → ~1790 bytes).Not included
Grouping sessions by
Mcp-Session-Id: the stateless server never issues one, so clients never send it back. Doing that would require issuing (and then honoring) session IDs, which is out of scope here. Sessions stay one per HTTP request.Test plan
tests/mcp-analytics.unit.test.ts: instructions ask forllm_model, andinitializereturns themtests/mcp-remote.unit.test.ts: instructions byte limit still holdstsc --project tsconfig.backend.json, oxlint, eslint$mcp_tool_callwith$mcp_llm_modelset rises above 0🤖 Generated with Claude Code