Skip to main content
Glama

ASPERN: counterparty checks for agents

Agent stablecoin payments, over a window

stablecoin_payments
Read-onlyIdempotent

Stablecoin transfers on x402 rails over a window you choose (default the last 24 hours), from how many paying addresses to how many receiving ones, by token and network, in four DISJOINT evidence classes: confirmed (the protocol’s own settlement event or payload), inferred (an identified x402 facilitator), candidate (only a shape x402 requires: a Solana memo beside a transfer into a listed seller, or a transfer to a catalogued payTo; compatible with x402, not proof) and unclassified; total = their sum. The strict figure is confirmedPayments; payments includes the candidates. Filter by stablecoin (USDC) or network. Free. No class shows what was bought, that it was delivered, or that an AI paid.

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

Input Schema

NameRequiredDescriptionDefault
chainNoOne network, e.g. base.
hoursNoThe window in hours (default 24).
symbolNoOne stablecoin symbol, e.g. USDC.

Output Schema

NameRequiredDescriptionDefault
metaNoHow current this answer is and what it was read from: `freshness` and the ages behind it. Present on every answer from this server, whatever the tool.
saysYesThe answer, the confirmed figure first and candidates apart.
hoursYesThe window.
payeesYesReceiving addresses.
payersYesPaying addresses.
coverageYesWhat is counted, matching the filter: the classes included and what is left out.
paymentsYesEvery counted transfer, candidates included: confirmed + inferred + candidate + unclassified. Not the strict figure (that is confirmedPayments); kept under this name for compatibility.
warningsNoAnything the server wants a caller to know about THIS answer before acting on it. Empty is the normal case and is not a guarantee.
byEvidenceNoPer network and evidence value (memo, facilitator, catalogued_payee, permit2-proxy, payload): payments, what it means, its evidenceClass and evidenceLevel, and every signal the classifier tested (signals, notProof). Null where the stored window predates the split.
evidenceClassesNoknown, total, confirmed, inferred, candidate, unclassified (disjoint; total = sum; null where not known), reconciled, bySignal (per evidence value: class, level, label, payments), levels (1 compatible shape … 5 evidenced delivery), attributedRequests and evidencedDeliveries (always null: no on-chain reader reaches them), means, provenance.
byTokenAndNetworkYesPer token and network: payments, payers, payees, amount.
confirmedPaymentsNoThe strict figure: transfers carrying the x402 protocol’s own settlement trace (evidenceClasses.confirmed). Null where the split is not known for this selection (e.g. a token filter on a stored window), never zero.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedOutput schema / properties / byEvidence / description
      Previous value: -"Per network and evidence class (memo, facilitator, catalogued_payee, permit2-proxy, payload): payments and what the class means, never empty."New value: +"Per network and evidence value (memo, facilitator, catalogued_payee, permit2-proxy, payload): payments, what it means, its evidenceClass and evidenceLevel, and every signal the classifier tested (signals, notProof). Null where the stored window predates the split."
    • addedOutput schema / properties / confirmedPayments
      Added value: +{
      +  "description": "The strict figure: transfers carrying the x402 protocol’s own settlement trace (evidenceClasses.confirmed). Null where the split is not known for this selection (e.g. a token filter on a stored window), never zero.",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / coverage / description
      Previous value: -"What is counted."New value: +"What is counted, matching the filter: the classes included and what is left out."
    • addedOutput schema / properties / evidenceClasses
      Added value: +{
      +  "description": "known, total, confirmed, inferred, candidate, unclassified (disjoint; total = sum; null where not known), reconciled, bySignal (per evidence value: class, level, label, payments), levels (1 compatible shape … 5 evidenced delivery), attributedRequests and evidencedDeliveries (always null: no on-chain reader reaches them), means, provenance.",
      +  "type": "object"
      +}
    • changedOutput schema / properties / payments / description
      Previous value: -"Payments."New value: +"Every counted transfer, candidates included: confirmed + inferred + candidate + unclassified. Not the strict figure (that is confirmedPayments); kept under this name for compatibility."
    • changedOutput schema / properties / says / description
      Previous value: -"The answer in one sentence."New value: +"The answer, the confirmed figure first and candidates apart."
  2. Changed1 schema field changed
    • changedOutput schema / properties / byEvidence / description
      Previous value: -"Per network and evidence class (memo, facilitator, catalogued_payee, payload): payments and what the class means."New value: +"Per network and evidence class (memo, facilitator, catalogued_payee, permit2-proxy, payload): payments and what the class means, never empty."
  3. Changed1 schema field changed
    • addedOutput schema / properties / byEvidence
      Added value: +{
      +  "description": "Per network and evidence class (memo, facilitator, catalogued_payee, payload): payments and what the class means.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
  4. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description goes well beyond them: it enumerates the four disjoint evidence classes, explains that total is their sum, and distinguishes the strict `confirmedPayments` from the broader `payments` that includes candidates. The closing caveat that no class proves what was bought, that it was delivered, or that an AI paid is exactly the kind of interpretive limit an agent needs before trusting the number.

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?

Purpose and scope are front-loaded in the opening clause, and the evidence-class taxonomy takes the space it needs. The prose is dense and slightly run-on with parenthetical asides, but no sentence is disposable.

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 only three optional parameters, full schema coverage, an output schema, and explicit annotations, the remaining burden is interpretation — and the description supplies it via the evidence-class definitions, the confirmed-versus-total distinction, and the honesty caveat about what the metric cannot prove.

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%, so the three parameters (chain, hours, symbol) are already documented with examples and bounds. The description restates the window default and the token/network filters but adds no syntax or semantics beyond the schema, so the baseline holds.

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 — stablecoin transfers on x402 rails — plus the scope (address-to-address counts, by token and network, over a chosen window). The four evidence classes give an agent a precise mental model of what is being counted, which clearly separates it from neighbors like stablecoin_peg or counterparty_evidence.

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?

It tells you the window defaults to 24 hours and that you can filter by stablecoin or network, and it notes the tool is free, which implies low-cost exploratory use. But it never states when to prefer this over a sibling or when it is the wrong choice, so the agent must infer routing from the counts it returns.

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.