Skip to main content
Glama

FlexYield — blockchain RPC gateway

decode_calldata

Decode transaction calldata against the contract's verified ABI (Sourcify): function signature, selector, and argument values (static types decoded; dynamic types shown raw and labeled).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesCalldata (0x…, at least the 4-byte selector)
chainYesChain slug, e.g. 'eth_mainnet'
addressYesContract address (0x…)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It adds meaningful detail: static types are decoded, dynamic types are shown raw and labeled, and decoding depends on a Sourcify-verified ABI. It does not cover failure modes such as missing ABI verification or invalid calldata, but it conveys core behavior honestly.

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?

The description is a single efficient sentence with no filler. It front-loads the action and resource, then specifies output details and type-handling behavior. Every clause contributes useful 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?

The tool is relatively simple and all three parameters are fully documented, and the description does enumerate output components. However, with no output schema and no annotations, the description does not specify the exact return structure or error behavior when the ABI is not verified or calldata is invalid.

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%, so the parameters are already documented with descriptions for chain, address, and data. The description reinforces that 'data' is calldata and clarifies output behavior, but it does not add meaningful parameter-level semantics beyond what the schema provides.

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 clearly states the tool's action and resource: decode transaction calldata against a verified Sourcify ABI, with specific outputs listed (signature, selector, argument values). It is distinct from siblings like get_abi or verify_signature, though it does not explicitly name or contrast them.

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

Usage Guidelines2/5

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

The description offers no explicit guidance on when to use this tool versus alternatives, and no exclusions or preconditions beyond the implicit requirement of a Sourcify-verified ABI. It does not mention related tools like get_abi or explain_error that an agent might consider instead.

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