Skip to main content
Glama

billing_attempts

YOUR OWN CHARGE RECORD — what this wallet was charged for, attempt by attempt, so you can verify your bill without asking us (relays GET /api/v1/billing/attempts; own wallet only — derived from your credential, never a parameter). Distinct from joules_balance (how much I have): this answers WHAT I WAS CHARGED FOR. Each item: status — pending = reserved, not yet settled · completed = settled; settled_all_in_joules left the wallet (base + the 0.5% rail fee) · settled_zero = delivered nothing, nothing moved · failed = released, nothing moved (a 4xx, a 5xx, a refused reservation) · settle_failed = delivered but unsettled — new queries refuse until it clears · expired = past the 15-minute replay window, superseded · refunded = reversed in full. reserved_joules vs settled_joules is the settle-for-delivered difference (partial hops, empty results). Match attempt_id to metering.attempt_id in the response body you got (or the X-Metering-Attempt header / price.attempt_id; look_at's image result carries it as metering_attempt). limit 1-200 (default 50), offset for paging. Bearer or agent key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
countNo
itemsNo
statusesNo
wallet_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it does so thoroughly: it discloses the HTTP relay, authentication requirement, that results are wallet-scoped, the fee behavior (0.5% rail fee), each status meaning, settlement semantics, and the replay window. This is far beyond what the schema alone would reveal.

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?

The description is dense but every section earns its place: the opening line front-loads the core purpose, the status legend is essential for interpreting results, and the param/auth details are necessary for correct invocation. No filler or redundant restatement of the tool name.

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?

Given zero annotations and a moderate two-param schema, the description is complete: it covers inputs, output semantics, status values, payment-fee behavior, cross-referencing to other tools via `attempt_id`, authentication, and paging. The presence of an output schema means return-value shape is already handled, so nothing needed for correct invocation is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates by documenting `limit` as 1-200 with default 50 and `offset` as paging. This adds range and behavioral meaning the JSON schema does not provide.

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 states a specific verb and resource: it lists the wallet's own charge record, attempt by attempt, and explicitly distinguishes itself from `joules_balance` (how much I have vs what I was charged for). It also names the underlying endpoint, making the resource unmistakable.

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 says when to use the tool ('verify your bill without asking us') and explicitly calls out the key alternative (`joules_balance`) with the decision condition. It also clarifies scope ('own wallet only — derived from your credential, never a parameter'), which prevents misuse.

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