Skip to main content
Glama

Spend log / receipts

spend_log
Read-onlyIdempotent

0.005 USDC per call via x402, no key (unpaid call returns PaymentRequired; retry with params.meta["x402/payment"]). Spend log / receipts for a payer address: totals (settled, pending, refunded), top sellers and the latest receipts over the last N days (1-31; read from Settle's own receipt records, not from Base RPC history). Needs a key mts (X-API-Key header or apiKey argument). No key? call settle_trial_key (free, 50 calls/7 days). Full plan 1 USDC/30d incl. 1,000 calls via x402.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days (1-31, Settle receipt records).
limitNoMax receipts returned.
payerNoPayer / agent wallet address 0x… (40 hex).
apiKeyNoYour MoneyTools Settle key mts_… (alternative to the X-API-Key header). No key: call settle_trial_key.
sessionIdNoYour session / run id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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, closed-world behavior. The description adds material context beyond them: per-call cost (0.005 USDC via x402), the exact auth failure behavior (unpaid call returns PaymentRequired; retry with params._meta["x402/payment"]), and the critical data-source caveat ('Settle's own receipt records, not Base RPC history').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense and front-loads payment mechanics, auth, trial fallback, and plan pricing into a compressed block. Every sentence is relevant to invocation, but the x402/payment-required sentence and the final plan sentence are hard to parse quickly and could be split or shortened.

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 five parameters, no output schema, and rich annotations, the definition covers auth, cost, fallback tool, data source, and parameter ranges well. It stops short of describing the x402 payment retry payload structure or pagination/response shape, which would make it fully self-sufficient.

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?

Schema coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema: days is constrained to 1-31 and reads from Settle receipt records, apiKey is the mts_ key alternative to the header, and payer is the agent wallet address. It does not detail the x402 payment object, but the parameters themselves are well covered.

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: a spend log / receipts lookup for a payer address. It enumerates the returned aggregates (settled, pending, refunded totals, top sellers, latest receipts over N days), so an agent can distinguish it from sibling receipt and spend-record tools 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?

Explicitly gives the use condition (requires an mts_ key via X-API-Key header or apiKey argument) and the alternative when that condition fails: 'No key? call settle_trial_key (free, 50 calls/7 days).' It also names the paid plan path via x402, leaving little to infer.

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