Skip to main content
Glama

verify_x402_payment

Confirm whether an x402 payment proof is cryptographically valid and settled against a channel, returning payer, amount, currency, and status.

Instructions

Verify cryptographic validity and on-chain settlement state of an x402 payment proof or transaction signature.

Use this to confirm that a payment proof is well-formed and whether it has been settled against a channel. Prefer screen_solana_address for sanctions/threat screening of an address; use this tool for payment proof validation.

Returns a JSON object: { status ('valid' | 'settled' | 'invalid'), payerPublicKey (Base58), amountAtomicUnits (number), amount ('0.005000'), currency ('USDC'), timestamp (ISO-8601) }. status semantics: 'valid' = proof well-formed but not yet settled (no channelId); 'settled' = proof valid and settled on the supplied channelId; 'invalid' = proof is not a valid Base58 Solana address or transaction signature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelIdNoOptional x402 channel identifier (alphanumeric plus '.', '-', '_'). When supplied and valid, the proof is reported as 'settled'; omit it to report 'valid'. Example: 'chan_smoke_test_001'.
paymentProofYesx402 payment proof to verify: a Base58 Solana transaction signature (64 bytes) or wallet address (32 bytes). Example: '3zKcze3Q9DDRui2YCMeTPsBs3mxymxMN3oCvNDVKkrbgtZsR6CVfrLaMPd1kVHjoiAYEqTLNYxAzeABmdBMWSWhm'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.13
    • addedInput schema / properties / channelId / description
      Added value: +"Optional x402 channel identifier (alphanumeric plus '.', '-', '_'). When supplied and valid, the proof is reported as 'settled'; omit it to report 'valid'. Example: 'chan_smoke_test_001'."
    • addedInput schema / properties / paymentProof / description
      Added value: +"x402 payment proof to verify: a Base58 Solana transaction signature (64 bytes) or wallet address (32 bytes). Example: '3zKcze3Q9DDRui2YCMeTPsBs3mxymxMN3oCvNDVKkrbgtZsR6CVfrLaMPd1kVHjoiAYEqTLNYxAzeABmdBMWSWhm'."
  2. Addedv1.0.10

TDQS

A4.3/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 of behavioral disclosure. It provides a detailed return contract, including status semantics ('valid', 'settled', 'invalid') and explains how omitting or supplying channelId changes the outcome. It does not explicitly state that the tool is read-only or disclose side effects, but the verify-oriented description and deterministic status rules provide substantial transparency.

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?

The description is well-organized into purpose, usage, and return/status semantics, with no filler. It is longer than minimal, but the length is justified because there is no output schema and the return contract must be spelled out. A small amount of redundancy exists between the opening summary and the status definitions, but it does not hurt clarity.

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?

Given no annotations, no output schema, and only two parameters, the description is largely complete: it explains what the tool does, when to use it, the returned JSON shape, and the meaning of each status. Minor gaps remain, such as explicit guidance on when to use get_channel_status instead and any error/rate-limit behavior, but the essential information for correct invocation is present.

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 is 3. The description goes beyond the schema by explaining how channelId affects the status result: supplying it yields 'settled', omitting it yields 'valid'. It also clarifies what makes a proof 'invalid' in terms of Base58 format, adding valuable parameter-level meaning.

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?

The description states a specific verb and resource: 'Verify cryptographic validity and on-chain settlement state of an x402 payment proof or transaction signature.' It also explicitly distinguishes itself from the sibling screen_solana_address by noting that the screen tool is for sanctions/threat screening while this tool is for payment proof validation.

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?

The description clearly states when to use the tool: to confirm a payment proof is well-formed and whether it has settled against a channel. It also gives an explicit alternative by saying to prefer screen_solana_address for sanctions/threat screening. However, it does not address when to prefer get_channel_status or generate_compliance_report, leaving some sibling differentiation incomplete.

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