exploring-mcp-tool-usage
Fungsinya
Skill ini adalah titik awal untuk melihat bagaimana server MCP Anda digunakan. Ditujukan untuk orang yang menginginkan gambaran umum sebelum memutuskan apa yang akan diperiksa.
Kapan dipakai
- βSaat Anda bertanya bagaimana server MCP Anda berjalan dan belum tahu apa yang harus diperiksa.
- βSaat Anda ingin tahu siapa yang menggunakan alat MCP Anda.
- βSaat Anda menempelkan tautan analitik MCP dan ingin tahu apa yang ditampilkannya.
Link skill
https://github.com/PostHog/posthog/blob/master/products/mcp_analytics/skills/exploring-mcp-tool-usage/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana kabar server MCP saya? Tunjukkan apa yang sebaiknya saya periksa lebih dulu.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menawarkan menu singkat pertanyaan umum, lalu mengarahkan Anda ke alat yang tepat atau skill yang lebih fokus untuk menjawab pilihan Anda. Jawabannya sesuai dengan layar di PostHog.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Exploring MCP tool usage
Any MCP server instrumented with the @posthog/mcp SDK emits a $mcp_tool_call
event every time an agent invokes a tool. This skill is the front door for a
user who knows they want to look at their MCP tool usage but hasn't picked a
specific question. Offer the menu below, then route to the tool β or the focused
skill β that answers what they choose.
Governed metric first
When the question asks for an MCP failure rate or percentage, call posthog:metric-list before any typed tool or SQL recipe and look for mcp_tool_call_fail_pct. Run an approved, non-drifted match with posthog:data-catalog-metric-run for the canonical headline. If the user also asks which tool or harness drives failures, answer the headline first, then use the per-tool workflows below for a noncanonical breakdown. If no governed metric matches, say so and label the derived rate noncanonical.
Every per-tool tool here takes a
toolName (the effective tool name β resolved server-side, so pass the name the
agent actually invokes β except posthog:query-mcp-tool-failures, which
matches $exception events and so takes the raw registered $mcp_tool_name)
plus a dateRange, and runs the same query runner the tool-detail UI uses. So
results match the UI, and you never hand-write the HogQL.
Suggested questions
Lead with these when the user is unsure what to ask:
| Ask the user⦠| Answered by |
|---|---|
| "Which tools fail most, or are slowest?" | exploring-mcp-tool-quality (ranks all tools), then posthog:query-mcp-tool-stats to drill in |
| "How is tool X doing overall?" | posthog:query-mcp-tool-stats β calls, errors, p50/p95, users, sessions, intents |
| "How has tool X trended?" | posthog:query-mcp-tool-daily-stats β day-by-day series |
| "Why is tool X failing?" | posthog:query-mcp-tool-failures β top error messages, by harness (raw tool name) |
| "Who uses tool X the most?" | posthog:query-mcp-tool-top-users β top callers (incl. person email/name) |
| "What gets called right before/after tool X?" | posthog:query-mcp-tool-neighbors (neighborDirection: before/after) |
| "What are agents trying to do with tool X?" | posthog:query-mcp-tool-sample-intents β recent agent intents |
| "What description is tool X registered with?" | posthog:query-mcp-tool-descriptions β distinct descriptions seen |
| "Which harnesses use my MCP, how reliably?" | posthog:query-mcp-harness-breakdown β calls/errors/sessions per client |
| "What are agents trying to do, across all tools?" | exploring-mcp-intent-clusters β semantic goal clusters |
| "Who is connecting, and how active are they?" | posthog:mcp-analytics-sessions-list β one row per session, with client and person |
| "What did this one session do?" | exploring-mcp-sessions β a single agent run's tool sequence |
Finding the tool name
The per-tool tools need a toolName. If the user named a tool, pass it. If they
asked a broad "which toolβ¦" question, start with exploring-mcp-tool-quality to
rank the tools, pick the one that stands out, then drill in with the per-tool
tools above. The name to pass is the effective tool name (the inner tool for
single-exec wrapper calls) β the same string the tool-quality ranking returns.
The one exception is posthog:query-mcp-tool-failures, which matches $exception
events by the raw registered $mcp_tool_name, not the effective inner tool.
How to use a per-tool tool
Call it with the tool name and a window, e.g. for the headline numbers of a tool:
posthog:query-mcp-tool-stats { "toolName": "<tool>", "dateRange": { "date_from": "-7d" } }
Then offer a natural follow-up from the menu β e.g. after
posthog:query-mcp-tool-stats shows a high error rate, reach for
posthog:query-mcp-tool-failures; after
Pertanyaan umum
Pertanyaan apa saja yang bisa dijawab?
Skill mencakup pertanyaan tentang penggunaan, kualitas alat, sesi, dan tujuan yang dibawa agent ke server.
Apakah perlu SQL?
Tidak. Skill menggunakan alat bertipe untuk setiap pertanyaan, sehingga SQL jarang diperlukan.
Apa bedanya dengan skill kualitas alat?
Skill ini adalah pintu masuk yang membantu Anda memilih pertanyaan, sedangkan skill kualitas menggali lebih dalam ke error dan kecepatan.
Detail
Deskripsi asli dari pembuat
Starting point for exploring how a PostHog MCP server's tools are used β routes a broad question to the typed tool that answers it. Use when the user asks "how is my MCP doing?", "what should I look at?", "explore my tool calls", "who uses my MCP tools?", "what are agents doing with the MCP?", or pastes an MCP analytics URL without a specific question. Offers a menu of questions, each backed by a query tool, then hands off to the focused skill.
repo: PostHog/posthog
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6893
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
mcporter
394kMembantu agent Anda mendaftar, memanggil, dan memeriksa server MCP beserta alatnya lewat HTTP atau stdio, serta mengatur pengaturan login mereka.
fastmcp
260kMembantu Anda membangun, menguji, dan menerapkan server MCP Python yang memberi asisten AI akses ke API, basis data, atau file Anda sebagai alat.
mcp-oauth-remote-gateway
260kMemandu Anda masuk dengan OAuth untuk server MCP jarak jauh saat Hermes berjalan di server, di mana proses masuk browser biasa tidak dapat menjangkaunya.