Skip to main content
Glama

mechacut

eth_selector

Canonical function signature -> 4-byte selector via vendored pure-Python keccak256 (verified against published vectors). No more invented selectors. Free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "signature": "<signature>"
    },
    "name": "eth_selector"
  }
}

Input Schema

NameRequiredDescriptionDefault
signatureYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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; it discloses that the implementation is vendored pure-Python keccak256 verified against published vectors, which is meaningful accuracy/determinism context. It does not say what happens on a malformed or non-canonical signature, whether output includes a 0x prefix, or whether the call is deterministic/pure.

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?

Very short and front-loaded with the transformation, which is the most important information. The trailing fragments ('No more invented selectors. Free.') are partly marketing but each is brief and the second conveys cost-free local execution.

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?

For a one-parameter deterministic converter with no output schema, the description covers the core contract but omits output format specifics and error behavior on invalid input. It is adequate but leaves the agent guessing on exact string formats.

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 0%, so the description must define the single parameter; 'Canonical function signature' gives the shape of the value to pass, which is real added meaning. It still leaves ambiguity about exact formatting (spaces, return types, whether 'function ' prefix is allowed) that would determine a correct call.

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 names a specific input ('Canonical function signature') and a specific output ('4-byte selector'), with the mechanism (keccak256) called out. This clearly distinguishes it from encoding/decoding siblings and from address helpers, though it does not name any sibling explicitly.

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

Usage Guidelines3/5

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

'No more invented selectors' implicitly tells the agent to use this instead of guessing a selector, which is useful usage context. However, there is no explicit statement of when this applies versus alternatives like eth_abi_encode, nor any exclusion or prerequisite.

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.