Skip to main content
Glama

analytics

Read-onlyIdempotent

Read bounded workspace usage, spend (settledMicros, heldMicros, byKey, byTag), and per-model/route reliability and latency cohorts (p50Ms, p95Ms) over a date window up to 31 days. Read-only (requires read scope).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyIdNoOptional API key ID filter.
sinceNoOptional inclusive ISO-8601 UTC start timestamp (default last 7 days, max 31-day window).
untilNoOptional exclusive ISO-8601 UTC end timestamp (default now).
statusNoOptional generation status filter.
modelIdNoOptional exact model ID filter.
projectNoOptional private metadata.project filter.
operationNoOptional generation operation filter.
providerIdNoOptional serving provider ID filter.
deploymentIdNoOptional regional deployment ID filter.
endpointRegionNoOptional endpoint region filter.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds context the annotations do not: it requires read scope and is bounded to a 31-day window, and it names the returned metric families (settledMicros, heldMicros, byKey, byTag, p50Ms, p95Ms).

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

Conciseness4/5

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

Two short sentences, front-loaded with the resource and the metrics returned, followed by the access requirement and window bound. Dense but every phrase carries information; the metric-list parentheticals are slightly heavy but justify themselves given the lack of an output schema.

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?

With no output schema, the description compensates by naming the returned fields (settledMicros, heldMicros, byKey, byTag, p50Ms, p95Ms), and all filters are fully documented in the schema. The window bound and scope requirement cover the remaining behavioral risk for a read-only tool.

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

Parameters3/5

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

Schema description coverage is 100%, with every one of the 10 optional filters individually documented, so the schema does the heavy lifting. The description only reinforces the date-window constraint (max 31 days), which the since parameter already states, adding no new filter semantics. Baseline 3 applies.

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

Purpose4/5

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

"Read bounded workspace usage, spend ... and per-model/route reliability and latency cohorts" gives a specific verb (read) and names the concrete resources (usage, spend, reliability, latency). It is clear what the tool returns, but it never distinguishes itself from siblings like balance or estimate_cost, which touch adjacent cost data.

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

Usage Guidelines3/5

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

The usage context is implied: it is the tool for reviewing workspace usage/spend and per-model reliability over a window. There is no explicit when-to-use or when-not-to-use statement, and no routing toward alternatives such as balance or estimate_cost for simpler cost questions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources