Skip to main content
Glama

Beggar Bot

contract_selectors

List a contract's function selectors from bytecode (follows EIP-1967/USDC/1167/7702 proxies), name them, detect interfaces (ERC-20/721/2612/3009/4626/Safe) and privileged functions. Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "contract_selectors"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase
addressNo0x...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two non-obvious traits: automatic proxy resolution across EIP-1967/USDC/1167/7702 patterns, and that the call is paid ($0.02 USDC via x402) — critical for an agent deciding whether to invoke it. It stops short of covering failure modes, latency, or payment-failure behavior, so it is strong but not exhaustive.

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?

A single front-loaded sentence where every clause adds information — selectors, naming, interface detection, privileged functions, proxy types, and price. It is dense and slightly run-on, but there is no filler or repetition.

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?

There is no output schema, so the description must convey the return shape; it partially does by listing what is produced (named selectors, interfaces, privileged functions). It does not describe the structure of the result, optional-parameter defaults, or error conditions, leaving gaps for a two-parameter optional-input tool with no annotations.

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 reported at 100% for the two parameters, but the schema text itself is minimal ("base" and "0x..."), and the description adds no chain defaults, address validation rules, or behavior when parameters are omitted (both are optional). Baseline 3 applies since the description does not compensate for the thin schema wording.

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 names a specific verb and resource ("List a contract's function selectors from bytecode") and enumerates the derived outputs: naming, interface detection (ERC-20/721/2612/3009/4626/Safe) and privileged-function flagging. That scope clearly separates it from siblings like contract_verified, read_contract or abi_decode, which operate on source/ABI rather than raw bytecode.

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?

The phrase "from bytecode" implicitly tells the agent this works without source code, and proxy-following implies it handles proxy contracts. But there is no explicit when-to-use versus when-not guidance, no mention of alternatives such as contract_verified for source-based inspection, and no statement about what happens on EOAs or non-contract addresses.

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.