Skip to main content
Glama

List credit ledger entries

list_ledger
Read-onlyIdempotent

List this account's most recent credit ledger movements (top-ups, calls, SMS, agent usage, monthly number fees, refunds, manual adjustments, and on an account with a monthly plan subscription_grant and subscription_expire), newest first. amountHal is negative for a charge and positive for a credit; a charge covered by the monthly plan credit also carries fromSubscriptionHal. No cursor - just limit; for a specific paid document use list_billing_documents instead. Same data as GET /v1/credit/ledger (response schema in /openapi.json).

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many rows to return, newest first. Defaults to 50, capped at 200.

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 read-only, idempotent, non-destructive behavior, and the description adds substantial domain semantics: amountHal sign meaning, when fromSubscriptionHal is present, supported movement types, ordering, and absence of cursor pagination. These details go well beyond the structured annotations.

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 front-loaded with the core purpose and ordering, then covers amount semantics and the alternative tool. It is dense but every clause adds useful information for correct invocation or interpretation.

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?

For a simple read-only list tool with a single optional parameter and no output schema, the definition supplies the key return-field semantics and points to the OpenAPI response schema. An agent has enough context to call it correctly and understand the ledger amounts.

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?

The only parameter, limit, is fully documented by the schema with default and maximum values. The description adds useful context that there is no cursor and just a limit, but it does not add much else beyond the schema's limit semantics.

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 resource: 'List this account's most recent credit ledger movements'. It enumerates entry types and ordering newest first, and explicitly distinguishes the tool from list_billing_documents for specific paid documents.

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?

Explicitly says to use this tool for recent credit ledger movements and to use list_billing_documents instead for a specific paid document. It also clarifies that there is no cursor and only a limit, so an agent can choose and invoke it without guessing about pagination alternatives.

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.