Skip to main content
Glama

Billing Ledger

billing_ledger
Read-only

Inspect individual Cloudeval usage attempts and credit charges with filters for model, outcome, action type, charge status, and date range. Returns paginated ledger rows to track per-event costs and identify failed or blocked usage.

Instructions

Inspect individual Cloudeval usage attempts and credit charges for the authenticated account. Use billing_usage for aggregates or billing_invoices for payment receipts. Defaults to the last 30 calendar days; explicit timestamps override the corresponding range bounds. Returns data.items, data.has_more and data.next_cursor; reuse the cursor with the same filters to read the next page. Requires billing read access; does not initiate purchases or evaluations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endAtNoExclusive ISO 8601 upper bound; overrides the range end.
limitNoPage size; the MCP handler floors and clamps it to 1–100.
modelNoExact model_name or operation value from a ledger row. Omit to include all models.
rangeNoCalendar-day window ending now. Use all for no implicit date bounds.30d
cursorNoOpaque data.next_cursor from the previous response. Omit for the first page; retain the same filters while paging.
baseUrlNoCloudeval API base URL. Defaults to the MCP server --base-url, active profile, CLOUDEVAL_BASE_URL, or the public API.
outcomeNoUsage outcome filter, such as success, failure, blocked or skipped.
profileNoCloudeval CLI config profile to read defaults from. Defaults to the server --profile or CLOUDEVAL_PROFILE.
startAtNoInclusive ISO 8601 lower bound, for example 2026-09-01T00:00:00Z; overrides the range start.
actionTypeNoExact action_type value from a ledger row. Omit to include all action types.
frontendUrlNoCloudeval frontend base URL for generated links. Defaults to --frontend-url, active profile, CLOUDEVAL_FRONTEND_URL, or public frontend.
chargeStatusNoCharge disposition filter: charged, not_charged or bypassed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataYesTool-specific result payload.
commandYes
traceIdNo
frontendUrlNo
filesWrittenNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed9 schema fields changedv0.38.5
    • addedInput schema / properties / actionType / description
      Added value: +"Exact action_type value from a ledger row. Omit to include all action types."
    • addedInput schema / properties / chargeStatus / description
      Added value: +"Charge disposition filter: charged, not_charged or bypassed."
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque data.next_cursor from the previous response. Omit for the first page; retain the same filters while paging."
    • changedInput schema / properties / endAt / description
      Previous value: -"End timestamp."New value: +"Exclusive ISO 8601 upper bound; overrides the range end."
    • addedInput schema / properties / limit / description
      Added value: +"Page size; the MCP handler floors and clamps it to 1–100."
    • addedInput schema / properties / model / description
      Added value: +"Exact model_name or operation value from a ledger row. Omit to include all models."
    • addedInput schema / properties / outcome / description
      Added value: +"Usage outcome filter, such as success, failure, blocked or skipped."
    • addedInput schema / properties / range / description
      Added value: +"Calendar-day window ending now. Use all for no implicit date bounds."
    • changedInput schema / properties / startAt / description
      Previous value: -"Start timestamp."New value: +"Inclusive ISO 8601 lower bound, for example 2026-09-01T00:00:00Z; overrides the range start."
  2. First observedv0.38.3

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds meaningful context beyond that: the auth requirement ('Requires billing read access'), an explicit no-side-effects disclaimer ('does not initiate purchases or evaluations'), and pagination behavior via cursor reuse. This fully discloses the tool's behavioral profile.

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?

Four sentences, each earns its place: purpose, sibling differentiation, default/override behavior, response shape, and auth/safety caveat. Information is front-loaded with the verb and resource first, followed by routing. No filler or repetition of schema content.

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 an output schema present, return values need no extra description beyond the pagination fields already mentioned. The description covers purpose, alternatives, default window, parameter interactions, pagination, permissions, and side-effect safety. For a 12-parameter optional tool, all non-obvious decision points are addressed.

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?

Input schema covers 100% of parameters, so baseline is 3. The description adds semantic value by relating range to startAt/endAt ('explicit timestamps override the corresponding range bounds') and by explaining cursor usage ('reuse the cursor with the same filters'), which deepens understanding without restating schema details.

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: 'Inspect individual Cloudeval usage attempts and credit charges for the authenticated account.' It also explicitly differentiates from sibling billing_usage by noting that tool is for aggregates, so an agent can distinguish them without opening schemas.

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?

The description gives explicit routing guidance: 'Use billing_usage for aggregates or billing_invoices for payment receipts.' It also provides conditional context like the default 30-day window and how timestamps override range bounds, making the when-to-use clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ganakailabs/cloudeval-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server