exploring-mcp-intent-clusters
What it does
This skill shows the goals AI agents are trying to reach through your MCP server, grouped by similar purpose, with the error rate for each group. It is for teams who run an MCP server and want to know what people use it for.
When to use it
- βWhen you want to know what AI agents are trying to do with your MCP server.
- βWhen you want to find which agent goals fail most often.
- βWhen you want to know which MCP tool serves a goal, and whether agents find it easily.
Skill link
https://github.com/PostHog/posthog/blob/master/products/mcp_analytics/skills/exploring-mcp-intent-clusters/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhat are agents trying to do with my MCP server, and which of those goals fail the most?β
5 new skills a week. 1 minute to read.
How it works
It uses a stored snapshot of grouped agent goals, each with its tools, call counts and error rates. You can also ask for a fresh recompute, which runs in the background.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Exploring MCP intent clusters
Intent clustering takes the free-text $mcp_intent values agents attach to
their tool calls, embeds them, and groups semantically similar goals into
clusters. Attribution is per call: each call is credited to its own intent
(calls without one inherit the most recent prior intent in the same session),
so a tool's counts reflect the intent it actually served. Each cluster carries
its tool distribution, call counts, and error rates β answering "what are
people trying to do, and does it work?" rather than "which tool was called".
The snapshot also carries a tool-centric pivot answering the reverse question:
for a given tool, which intents drive its usage, how often do agents find it,
and who does it compete with.
Unlike tool quality and sessions (which ultimately aggregate $mcp_tool_call),
clustering needs embeddings and is not expressible in SQL. It is served by
two typed tools backed by a stored snapshot.
Tools
| Tool | Purpose |
|---|---|
posthog:mcp-analytics-intent-clusters-retrieve |
Fetch the latest cluster snapshot for the project |
posthog:mcp-analytics-intent-clusters-recompute |
Trigger an async recompute of the snapshot |
Workflow: read the current clusters
posthog:mcp-analytics-intent-clusters-retrieve
{}
Returns a snapshot with status, last_computed_at, computed_with (the
embedding model, clustering parameters, and sample-coverage percentages), a
clusters array, a tools array (the tool pivot), and tool_overlaps. Each
cluster has a label, intent_count, call_count, error_count,
error_rate_pct, routing_entropy, a tool_distribution (which tools that
goal routes to, with per-tool error rates), sample_intents, plus switches
(errored call immediately followed by a different tool for the same intent β
the strongest "agents mix these tools up" evidence) and self_retries
(errored call immediately retried with the same tool β a sign the tool's
error messages aren't helping agents self-correct).
Read clusters by call_count for "what are agents mostly doing", or by
error_rate_pct for "which goals are failing" β a high error rate on a cluster
points at a class of agent goals the tools serve badly.
routing_entropy is how spread-out a cluster's tool usage is: low entropy means
one goal reliably maps to one tool; high entropy means agents are casting around
for the right tool for that goal (often a missing-capability signal).
Workflow: answer "is my tool discoverable?" from the tool pivot
Each entry in tools carries:
clustersβ the intent clusters the tool serves, each withcapture_pct(its share of the cluster's calls),rank,top_competitor(the strongest other tool and its share), anddescription_fit(cosine similarity between the tool's description and the cluster centroid; null until descriptions are captured). Entries carry onlycluster_id, not the cluster's own label or totals β join them against the top-levelclustersarray on that idn_clusters_servedβ how many clusters the tool serves in total. The entry list above is capped, so compare the two before saying "this tool serves N intents"discovery_rate_pctβ of the sampled sessions whose$mcp_tools_listcatalog advertised the tool, the share that actually called it; null when the tool was advertised in fewer than 5 sampled sessionscontested_scoreβ call-weighted mean entropy of its clusters: how often its intents are split with other tools
High description_fit with low capture_pct is the discoverability failure:
agents should find the tool for that intent but pick something else. Low fit
with high capture means the description undersells what the tool actually does.
tool_overlaps lists pairs competing for the same intents; use
sessions_with_both vs sessions_with_either to separate workflows (used
together) from confusion (one or the other).
Read coverage before quoting numbers: computed_with.sampled_sessions /
session_coverage_pct say how much of the window the corpus represents, and
advertisement_coverage_pct bounds what discovery rates can see. Only sessions
with an observed tools-list catalog enter discovery denominators, and sessions
in exec-wrapper mode advertise only the wrapper, so p
FAQ
Where do the goals come from?
They come from the intent that agents attach to each tool call, so each call is counted under its own goal.
Can I refresh the groups on demand?
Yes. A recompute of the snapshot can be started, and it runs asynchronously.
Is this the same as tool quality?
No. Tool quality looks at errors and speed for each tool, while this skill groups the goals behind the calls.
Details
Original description by the author
Explore PostHog MCP intent clusters β agent goals grouped by semantic similarity, with each cluster's tool distribution and error rates, plus the tool-centric pivot (capture rate per intent, discovery rate against the advertised catalog, description fit, tool overlaps). Use when the user asks "what are agents trying to do with the MCP?", "group the intents", "which goals fail most?", "what does each cluster route to?", "when agents have this intent do they find my tool?", "which tools get mixed up?", wants to recompute the clustering, or pastes an MCP analytics intent-clustering URL.
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6890
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.