Skip to main content
Glama

Billing history

get_billing_history
Read-onlyIdempotent

Read the signed-in person's billing history: plan invoices, add-on charges, lifetime purchases and API deposits, newest first, with links to each Stripe invoice. Read-only — it charges nothing and changes nothing. Requires an OAuth 2.1 user access token.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page, 1-100. Default 24.
beforeNoISO 8601 timestamp to page backwards from — pass the `next_cursor` from a previous call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotent and non-destructive, yet the description reinforces this with the concrete reassurance that it 'charges nothing and changes nothing' and adds the undocumented 'newest first' ordering. Authentication requirements are disclosed too, though nothing is said about pagination behavior beyond what the schema states.

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 short sentences: scope first, contents second, safety and auth last. No filler, and the most decision-relevant information (what's returned and that it's free to call) is front-loaded.

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 still characterizes the return payload (invoice and charge rows, Stripe invoice links, newest-first ordering), and the prerequisite token type is disclosed. For a two-parameter read tool this is sufficient for an agent to call it 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 parameters are fully documented with defaults and cursor usage, so the description carries no burden here. It adds no parameter-level detail beyond implying the newest-first order, which is the baseline expectation.

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 and scope ('Read the signed-in person's billing history') and enumerates the exact contents (plan invoices, add-on charges, lifetime purchases, API deposits), so an agent knows precisely what comes back and cannot confuse it with get_credits or get_pricing.

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

Usage Guidelines4/5

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

The framing ('signed-in person's billing history') makes the when-to-use condition clear, and the OAuth 2.1 token prerequisite is stated. It stops short of naming an alternative tool or an explicit when-not condition, so it lands just under the top band.

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.