Skip to main content
Glama

Get a usage summary

get_analytics_summary
Read-onlyIdempotent

Get a usage summary

Returns usage over a date window, aggregated into one row per usage type, with the quantity consumed and the revenue, cost and margin that go with it. Rows appear only for usage types that were actually recorded in the window, so an idle account gets an empty metrics array rather than rows of zeroes. Both bounds are optional: without them the window is the last 30 days ending now. The window that was actually applied is echoed in period.

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": "get_analytics_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the window, inclusive. Defaults to now. A date-time value is accepted as well as a date.
fromNoStart of the window, inclusive. Defaults to 30 days before now. A date-time value is accepted as well as a date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 closed-world scope, so the safety profile is covered. The description adds genuinely useful behavior beyond that: rows only appear for usage types actually recorded, an idle account yields an empty `metrics` array rather than zero rows, and the applied window is echoed in `period`. It does not mention authorization scope (account-wide vs. user) or rate limits.

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?

The content is front-loaded and each sentence carries real information, particularly the empty-array rule. The opening line duplicates the title before the substantive content begins, which is minor wasted space in an otherwise tight definition.

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

Completeness3/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 well by describing the returned row shape, the empty-result case, and the echoed `period`. What it lacks is any account-scoping statement or differentiation from the many sibling analytics tools, which an agent needs in order to choose correctly.

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% and both bounds are already documented with inclusive semantics and defaults, so the schema does the heavy lifting. The description restates that both bounds are optional with a 30-day default and adds the useful detail that the resolved window is returned in `period`, but contributes no new parsing or format guidance.

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?

The description uses a specific verb and resource ('Get a usage summary') and then concretely defines the output grain: one row per usage type with quantity, revenue, cost and margin. It is clear what the tool does, but it never distinguishes itself from adjacent siblings such as get_my_usage or get_daily_analytics, so an agent must infer the boundary.

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?

Usage is implied rather than stated: the reader can tell this is the general usage/revenue rollup, and the default-window explanation helps set expectations. However, there is no explicit 'use this when…' clause, no exclusions, and no named alternative for narrower needs (per-agent, per-chatbot, daily).

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.