Skip to main content
Glama

eth_lookup_selector

Read-only

Look up a 4-byte function or error selector against 4byte.directory. Returns matching function/error signatures. Useful for identifying unknown calldata selectors or decoding custom errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes4-byte selector (0x-prefixed, e.g. 0x70a08231)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds concrete context by naming the external source (4byte.directory) and indicating the return content ('matching function/error signatures'). This goes beyond the annotations without contradicting them.

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 two sentences, front-loaded with the action, and every sentence contributes value. No fluff or redundancy.

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 single-parameter read-only lookup with no output schema, the description covers the purpose, the external source, and the return type. It does not detail the exact output shape or no-match behavior, but the tool is simple enough that this is a minor gap.

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 description coverage is 100%, so the parameter is fully documented in the schema. The description only reiterates the concept of a 4-byte selector without adding new meaning, 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 clearly states the action ('Look up'), the resource ('4-byte function or error selector'), and the target ('against 4byte.directory'). It also distinguishes itself from sibling tools like eth_lookup_address (addresses) and eth_get_abi (ABI) by focusing specifically on selector signature lookup.

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 provides clear usage context: 'Useful for identifying unknown calldata selectors or decoding custom errors.' It does not explicitly name alternatives or exclusions, but the use case is unmistakable, and sibling tools are different in function.

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