Skip to main content
Glama
jgravelle
by jgravelle

analyze_perf

Read-only

Review per-tool latency and cache-hit statistics: p50/p95/max latency, error rate, slowest tools, and cache hit rates from session or persistent windows.

Instructions

Per-tool latency and cache-hit telemetry. Returns p50/p95/max latency and error rate per tool, the slowest tools by p95, and result-cache hit rates (aggregate / get_correlations / get_data_hotspots are the cached tools). window=session reads the always-on in-memory ring; window=1h/24h/7d/all reads the persistent SQLite sink (requires JDATAMUNCH_PERF_TELEMETRY=1). Sibling of jcodemunch / jdocmunch analyze_perf.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMax slowest-tools / coldest-caches returned.
toolNoRestrict the analysis to a single tool name.
windowNosession = in-memory ring; others read the persistent perf db.session
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint=true annotated, the description adds value by detailing behavior: the in-memory ring versus persistent SQLite sink, the prerequisite JDATAMUNCH_PERF_TELEMETRY=1 for persistent modes, and which tools are cached. It does not contradict the annotation and provides useful context beyond the safety flag.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three concise sentences that front-load the core purpose and outputs. Each sentence adds distinct information: definition, return metrics, and window behavior details. No wasted words, and the structure leads with the most important information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description lists the return values but does not specify the exact JSON structure. It covers the key aspects: operation, parameter effects, and environmental prerequisites. The sibling mention adds a minor contextual clue, though it could be confusing. Overall, it is sufficiently complete for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already provides descriptions for all three parameters (top, tool, window), so baseline is 3. The description adds semantics by explaining the window parameter's behavior (session vs persistent modes) and naming the cached tools, which is not in the schema. This incremental value justifies a 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Per-tool latency and cache-hit telemetry.' It lists specific outputs (p50/p95/max latency, error rate, slowest tools, cache hit rates), making it distinct from sibling tools which focus on data operations. The verb 'returns' is explicit and resource-specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context on when to use the tool by explaining the window parameter modes and the environment variable requirement for persistent data. However, it does not explicitly state when not to use it or mention alternative tools for similar tasks, missing a direct exclusion clause.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgravelle/jdatamunch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server