Skip to main content
Glama

Last Price

get_usage_breakdown

Read-onlyIdempotent

See your usage grouped by pricing function: calls, spend and outcomes for each function over a period. Pass start_date and end_date to choose the period, and group_by function, the only grouping there is. Read-only. Needs a Last Price credential. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.

Input Schema

NameRequiredDescriptionDefault
end_dateNoThe end of the period, as an ISO 8601 date and time.
group_byNoHow to group. Only function is available.
start_dateNoThe start of the period, as an ISO 8601 date and time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes beyond them by disclosing the required Last Price credential and the 403 refusal for unclaimed sandbox workspaces. Those auth/access preconditions are exactly what an agent needs before calling. It stops short of describing pagination or result shape, keeping it just shy of full marks.

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?

Well front-loaded: purpose first, then parameters, then access requirements. All sentences carry information (what it returns, how to scope, auth caveats). Slightly dense but no filler.

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?

No output schema, but the description names the returned metrics (calls, spend, outcomes) and covers the credential and workspace-claim preconditions, which are the main failure modes. Complete enough for an agent to call it correctly; only return-format/pagination detail is absent.

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 all three parameters are self-documented (ISO 8601 dates, single-value group_by enum). The description restates the date-range purpose and that function is the only grouping, which is mildly redundant with the enum. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

States a specific verb and resource: usage grouped by pricing function, returning calls, spend and outcomes over a period. That is clear and more specific than a generic usage getter, but the description never names the closest siblings (get_usage, get_cost_analytics) so the agent has no explicit routing signal.

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?

It gives the mechanics (pass start_date/end_date, group_by is limited to function) and the credential/workspace prerequisites, which is useful context. However, it never says when to pick this tool over get_usage, get_cost_analytics, or list_usage_events, so the choice among alternatives is left to inference.

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