Skip to main content
Glama

tx_matches

Read-onlyIdempotent

Run right before signing a transfer your agent built from a request like "send 5 USDC to X". Confirms it moves exactly that token, amount and recipient and nothing else. Catches made-up amounts, wrong decimals and sneaked-in steps. Compares the transaction with what you asked for, field by field (token, exact amount, recipient, sender), flags every step that isn't part of the transfer, and checks the dry-run balances so money moved any other way is caught. Inputs: tx: The transaction, base64-encoded. Signed or not. Legacy and v0 both work. expected.token: The token that should be sent. expected.amount: How much should be sent, in normal units. "5" means 5 USDC. expected.to: The wallet that should get it (the person, not their token account). expected.from (optional): The wallet that should pay. Default: the transaction's fee payer. network (optional): Which Solana network to read. Default "mainnet-beta" (real money). Cost: 25 free calls a day, then $0.02 USDC per call (x402). Full field-by-field docs: GET /api/tools/tx_matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txYesThe transaction, base64-encoded. Signed or not. Legacy and v0 both work. From your wallet SDK before signing: Buffer.from(tx.serialize({ requireAllSignatures: false })).toString('base64'). Or the swap transaction an aggregator API gave you.
networkNoWhich Solana network to read. Default "mainnet-beta" (real money). Leave it out for mainnet. Use "devnet" only for test wallets.mainnet-beta
expectedYestoken: The token that should be sent. amount: How much should be sent, in normal units. "5" means 5 USDC. to: The wallet that should get it (the person, not their token account). from: The wallet that should pay. Default: the transaction's fee payer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expected / description
      Added value: +"token: The token that should be sent. amount: How much should be sent, in normal units. \"5\" means 5 USDC. to: The wallet that should get it (the person, not their token account). from: The wallet that should pay. Default: the transaction's fee payer."
    • addedInput schema / properties / network / description
      Added value: +"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."
    • addedInput schema / properties / tx / description
      Added value: +"The transaction, base64-encoded. Signed or not. Legacy and v0 both work. From your wallet SDK before signing: Buffer.from(tx.serialize({ requireAllSignatures: false })).toString('base64'). Or the swap transaction an aggregator API gave you."
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing concrete verification behavior (field-by-field comparison, dry-run balance checks, flagging of extra steps) and, importantly, the cost model: 25 free calls/day then $0.02 USDC per call via x402. Rate/cost limits are exactly the kind of operational context annotations cannot convey.

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 trigger and the core promise before the mechanics, and the 'Inputs:' list keeps parameters scannable. Reasonably tight, though the parameter recitation partially duplicates the schema rather than adding new information.

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?

For a tool with no output schema, the description does explain what the agent gets back in substance: which fields are compared and that non-transfer steps are flagged. It does not specify the response shape or failure/mismatch reporting format, which is the main remaining gap.

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 description coverage is 100% and the 'Inputs:' block largely restates the schema's own parameter descriptions (token, amount in normal units, to, from default fee payer, network default mainnet-beta). It adds no format or edge-case detail beyond what the schema already documents, so baseline 3 applies.

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 — 'Confirms it moves exactly that token, amount and recipient' for a built transfer transaction. The framing ('run right before signing') cleanly separates it from sibling diagnostics like check_tx, explain_tx and why_failed, so an agent can pick it without inspecting other schemas.

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?

Gives explicit timing and trigger context: 'Run right before signing a transfer your agent built from a request like "send 5 USDC to X".' That is a clear when-to-use cue. It stops short of naming alternatives (e.g., when to prefer check_tx or explain_tx instead), so no exclusion guidance is provided.

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.