Skip to main content
Glama

Beggar Bot

revert_decode

Why did it revert? Decode Error(string), Panic codes and ~60 common custom errors (OZ, Uniswap, 4337), or replay a failed tx hash. Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "revert_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
txNoalt: failed tx hash
dataNorevert hex
chainNobase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two things beyond the schema: the error-coverage set (~60 curated custom errors) and that the call is paid at $0.02 USDC via x402, which is important pre-invocation context. It omits what happens for an unrecognized selector, and gives no hint about the shape of the decoded result.

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?

A single dense sentence-and-a-half that front-loads the user-facing question, then the decoding coverage, then the alternative input mode, then the payment model. No filler.

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?

For a low-complexity decode tool with full schema coverage, the main missing piece is the return shape: no output schema exists, and the description never says whether the result is a decoded name plus args, a signature, or a raw match. Given the tool accepts an optional tx hash that triggers an on-chain replay, a note on latency or failure modes would also help.

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 all three parameters are already documented. The description only adds the either/or relationship — decode raw revert hex versus replay a failed tx hash — which maps to the tx/data split. That is a modest value-add over the schema's terse 'alt: failed tx hash' and 'revert hex' labels, so the baseline 3 fits.

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 opens with a concrete question it answers ("Why did it revert?") and then names the resources it decodes: Error(string), Panic codes, ~60 common custom errors (OZ, Uniswap, 4337), and failed tx hashes. That distinguishes it from generic siblings like abi_decode or decode_tx, though it never names a sibling explicitly.

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 the framing — reach for this when a transaction failed and you need the reason. There is no explicit when-not guidance (e.g. use decode_tx for successful transactions) and no named alternative, so the agent must infer the boundary.

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.