Skip to main content
Glama

get_event_topic

Compute the topic0 hash for a Solidity event signature. Obtain the keccak256 topic identifier needed for filtering logs and decoding events.

Instructions

Compute the topic0 hash for a Solidity event signature

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
signatureYesThe event signature (e.g., 'Transfer(address,address,uint256)')
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 accurately conveys that this is a pure computation, but it does not disclose the return format (e.g., 0x-prefixed hex) or any edge cases. The core behavior is clear, but additional context would be helpful.

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?

One concise sentence, front-loaded with the verb and object, with no wasted words. It is appropriately sized for the tool's simplicity.

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 computation tool with no output schema, the description sufficiently indicates what is computed and the input. However, it lacks details on return value formatting and differentiation from closely related sibling tools, leaving minor gaps.

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?

The input schema already covers the 'signature' parameter with a clear description and example. The tool description adds minimal semantic value beyond restating the parameter context, so the baseline of 3 is appropriate.

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 clearly states the action ('Compute') and the specific resource ('topic0 hash for a Solidity event signature'). It uses precise terminology and is unambiguous, though it does not explicitly differentiate from the similar sibling tool 'calculate_event_signature'.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as 'calculate_event_signature' or 'get_event_topics'. There is no mention of context, prerequisites, or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nirholas/universal-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server