Skip to main content
Glama

encode_hook_on

Build a canonical HookOn hex string from a list of transaction types, enabling offline specification of which transactions fire the hook.

Instructions

Build a canonical HookOn hex from a list of transaction types to fire on. Offline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txTypesYese.g. ["Payment","Invoke"]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
hookOnNo
firesOnNo
Behavior3/5

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

With no annotations provided, the description carries full burden. It states 'Offline,' suggesting no side effects or network calls. However, it does not explicitly confirm the tool is read-only or purely computational, missing a chance to disclose behavioral traits beyond the schema.

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 a single sentence with no unnecessary words. It efficiently conveys the tool's purpose and an important behavioral hint ('Offline').

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?

Given the tool has an output schema (likely describing the returned hex), the description adequately covers input and core functionality. It explains input (list of tx types), purpose, and offline nature. A small improvement would be noting the hex format, but the output schema fills that gap.

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%, and the schema already provides an example for txTypes ('e.g. ["Payment","Invoke"]'). The description adds minimal semantic value beyond restating 'list of transaction types.' Baseline 3 is appropriate.

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 clearly states the tool builds a canonical HookOn hex from a list of transaction types. The verb 'Build' and resource 'canonical HookOn hex' are specific, and the purpose distinguishes it from sibling decode_hook_on and other encoding tools.

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 includes 'Offline,' implying no network is needed, which guides when to use. However, it lacks explicit alternatives or when-not-to-use guidance. The purpose is clear enough for basic usage but could be more directive.

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