Skip to main content
Glama

geld machen x402 agent utilities

Base Tx Explain: Receipt + Basic Decode

base-tx-explain
Read-onlyIdempotent

Decode one Base transaction: from/to/value/status/logs/method selector. Use when you have a tx hash and need what it did. Not for wallet-wide views (use base-balance). Returns a free sample plus the paid URL and pay steps (no charge here); the full result costs $0.02 Base USDC via x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoInput for the paid endpoint: 0x tx hash.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuYes
noteNo
payToNo
priceNo
methodNo
networkNo
paid_urlYes
how_to_payYes
teaser_urlNo
your_inputNo
free_teaserNoFree sample output of this SKU (truncated); null if unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / free_teaser
      Added value: +{
      +  "description": "Free sample output of this SKU (truncated); null if unavailable."
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Optional input (e.g. url / address / text) to pass to the paid endpoint as ?q= or JSON body."New value: +"Input for the paid endpoint: 0x tx hash."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "how_to_pay": {
      +      "type": "string"
      +    },
      +    "method": {
      +      "type": "string"
      +    },
      +    "network": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "paid_url": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "payTo": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "price": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sku": {
      +      "type": "string"
      +    },
      +    "teaser_url": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "your_input": {}
      +  },
      +  "required": [
      +    "sku",
      +    "paid_url",
      +    "how_to_pay"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds genuinely non-obvious behavior: the call itself is free, it returns a sample plus a paid URL and pay steps, and the full result costs $0.02 Base USDC via x402. That payment/authorization model is the key trait an agent must know and is not in any structured field. It stops short of saying what the free sample contains or how the x402 handoff completes.

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 tight sentences with zero filler, front-loaded on the decode scope and immediately followed by the routing rule and the payment model. Every clause carries information an agent needs.

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?

Output schema exists, so return values need no prose, and annotations cover the safety profile; the description fills the remaining gap with the payment flow. The only unaddressed item is what happens when the optional 'query' parameter is omitted, a minor gap for an otherwise complete definition.

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 schema already documents 'query' as a 0x tx hash, so the baseline of 3 applies. The description's 'you have a tx hash' restates that without adding format, validation, or alternative-input guidance; it also never mentions that the parameter is optional (0 required).

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 (Decode) and resource (one Base transaction) and enumerates the decoded fields (from/to/value/status/logs/method selector), so the agent knows exactly what comes back. It also names the sibling it is not (base-balance) for wallet-wide views, making it distinguishable without opening either schema.

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

Usage Guidelines5/5

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

Explicit trigger: 'Use when you have a tx hash and need what it did.' Explicit exclusion plus alternative: 'Not for wallet-wide views (use base-balance).' Both when-to-use and when-not-to-use are stated, with the routing sibling named.

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.

Resources