Skip to main content
Glama

ScorpTech x402 Tools

Evm Selector Decode

evm_selector_decode
Read-onlyIdempotent

Decode EVM function selectors, calldata and event topics: looks up 4-byte selectors (or 32-byte event topics) in 4byte.directory plus a built-in table of well-known signatures, re-hashes every candidate with Keccak-256 to drop bad entries, and for full calldata ABI-decodes the arguments (address with EIP-55 checksum, uint/int as exact decimal strings, bool, bytes, string, arrays, tuples), ranking candidates that decode cleanly first. Also computes the selector/topic for a given signature. Price: $0.005 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/evm-selector-decode

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax candidates 1-50 (default 10)
topicNo32-byte event topic0 hash
calldataNoFull transaction input data (0x...), decoded against the candidates
selectorNo4-byte function selector, e.g. 0xa9059cbb
signatureNoA signature like transfer(address,uint256) to hash into its selector/topic

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, and the description adds substantial context beyond that: external lookup in 4byte.directory, built-in signature table, Keccak-256 re-hashing, candidate ranking, ABI decoding details, and pricing. There is no contradiction with the annotations.

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?

The description is front-loaded and dense with useful information, but it is essentially one long multi-clause sentence with a lengthy type enumeration. It earns most of its space, yet could be structured more cleanly.

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 no-output-schema, fully optional-parameter tool, the description gives strong behavioral context and explains candidate ranking and decoding. It omits the expected response shape and does not state that at least one of selector, topic, calldata, or signature must be supplied, which is a meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful semantics by explaining that calldata is ABI-decoded against candidates, signatures are hashed into selectors/topics, and candidates are ranked by clean decoding, though it does not clarify the required combination of optional parameters.

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 states a specific verb and resource: decoding EVM function selectors, calldata, and event topics, plus computing selectors/topics from signatures. It clearly distinguishes this selector-decoding utility from general EVM read/info tools in the sibling list.

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?

It gives a clear context for use by naming the input modes (selector lookup, topic lookup, calldata decoding, signature hashing). However, it does not explicitly state when to prefer this over adjacent tools such as evm_read or evm_contract_info, nor does it state exclusions.

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