Skip to main content
Glama

chain_tx

Read-only

Transaction lookup (decoded) — Look up any transaction by hash on base, ethereum, arbitrum, optimism or polygon: status, block, timestamp, confirmations, from/to, value, gas used, effective gas price, total fee incl. L1 data fee, plus the decoded function call (50+ common selectors: ERC-20/NFT transfers and approvals, DEX swaps, Safe, ERC-4337, lending, vaults) with token symbol and human amount for ERC-20 transfer/approve (flags unlimited approvals). hash= required, chain= default base. 404 if not found. Price: $0.003 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "<chain>",
      "hash": "<hash>"
    },
    "name": "chain_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYes0x71f88793ac8067ff8f7f75262dcd2ee9830c7ed00b6bfd842ed59b82cd9fcc93
chainYesbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: a 404 on unknown hashes and a $0.003 USDC payment via x402 on Base — a cost/auth requirement an agent must know before calling. It stops short of noting rate limits or response shape beyond the field list.

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?

One dense but well-ordered block: purpose and chain scope first, then returned fields, then decoded coverage, then constraints and pricing last. No sentence is filler, though the long comma-delimited field list makes it heavier than necessary.

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?

With no output schema, the description carries the burden of describing returns and does so thoroughly, listing every field plus the decoded-call coverage and ERC-20 amount/approval flags. Error and pricing behavior are covered; only secondary details like rate limits or result-size limits are absent.

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, but the description adds real meaning the schema lacks: the chain parameter's valid values (base, ethereum, arbitrum, optimism, polygon) are only in the description, and it confirms chain defaults to base while hash is mandatory. That compensates for the schema's bare 'base' example string for chain.

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?

States a specific verb+resource ('Look up any transaction by hash') and enumerates the returned fields: status, block, timestamp, confirmations, from/to, value, gas, fees, and decoded call. The explicit chain list (base, ethereum, arbitrum, optimism, polygon) implicitly separates it from the BTC sibling and the raw-receipt sibling, but no alternative is named, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage is implied by 'Look up any transaction by hash' plus 'hash= required, chain= default base', and the 404 behavior tells the agent what a miss looks like. However, nothing says when to prefer this over the closely related chain_receipt, crypto_tx, or chain_block tools, and there is no when-not guidance.

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