Skip to main content
Glama

Beggar Bot

event_topic_codec

Event signature <-> topic0 codec: normalize Solidity event declarations (strips indexed/names) to keccak topic0, and reverse-look-up topic0 hashes against 40+ common events (ERC-20/721/1155, EIP-3009, 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": "event_topic_codec"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicNocsv 0x topic0
signatureNoevent sig(s), ; separated

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, and it does disclose useful traits: normalization strips `indexed` keywords and parameter names, lookups are limited to 40+ curated events (ERC-20/721/1155, EIP-3009), and there is a $0.02 USDC x402 cost. It omits the return shape and behavior when a topic0 is not in the table, which matters for an unannotated tool with no output schema.

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 compact sentence that front-loads the signature<->topic0 mapping and then the supported event set. It loses a point for the malformed, truncated closing parenthesis around the payment note, which slightly harms readability.

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 two-parameter codec with no output schema and no annotations, the description covers the domain and scope (40+ events, cost) but leaves the response format and no-match behavior unexplained. Adequate but with clear gaps for a tool whose output is the whole point.

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 100%, so both parameters are already documented (csv topic0 list, semicolon-separated signatures). The description adds a little meaning beyond the schema by explaining that signatures are normalized by stripping indexed/names, but it adds nothing about batching, ordering of results, or mutual exclusivity of the two parameters.

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 bidirectional resource and operation: normalize Solidity event declarations to keccak topic0, and reverse-look-up topic0 against a known event table. This is unambiguous and hard to confuse with codec siblings like rlp_codec or abi_encode, though it never explicitly contrasts itself with them.

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 two directions imply usage (pass `signature` to normalize, pass `topic` to look up), so an agent can infer which parameter selects which mode. However, there is no explicit when-to-use/when-not guidance, no statement about what happens on a failed lookup, and no steering toward alternative tools for unlisted events.

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.