Skip to main content
Glama

function_selector

Explain a common EVM 4-byte function selector (e.g. "0x70a08231") or look one up by function name (e.g. "balanceOf"). A small built-in reference table — educational, not part of the paid catalog.

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": {
      "query": "<query>"
    },
    "name": "function_selector"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose two genuinely useful traits: the data comes from a small built-in reference table (so coverage is finite and results are offline/cached) and it is outside the paid catalog. It does not say what happens for an unrecognized selector or name (error vs empty result), which is the main behavioral unknown for a lookup tool.

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?

Two short sentences: the capability with examples comes first, the coverage caveat second. No restatement of the name, no filler, and every clause carries information an agent would otherwise have to guess.

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

Completeness5/5

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

An output schema exists, so return values need not be explained, and for a one-parameter reference lookup the description covers input formats, data source, and scope. The only residual gap — unknown-input behavior — is minor relative to the tool's simplicity.

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 0% and the single parameter is only named "query", so the description must supply all semantics — and it does, defining the two accepted input shapes with literal examples of each. It stops short of stating case sensitivity, 0x-prefix requirements, or handling of ambiguous names, but the core meaning is fully added.

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 gives a specific verb and resource ("Explain a common EVM 4-byte function selector") plus a second mode ("look one up by function name"), each illustrated with a concrete example. The sibling list is entirely base_* chain/RPC tools, so this is distinguishable in practice, though the description itself never contrasts itself with anything.

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?

Usage is implied through the two example inputs ("0x70a08231" vs "balanceOf"), which tells an agent that either form is acceptable. The note that it is "educational, not part of the paid catalog" signals a free local utility, but there is no explicit statement of when to reach for this instead of a contract/ABI lookup tool, and no guidance on unsupported or unknown selectors.

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