Skip to main content
Glama

Beggar Bot

batch_decode

Recursively decode multicall / Multicall3 / Safe multiSend / 4337 executeBatch / Universal Router calldata into a call tree; flags hidden approvals and delegatecalls. Offline. 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": "batch_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNotarget contract (optional)
dataYes0x calldata

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: it runs offline (no RPC dependency), it costs $0.02 USDC via x402 (a paid call the agent must budget/auth for), and the output is a recursive call tree with security flags for hidden approvals and delegatecalls. It omits failure modes (unsupported selectors, malformed 0x data) and any recursion-depth limits, which keeps it below a 5.

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?

Two compact sentences with the capability, the security flags, the offline property, and the price all front-loaded; no filler or repetition. The terse fragments ('Offline.', 'Paid: ...') are functional rather than sloppy.

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 simple two-parameter tool with no output schema and no annotations, the description covers what it consumes, what it produces (a call tree), and two non-obvious operational facts (offline execution, x402 payment). It would be fully complete with a note on unsupported input handling and how deep recursion goes.

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 coverage is 100% with both parameters documented ('data' as 0x calldata, 'to' as optional target contract), so the schema already does the work. The description adds only indirect meaning — that 'data' is expected to be multicall/batch-shaped and 'to' matters for resolution — without clarifying format, chain, or whether 'to' affects decoding of self-calls. Baseline 3 is appropriate.

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 ('Recursively decode ... calldata into a call tree') and enumerates the exact encodings it handles (multicall, Multicall3, Safe multiSend, 4337 executeBatch, Universal Router), which lets an agent distinguish it from single-transaction decoders. It stops short of naming which sibling to use for non-batched calldata, so the differentiation is inferred from scope 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 the enumerated encodings — an agent will infer 'use this when the calldata is a multicall/batch' — and 'flags hidden approvals and delegatecalls' hints at the security-analysis use case. However, there is no explicit when-to-use, when-not-to-use, or named alternative (e.g. abi_decode, decode_tx) for single-call calldata.

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.