Skip to main content
Glama

decode_hook_on

Decode a HookOn bitmap into the set of transaction types that fire the hook. Handles inverted/active-low encoding and the active-high SetHook bit offline.

Instructions

Decode a HookOn 256-bit bitmap into the set of transaction types the hook fires on. Handles the inverted/active-low encoding and the active-high SetHook bit. Offline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hookOnYesHookOn hex (up to 64 chars)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
errorNo
hookOnNo
firesOnNo
Behavior4/5

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

With no annotations, the description carries full burden. It details the inverted/active-low encoding and active-high SetHook bit handling, and states it is offline. It lacks explicit safety or auth notes but covers key behavioral traits.

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?

Two sentences, front-loaded with purpose, no superfluous words. Every part adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the existence of an output schema, the description does not need to explain return values. It provides sufficient encoding context for a decoding tool, making it complete for the intended use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter hookOn is described in the schema as 'HookOn hex (up to 64 chars)'. The tool description adds crucial context: it is a 256-bit bitmap with inverted encoding, going beyond the schema's minimal description.

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's action: decoding a HookOn 256-bit bitmap into transaction types. It includes specifics about encoding and offline operation, distinguishing it from siblings like encode_hook_on.

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 mentions 'Offline' to imply no network needed, but does not explicitly state when to use this tool versus alternatives like decode_hook_can_emit or encode_hook_on. No when-not guidance is provided.

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