Skip to main content
Glama

Spend and ledger

everyinfra_billing
Read-only

Spend in USD for the last N days: the total, by platform, charged / free / failed call counts and the current discount, plus recent wallet entries (top-ups, charges, refunds, bonuses). Needs the account read permission "billing:read" on this key: keys not limited to product lines have the three read permissions by default; for a key limited to product lines, the account owner turns it on in the console (API Keys → permissions). Free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days, default 30
ledger_limitNoWallet entries, default 10

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"天数,默认 30"New value: +"Number of days, default 30"
    • changedInput schema / properties / ledger_limit / description
      Previous value: -"流水条数,默认 10"New value: +"Wallet entries, default 10"
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/closed-world/non-destructive, yet the description adds real behavioral context: the required permission scope, the key-type nuance for enabling it, and the fact that the call is free. That goes beyond the annotation set, though it says nothing about rate limits or freshness of the spend figures.

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?

Front-loads the returned data before the permission caveat, which is the right ordering. The permission sentence is long but carries needed auth detail; overall it is tight for the amount of information conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 takes on the burden of describing the return shape and does so thoroughly (totals, per-platform split, call-status counts, discount, wallet entries). Combined with the auth prerequisite, an agent has enough to call it correctly; only sibling disambiguation is missing.

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 params are self-documented with defaults and bounds. The description only echoes them implicitly ('last N days', 'recent wallet entries') without adding format or interpretation beyond the schema, so baseline 3 applies.

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?

States a specific resource (spend/billing) and enumerates exactly what is returned: total USD, per-platform breakdown, charged/free/failed counts, discount, and wallet ledger entries. It is clear what the tool does, though it never explicitly distinguishes itself from the closely related sibling everyinfra_usage.

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?

The description supplies the precondition for use (the account must hold 'billing:read', with detail on default vs product-line-limited keys) and notes the call is Free. However, it gives no guidance on when to pick this over everyinfra_usage or everyinfra_requests, so the choice between spend-reporting siblings is left to inference.

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.