Skip to main content
Glama

Trace

Trace a payment

trace_payment
Read-onlyIdempotent

Use this whenever you need to determine whether a supported stablecoin payment completed, failed, or is delayed — where the money currently is, who owns the next step, and what should happen next. Typical triggers: 'the recipient says the payment never arrived', 'this payout is stuck', 'did this transaction go through?'. Give it a Base transaction hash, Solana signature, Bridge transfer ID, Circle payment ID, or a Base/Solana wallet address (USDC). Trace correlates blockchain and provider evidence into one deterministic normalized state: completed/terminal flags, health, current stage and owner, an evidence-backed diagnosis code with a machine-readable suggested action and retry timing, and a knowledge model separating observed facts from inferences from what Trace cannot see (e.g. beneficiary bank credit — onchain finality never proves the recipient's bank credited funds; unknown never means failed). Public blockchain data works without authentication; provider-connected state requires an API key. If the user has no identifier, ask for a transaction hash, provider payment ID, or supported wallet address. Read-only: this tool never moves funds, retries payments, signs transactions, or guarantees beneficiary receipt — do not use it to send or swap anything. If a payment's state is unresolved, do NOT send a replacement payment; follow the returned warnings and suggested action instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesTransaction hash, provider payment ID, or wallet address to trace.
input_typeNoOptional. Defaults to auto-detection.

Schema Changelog

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

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive), the description discloses meaningful behaviors: it never moves funds or retries payments, public blockchain data needs no auth while provider state requires an API key, and it explicitly warns that onchain finality does not prove beneficiary bank credit and 'unknown never means failed.' This is exactly the kind of contextual behavior annotations alone do not convey.

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?

The description is longer than average, but every sentence earns its place: purpose, triggers, input formats, output semantics, auth requirements, and safety guardrails. It is front-loaded with the core use case and uses plain, direct language. Though verbose, there is no fluff.

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?

Despite having no output schema, the description summarizes the return value (normalized state, flags, health, diagnosis code, suggested action, retry timing, and knowledge model) so an agent knows what to expect. It also covers authentication, input requirements, and post-call safety behavior, making it complete for the tool's complexity.

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?

The input schema already fully describes both parameters (100% coverage), but the description adds domain-specific meaning by enumerating supported identifier forms (Base transaction hash, Solana signature, Bridge transfer ID, Circle payment ID, wallet address) and instructs the agent to ask the user for an identifier if none is provided. This adds behavior around the input parameter beyond the schema's generic description.

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?

The description opens with a precise statement of what the tool does: determining whether a stablecoin payment completed, failed, or is delayed, including where the money is and who owns the next step. Typical triggers like 'the recipient says the payment never arrived' make the purpose unmistakable. It does not explicitly contrast with sibling tools get_trace or list_supported_systems, so an agent must infer differentiation from the detailed output description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to use the tool ('Use this whenever you need to determine...') and gives typical user trigger phrases. It also provides a clear exclusion: do not use it to send or swap anything, and if a payment is unresolved, do not send a replacement. However, it never names alternative sibling tools or conditions for choosing them, so it stops short of a full 5.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: list_supported_systems handles capability discovery, trace_payment traces external payment identifiers, and get_trace retrieves a previously created trace by trace_id. The overlapping return shape is explicitly documented rather than left ambiguous.

Naming Consistency5/5

All tool names follow a consistent lowercase snake_case verb_noun pattern: list_supported_systems, get_trace, and trace_payment. The naming is predictable and reflects each tool's action clearly.

Tool Count5/5

Three tools is well-scoped for a focused payment-tracing server. Each tool earns its place: capability discovery, external-ID tracing, and retrieval by internal trace ID.

Completeness5/5

The read-only tracing lifecycle is fully covered: discover supported systems, trace a payment from external identifiers, and retrieve an existing trace by trace_id. No obvious gaps exist for the stated purpose.

Resources