Skip to main content
Glama

verify_payment

Read-only

Checks a payer-signed transaction against its quote (net amount, treasury fee, whitelisted mints, quote ID, expiry) and simulates it before submission.

Instructions

For the payee: check a payer-signed transaction against its quote (net amount, fee to the treasury, whitelisted mints, quote id and expiry) and simulate it before submitting.

Input Schema

NameRequiredDescriptionDefault
quoteYesThe signed quote exactly as returned by quote_payment
transactionYesBase64 wire transaction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=false; the description is consistent and adds value by clarifying that the operation simulates rather than executes, and by disclosing the specific invariants checked against the quote. It does not cover failure reporting, auth requirements, or rate limits, so it is additive but not exhaustive.

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?

A single dense sentence, front-loaded with the audience ('For the payee') and the action, then the validation detail, then the trigger ('before submitting'). No filler and nothing redundant with the sibling set.

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 two-parameter validation tool with no output schema, the description adequately conveys what is validated and when to call it. It leaves the caller without any hint of the result shape (pass/fail, reason codes) or the simulation's behavior on failure, which is a minor gap given there is no output schema to fall back on.

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% for the two top-level params, so the baseline would be 3. The description goes further by enumerating the fields inside the nested quote object (net amount, fee, mints, quote id, expiry) and characterizing the transaction as payer-signed, which the schema's additionalProperties:{} does not convey.

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+resource ('check a payer-signed transaction against its quote ... and simulate it') and enumerates exactly what is validated (net amount, fee to the treasury, whitelisted mints, quote id and expiry). The 'For the payee' qualifier and the simulation step distinguish it cleanly from siblings like verify_receipt, quote_payment, and submit_payment without needing their 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?

'...and simulate it before submitting' clearly places this as the pre-submission gate before submit_payment, giving real when-to-use context. It stops short of naming alternatives or exclusions (e.g. how it differs from verify_receipt), so it is clear but not fully routable.

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