Skip to main content
Glama

get_trace_stats

Retrieve CUDA and host operation latency statistics, including percentiles for small databases and aggregate metrics for large databases. Works with live or saved tracing data.

Instructions

Get CUDA and host operation statistics. Returns p50/p95/p99 for small DBs (≤500K events), count/avg/min/max from aggregates for large DBs. Works with both live and saved/offline databases. Omit 'since' for saved DBs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tscNotelegraphic compression (default: true). Set false for verbose output.
sinceNotime range relative to NOW, e.g. 1m, 5m, 1h. Omit for saved/offline DBs to query ALL events. Only useful during live tracing.
Behavior4/5

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

No annotations, so description carries full burden. Discloses behavior for small vs large DBs and live vs saved databases. No side effects mentioned, but for a read-only tool this is sufficient.

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?

Three sentences, tightly written with no redundant information. Front-loaded with purpose, then details on statistics, then usage guidance.

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

Completeness5/5

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

No output schema, but description explains return values based on DB size. Covers both live and saved databases. No missing critical information for a statistics retrieval tool.

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?

Schema coverage is 100% with descriptions. Description adds value by explaining 'since' usage (omit for saved DBs) and tsc (telegraphic compression). Adds context beyond schema definitions.

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?

Clearly states it gets CUDA and host operation statistics with specific return values (p50/p95/p99 for small DBs, count/avg/min/max for large DBs). Distinguishes from sibling tools like get_causal_chains or get_check.

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?

Explicitly says to omit 'since' for saved DBs and use during live tracing. Provides clear context for when the tool is applicable. Could be improved by stating when not to use this tool vs alternatives.

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/ingero-io/ingero'

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