Skip to main content
Glama

get_usage

Retrieve API usage history for your account, including endpoint calls, credit costs, and timestamps. Filter by start and end date to audit consumption.

Instructions

Get API usage history for the account. Shows endpoint calls, credit costs, and timestamps.

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_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoEnd date for usage query (ISO 8601 format)
startDateNoStart date for usage query (ISO 8601 format)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden of behavioral disclosure. The verbs 'Get' and 'Shows' imply a read-only retrieval of historical data, and the description lists some returned fields, but it does not mention permissions, pagination, retention, default date coverage, or timezone behavior.

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?

Two short sentences, front-loaded with the core action and immediately followed by the data fields exposed. There is no filler or redundant restatement of the title.

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 simple read tool with two optional, fully documented parameters and no output schema, the description is mostly complete: it states the account scope and lists the returned data categories. The main remaining gap is that it does not explain what date range is used when startDate and endDate are omitted.

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%, and both startDate and endDate are documented as ISO 8601 date strings in the schema. The description only implies a historical range through the word 'history' and adds no syntax, default-range, or inclusive/exclusive boundary details beyond the schema.

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 gives a clear verb and resource: 'Get API usage history for the account,' then names the concrete contents shown: endpoint calls, credit costs, and timestamps. It is distinguishable from billing-oriented siblings by focusing on historical API usage rather than payment status, though it does not explicitly contrast with get_billing_status.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as get_billing_status or purchase_credits. The purpose implies it is for usage history, but the description does not state conditions, exclusions, or routing guidance, leaving overlap with billing-status queries unaddressed.

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