Skip to main content
Glama

Recent charges

recent_charges
Read-onlyIdempotent

Use this when the user asks what this key spent, or wants a receipt for a run. Returns the charges of this key only, never another key's, newest first: tool, credits and time. Also returns their sum in credits and dollars, the dollar value of one credit, and the balance. When truncated is true there are older charges: raise limit up to 100, and say the sum is partial.

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

Input Schema

NameRequiredDescriptionDefault
limitNo1 to 100, defaults to 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description still adds substantive behavior: strict key isolation, newest-first ordering, the exact returned fields, aggregate sums in two units, and truncation signaling with a prescribed remedy and disclosure obligation.

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 sentences, front-loaded with the trigger and scope, then the payload and the truncation rule. Every clause carries information the agent would otherwise have to discover by calling the tool; there is no filler.

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 takes on the job of describing return values and does so concretely, including the sum in credits and dollars and the credit-to-dollar rate. A single optional parameter and a read-only operation need nothing further.

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

Parameters4/5

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

Schema coverage is 100% and limit is documented as 1-100 defaulting to 50, so the baseline is 3. The description earns above that by explaining the causal relationship between truncated and limit ('when truncated is true ... raise limit up to 100'), telling the agent why to change the parameter rather than just its range.

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?

The description names a specific resource (charges for this key) and enumerates returned fields (tool, credits, time, sum, credit dollar value, balance). It also scopes ownership explicitly with 'this key only, never another key's', which is exactly the distinction an agent needs when several credential-bound tools exist.

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?

It opens with a concrete trigger condition ('when the user asks what this key spent, or wants a receipt for a run') and adds a conditional follow-up action for the truncated case: raise limit and tell the user the sum is partial. No sibling competes for this job, so the absence of a named alternative costs nothing.

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.