Skip to main content
Glama

x402-abi-lookup

ABI Lookup: Contract ABI lookup via 4byte.directory. 🆓 5 free trial calls per signed wallet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoQ to process
chainNoChain to process
addressNoAddress to process
chainIdNoChainId to process
contractNoContract to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden. It does add useful behavioral context: '5 free trial calls per signed wallet' signals usage limits and a wallet-signing requirement. However, it does not explain authentication, payment behavior beyond the trial, or what happens when the trial is exhausted.

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 very short and front-loaded with the purpose, followed by a useful trial-call note. It contains no fluff or redundant restatement of the tool name. However, it is so terse that it sacrifices necessary operational detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has five optional parameters, no output schema, and no annotations, yet the description does not explain how to invoke the lookup or what the response contains. The trial-call disclosure is helpful, but it is insufficient for an agent to reliably select and call this tool among many similar ABI and contract-related siblings.

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

Parameters2/5

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

Although schema coverage is 100%, the schema descriptions are meaningless placeholders like 'Q to process' and 'Contract to process.' The description adds no guidance about which of the five optional parameters are required for a lookup, what values they expect, or how they relate to one another. An agent cannot confidently construct a valid request.

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 states a specific verb and resource: 'Contract ABI lookup via 4byte.directory.' This makes the core purpose clear. However, it does not explicitly differentiate itself from sibling tools like x402-abi-decode or x402-abi-encode, so the agent must infer the distinction.

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?

There is no guidance on when to use this tool versus alternatives. The description does not mention when an ABI lookup is appropriate, when it is not, or which sibling tools cover related cases. The only contextual clue is the data source, 4byte.directory, which is not an explicit usage rule.

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