Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add last9/last9-mcp-server --skill analyze-slow-queriesgit clone --depth 1 https://github.com/last9/last9-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/last9/last9-mcp-server/analyze-slow-queries)<a href="https://agentmods.dev/skills/last9/last9-mcp-server/analyze-slow-queries"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/analyze-slow-queries/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/analyze-slow-queries"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/analyze-slow-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.00330 |
| Opus 5.5 | $0.00010 | $0.00132 |
| Sonnet 5.5 | $0.00005 | $0.00066 |
| Haiku 4.5 | $0.00002 | $0.00033 |
Grade A, and why
analyze-slow-queries scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Workflow: analyze slow database queries on <db_system> (host ) over .
Steps:
- Call get_database_slow_queries (db_system=<db_system>, host=) over to rank the slowest queries.
- Call get_database_server_metrics (db_system=<db_system>) over to check whether server-side pressure (connections, memory, disk) explains the slowness.
Report the slowest query pattern and whether it is query-shape-bound or server-resource-bound. Map to each tool's lookback minutes or absolute range.
Additional rendered branches: Workflow: analyze slow database queries (host ) over .
- Call get_database_slow_queries (no db_system filter, so it surveys all database systems, host=) over to rank the slowest queries.
- From step 1, pick the database system behind the slowest queries, then call get_database_server_metrics (db_system = the system identified in step 1) over to check whether server-side pressure (connections, memory, disk) explains the slowness. Workflow: analyze slow database queries on <db_system> over .
- Call get_database_slow_queries (db_system=<db_system>) over to rank the slowest queries.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +7 lines 4b1e80dc0d47
- yesterday First seen · 15 lines · 24 tokens per session scan A c4ec25ad713b
analyze-slow-queries is a skill published in the GitHub repository last9/last9-mcp-server (62 stars, last pushed today), licensed Apache-2.0. It adds 24 tokens to every session and 330 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
analyze-slow-queries compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| analyze-slow-querieslast9/last9-mcp-server | Skill | 62 | today | Apache-2.0 | A | 24 | Claude Code, Codex |
| observability-phoenixdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 47 | Claude Code, Codex |
| sql-optimization-patternswshobson/agents | Skill | 43k | 3d ago | MIT | A | 44 | Claude Code |
| langsmith-observabilitysynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 45 | Claude Code, Codex |
| mongodb-query-optimizerfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 98 | Claude Code |
| solr-querygriddynamics/rosetta | Skill | 384 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| qdrant-advisorqdrant/skills | Skill | 271 | yesterday | Apache-2.0 | A | 216 | Claude Code |