Skip to main content
Glama

calldata_decode

Use when: what am I about to sign with this calldata? Decode EVM calldata before signing: function signature candidates (openchain DB), decoded args, and plain-English warnings for approve/setApprovalForAll/permit/unlimited amounts. Costs $0.005.

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": "calldata_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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. It earns credit for disclosing two non-obvious traits: the cost ($0.005) and the data source (openchain DB) for signature resolution. However, it does not state that the operation is passive/read-only, which chain(s) are supported for calldata, or what is returned when no signature match is found — the most likely failure mode for a decoder.

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?

A single dense sentence that front-loads the use case and then enumerates outputs and price; no filler. The colon-chained list is slightly compressed, but each clause (trigger, data source, outputs, warning coverage, cost) carries distinct information.

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 one-parameter decoder with no output schema and no annotations, the description does useful double duty by enumerating what comes back (candidates, args, warnings). It still leaves gaps on chain coverage and on degraded/failed decoding behavior, which matter for an agent deciding whether to trust the result before a signature.

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 0% and the single required parameter `data` is never described. The description's domain framing ("EVM calldata") does imply the parameter is 0x-prefixed hex call data, but the schema's 0x+selector pattern and the 4000-byte cap are never surfaced in prose, so an agent could pass an ABI-encoded blob or a non-selector prefix and be surprised.

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 EVM calldata") plus the concrete deliverables: signature candidates from the openchain DB, decoded args, and plain-English warnings for approve/setApprovalForAll/permit/unlimited-amount patterns. The "before signing" framing implicitly separates it from the post-hoc *_tx_explain siblings, but no sibling is named explicitly, so the 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 Guidelines4/5

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

The "Use when: what am I about to sign with this calldata?" trigger gives a clear, actionable context for selection. It stops short of explicit exclusions or point-naming an alternative (e.g. use *_tx_explain for already-mined transactions, or *_token_approvals for standing allowances), so an agent must reason about boundaries itself.

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