Skip to main content
Glama
zalana28

EVM MCP Auditor

by zalana28

evm_decode_calldata

Decode raw EVM transaction calldata into function selector, parameter segments, and byte length to analyze the transaction and inspect its arguments.

Instructions

Decode raw EVM transaction calldata into function selector, parameter segments, and byte length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
calldataYesHex encoded transaction calldata starting with 0x.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 of behavior disclosure. It states what the tool returns (decoded components) but does not mention error handling, input validation, or any side effects. It adds some value by specifying the output structure beyond the schema, but it omits important behavioral details.

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, well-structured sentence that directly states the tool's purpose and outputs. No unnecessary words or repetition, making it highly concise and easy to parse.

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 tool with one parameter and no output schema, the description provides sufficient context about the operation and expected output. It could be more detailed about the exact format of the decoded segments, but overall it is complete enough for a decode function.

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?

The schema already provides 100% coverage for the single parameter 'calldata', specifying it as hex-encoded and starting with 0x. The tool description does not add further semantic meaning to the parameter, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Decode' with a clear resource 'raw EVM transaction calldata' and explicitly lists the output components (function selector, parameter segments, byte length). It is easily distinguishable from sibling tools like evm_estimate_gas or evm_audit_contract.

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 description implies when to use the tool (whenever raw EVM calldata needs decoding) but does not explicitly mention alternatives or exclusion scenarios. The context is clear enough for an AI agent to infer the appropriate use case, but it lacks explicit guidance on when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.