Skip to main content
Glama

Hook permission bits (free)

hook_flags
Read-onlyIdempotent

Free: the permission bits of a Uniswap v4 hook from its address (which callbacks the PoolManager will ever call) and a known-template match (IMD's pool guard, NightshiftHook).

Input Schema

NameRequiredDescriptionDefault
addressYesUniswap v4 hook address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and nondestructive behavior. The description adds useful semantic context by explaining that the bits indicate which callbacks PoolManager will ever call and that it returns a known-template match, but it does not cover output format or edge cases.

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?

The description is a single dense sentence that front-loads the core result. The repeated 'Free:' prefix is slightly redundant with the title but does not undermine clarity.

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?

With no output schema, the description carries more burden to explain return values. It conceptually names the returned data, permission bits and template match, but does not describe encoding, response structure, or failure behavior.

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?

There is one required parameter, and schema description coverage is 100%, so the schema already defines it as a Uniswap v4 hook address. The description adds no formatting or semantic detail beyond that baseline.

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 states a specific resource and result: permission bits for a Uniswap v4 hook address and a known-template match. It clearly indicates what the tool returns, though it does not explicitly differentiate itself from the sibling hook_inspect.

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 explains what the tool provides but gives no explicit guidance on when to use it versus alternatives such as hook_inspect. The implied use case is broad: retrieve hook permission bits and template matching for an address.

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.