Skip to main content
Glama

AINumbers Fintech Intelligence Suite

x402 Header Decoder, Payload Linter & 402 Flow Simulator

decode_x402_payment
Read-onlyIdempotent

Decode an x402 payment header or lint an exact-scheme PaymentPayload, and describe the HTTP-402 verify/settle flow. Use when a developer is integrating x402 and needs to inspect a header, check a payload shape, or understand the flow. Renders the interactive AINumbers tool as a widget; inputs are applied via the AIN Bridge and the tool runs client-side (zero PII, zero network). Output schema: call describe_tool("decode_x402_payment").

Input Schema

NameRequiredDescriptionDefault
inputsNoMap of tool input element IDs to values (see manifest input_schema). Applied via AIN Bridge prefill.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "decoded": {
      -      "type": "object"
      -    },
      -    "findings": {
      -      "type": "array"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "decoded": {
      +      "type": "object"
      +    },
      +    "findings": {
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and non-open-world behavior. The description adds real value beyond that: it renders as an interactive widget, inputs are applied via the AIN Bridge, execution is client-side with zero PII and zero network. It does not describe the return payload directly, instead pointing at describe_tool for the output schema.

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?

Three sentences, each earning its place: capability, usage trigger, and execution model. The key verbs are front-loaded and there is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The annotations cover safety and the description covers execution context and points to describe_tool for the output schema. The main gap is discoverability of the real inputs: because the visible schema is a generic 'inputs' wrapper that defers to a manifest input_schema, the agent is not told how to discover the expected input keys, which matters for a nested-object tool.

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%, so the single 'inputs' parameter is documented in the schema as a map of tool input element IDs to values via the manifest input_schema. The description reinforces that inputs are applied via the AIN Bridge, but it does not enumerate or explain the actual input keys expected inside that map, leaving the agent dependent on the manifest.

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 uses specific verbs and resources ('Decode an x402 payment header', 'lint an exact-scheme PaymentPayload', 'describe the HTTP-402 verify/settle flow'), so an agent can tell what the tool does. However, it bundles three capabilities and never differentiates itself from siblings such as simulate_x402_flow, lint_x402_v2_migration, or decode_mpp_session, which overlap in wording.

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 gives a clear usage context: 'Use when a developer is integrating x402 and needs to inspect a header, check a payload shape, or understand the flow.' That maps triggers to the three capabilities. It stops short of exclusions or naming which sibling to use for adjacent needs like simulating settlement or migrating to v2.

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.