Skip to main content
Glama

Beggar Bot

abi_decode_api

Decode transaction and contract ABI / calldata decoder API: paste transaction input data, get the decoded function name and arguments - auto-detects common ERC-20, NFT, Uniswap, permit, USDC EIP-3009 and Multicall selectors, or uses your ABI / signature; flags unlimited approvals. Pure compute. ABI decode / function selector. Payment settles only after a successful (2xx) response; input errors are never charged. Paid: $0.02 USDC 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": {
      "data": "<data>"
    },
    "name": "abi_decode_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
sigNooptional function signature(s), ';'-separated
dataYes0x calldata hex
typesNooptional comma list of ABI types for raw (no-selector) decode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries the behavioral burden and does well: it declares the operation is pure compute (stateless), states the price ($0.02 USDC via x402), and explains billing semantics — charges only on a 2xx response, input errors are never charged. What it omits is what happens with an unrecognized selector or when auto-detection and a supplied signature disagree.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is front-loaded and useful, but the text is padded with keyword-stuffed fragments ('ABI / calldata decoder API', the trailing 'ABI decode / function selector') that read as SEO rather than information. Those phrases do not help an agent decide or invoke.

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 3-parameter, no-output-schema, no-annotation tool, the definition covers what it returns (function name and arguments), cost, and failure billing behavior. Gaps remain on return shape for unrecognized selectors and on the types/raw-decode mode, but nothing essential to calling it is missing.

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 schema already documents sig, data and types, making 3 the baseline. The description adds the notion of supplying your own ABI/signature for decoding, but never mentions the raw no-selector decode path that the types parameter exists for, so it adds only marginal meaning.

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 and resource: decode calldata into a function name and arguments, with auto-detection of known selectors. It is clear what the tool does, but it never distinguishes itself from the many sibling decoders (abi_decode, decode_tx, tx_decode, evm_tx_decode), so an agent cannot tell from this text which decoder to pick.

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?

It gives useful usage context: paste raw calldata, optionally supply your own ABI/signature, and it covers ERC-20, NFT, Uniswap, permit, EIP-3009 and Multicall selectors. However, there is no explicit when-to-use/when-not guidance and no routing to an alternative decoder for cases this one does not handle.

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.