Skip to main content
Glama

SummarizeUsageRecords

PREFERRED for counts and totals (e.g. how many DHL labels today). Returns aggregated counts by carrier and user — no row limit. Use this instead of fetching hundreds of SearchUsageRecords rows. Partners see own partner scope only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateToNoEnd date yyyy-MM-dd inclusive (default: same as dateFrom)
carrierNoFilter carrier: DHL, DPD, PostNL, or enum name (optional)
dateFromNoStart date yyyy-MM-dd (default: today UTC)
intentIdNoIntent ID from RecordUserQuestion
organisationIdNoFilter to one organisation id (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: 'no row limit' and 'Partners see own partner scope only' (a data-scoping/auth constraint). It also states the aggregation granularity (by carrier and user). It stops short of describing the exact return structure or any rate/format limits, so not a 5.

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 tight sentences, front-loaded with the PREFERRED marker and the core purpose, followed by return shape and the sibling alternative. No filler; every sentence earns its place.

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?

For a 5-optional-param aggregation tool with no output schema and no annotations, the description covers purpose, output granularity, scope restriction, and the alternative. The defaults (today UTC, same-as-dateFrom) live in the schema, but the return format detail is thin, keeping it just short of complete.

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 coverage is 100%, so the schema already documents all five optional parameters with types, defaults, and formats. The description only implies date and carrier usage via its example ('how many DHL labels today') and adds no syntax beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb+resource (SummarizeUsageRecords) and clarifies the output shape: aggregated counts by carrier and user. It explicitly contrasts with a sibling (SearchUsageRecords rows), so an agent can distinguish it without opening any schema.

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

Usage Guidelines5/5

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

Marks itself PREFERRED for counts and totals, gives a concrete example (how many DHL labels today), and names the alternative to avoid (fetching hundreds of SearchUsageRecords rows). When-to-use and when-not-to-use are both explicit.

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