Skip to main content
Glama

analyze_perf

Read-onlyIdempotent

Analyze per-tool latency metrics (p50, p95, max, count, error rate) to identify the slowest tools. Supports session or persistent time windows (1h/24h/7d/all). Returns JSON, Markdown, or TOON.

Instructions

Per-tool latency telemetry: p50/p95/max, count, error_rate. Default reads the current session ring; window=1h|24h|7d|all reads from ~/.trace-mcp/telemetry.db (requires telemetry.enabled in config). Sorted by p95 descending so the slowest tools surface first. Read-only. Returns JSON: { tools: [{ tool, p50, p95, max, count, errors, error_rate }], total_tools, source }. Set output_format: "toon" for lossless TOON encoding — cheaper LLM tokens on tabular payloads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoCap on number of tools returned (default 20)
toolYesFilter to a single tool by name
windowNoTime window. "session" (default) uses the in-memory ring. "1h"/"24h"/"7d"/"all" read from the persistent telemetry DB.
output_formatNoOutput format. "json" (default) returns JSON, "markdown" returns LLM-friendly fenced markdown (tool-specific), "toon" returns Token-Oriented Object Notation — 30-60% fewer tokens on tabular data, fully lossless.
Behavior4/5

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

Annotations already declare readOnlyHint=true, etc. The description adds valuable behavioral details: output structure, sorting order, source of data (session ring vs DB), and the requirement for telemetry.enabled for persistent windows. It also introduces the TOON output format and its benefits.

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 two sentences, front-loading the purpose, and each sentence adds essential information without redundancy. It efficiently covers behavior, parameters, and output without wasted words.

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?

Given no output schema, the description provides a detailed output structure. It covers parameters, sources, and conditions. However, it does not explicitly state that 'tool' is required (as per schema), which could slightly reduce completeness for an agent.

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

Parameters5/5

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

The input schema has 100% coverage, and the description adds meaning for each parameter: it explains the default for window, the behavior of output_format options (including token savings for TOON), and the filtering purpose of tool. This goes beyond the schema descriptions.

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 'Per-tool latency telemetry: p50/p95/max, count, error_rate.' It specifies a specific verb (analyze) and resource (latency telemetry), and distinguishes itself from sibling tools by focusing on performance data with sorting by p95 descending.

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 explains when to use different window options ('Default reads the current session ring; window=1h|24h|7d|all reads from persistent DB') and mentions the prerequisite (telemetry.enabled). It does not explicitly state when not to use or compare to alternatives, but context is clear.

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/nikolai-vysotskyi/trace-mcp'

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