Skip to main content
Glama

Credit History

credit_history
Read-onlyIdempotent

Shows what used this account's credits: every charge of the last days days (default 30, up to 90), newest first, with its UTC time, the tool, what it was for when the call named it (a keyword, a site, an audit) and its credits, plus totals by day and by tool. Each day's total is checked against the credits the balance itself recorded that day: not_itemised says how many of them the statement cannot list (charges from before itemising began, or a record that was lost), so the figures never claim more than they know. Free calls are not listed. Free. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
daysNoHow many UTC days back, today included. Default 30.
toolNoOnly charges of this tool (the `tool` value of a charge or of a by_tool row).
limitNoHow many charges to list, newest first. Default 200. Totals always cover the whole window.
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output.
idempotency_keyNoOptional and ignored: this call never charges.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the description's repeated 'Free. Read-only.' adds little. What it does add is genuinely useful behavior: free calls are excluded from the listing, and each day's total is reconciled against the balance with a `not_itemised` count for charges that cannot be listed, so the agent knows the figures are conservative rather than complete.

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?

It is a single dense paragraph, but the ordering is sensible: purpose first, then the shape of the returned data, then the reconciliation caveat, then the safety footer. A few clauses are decorative, notably 'so the figures never claim more than they know', and the closing 'Free. Read-only.' largely restates annotations.

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?

There is no output schema, so the description must carry the return shape, and it does: per-charge fields (UTC time, tool, the named target, credits) plus day and tool totals, with the `not_itemised` counter explained. Combined with fully covered parameters and confirming annotations, an agent has everything needed to call this correctly and interpret the result.

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%, so all five parameters are already documented and the baseline is 3. The description reinforces a few semantics (newest-first ordering, the 30/90-day window, totals spanning the whole window regardless of limit) but adds no syntax or interpretation the schema does not already carry.

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 opens with a specific verb and resource: it shows what consumed the account's credits, listing every charge in a window with per-charge fields plus daily and per-tool totals. That is far more precise than the name alone and clearly separates it from a balance-style tool such as account_info. It stops short of a 5 because it never names a sibling or explicitly marks the boundary against other usage-related tools.

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 infer this is the tool for auditing credit spend over a window of up to 90 days, and the note that free calls are not listed tells them what they will not find here. There is no explicit when-to-use/when-not-to-use framing and no named alternative for, say, checking the current balance.

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