Skip to main content
Glama

payment_history

Retrieve recent payment records from the local log, including time, URL, asset, amount, recipient, result, and settlement transaction ID, as JSON or CSV.

Instructions

Recent payment records from the local JSONL log (time, URL, asset, amount, recipient, result, settlement transaction id). Keys and signed payment payloads are never stored. Read only. Returns the newest records first as JSON, or with format "csv" as CSV text (oldest first). For totals by asset, recipient or day use spending_report; to check a seller receipt use verify_receipt.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many of the most recent records to return (1-500, default 20).
formatNo"json" (default) or "csv".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / format / description
      Added value: +"\"json\" (default) or \"csv\"."
    • addedInput schema / properties / limit / description
      Added value: +"How many of the most recent records to return (1-500, default 20)."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares read-only behavior, discloses that keys and signed payment payloads are never stored, and notes the ordering asymmetry (newest first as JSON, but oldest first as CSV) which is genuinely non-obvious. It does not mention pagination limits beyond the schema's limit cap, log rotation/retention, or error behavior when the log is empty or missing.

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?

Dense and front-loaded: source and fields first, then behavior and privacy note, then return formats, then sibling routing. Every sentence carries information, though the field list and the parenthetical ordering clause make it slightly packed for a two-parameter read tool.

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 two-parameter read tool with no output schema, the description covers what the tool does, what a record looks like, ordering, alternate formats, and when to use siblings instead. Nothing an agent needs in order to call it correctly is missing.

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 would be 3, but the description adds meaning beyond the schema by tying format selection to record ordering (CSV returns oldest first). The limit parameter is only documented in the schema, so it isn't fully compensated, keeping this short of a 5.

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 the specific resource (recent payment records) and its source (the local JSONL log), then enumerates the fields each record carries (time, URL, asset, amount, recipient, result, settlement transaction id). It explicitly names the sibling tools that cover different jobs (spending_report for totals, verify_receipt for receipts), so an agent can differentiate without opening a schema.

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?

Gives explicit routing: use spending_report for totals by asset, recipient or day, and verify_receipt to check a seller receipt. The implied 'use this one for raw recent records' is the remaining default, which is a reasonable inference given the named alternatives cover the aggregations.

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