Skip to main content
Glama

encode_hook_can_emit

Build a canonical HookCanEmit hex from transaction types a hook may emit; omit to allow any transaction.

Instructions

Build a canonical HookCanEmit hex from the list of transaction types a hook should be allowed to emit (HookCanEmit amendment; same encoding as HookOn). Omit the field entirely on the SetHook to allow emitting anything. Offline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txTypesYese.g. ["Payment","Remit"]
Behavior2/5

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

No annotations exist, so the description must convey behavior. It states 'Offline' (no network) and that output is hex. However, it does not disclose error handling, validation of input types, case sensitivity, or expected output format beyond 'hex'. This leaves significant gaps for the agent.

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?

The description is two sentences with no wasted words. It front-loads the core purpose and adds a key behavioral detail (omit to allow all) succinctly.

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?

Given no output schema, the description could better explain how the hex is used (e.g., in SetHook transactions) and provide an example. It mentions 'SetHook' and 'offline', but lacks integration context or post-encoding steps.

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% with a minimal description ('e.g. ["Payment","Remit"]'). The description adds context: 'list of transaction types a hook should be allowed to emit' and mentions encoding similarity to HookOn. This is helpful but could specify valid values or format more precisely.

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 tool builds a canonical hex for the HookCanEmit field from a list of transaction types. It mentions the amendment and similarity to HookOn. However, it does not explicitly differentiate from sibling tools like encode_hook_on or decode_hook_can_emit.

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 description gives a single conditional: 'Omit the field entirely... to allow emitting anything.' This provides a when-not-to-use case. But it lacks comparison to related encoding tools or guidance on when to use this vs encode_hook_on.

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/Hugegreencandle/xahau-mcp'

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