Skip to main content
Glama

Is this Uniswap V4 pool and hook safe to interact with?

uniswap_v4_hook_guard

Is this Uniswap V4 pool and hook safe to interact with? Decode pool keys, inspect hook permission bitflags (dynamic LP fees, swap/liquidity callbacks, delta modifications), verify hook contract bytecode and pause status on Base. Paid per call with x402 on Base: $0.15 to $0.54 USDC depending on how much of the answer the network already has. Shared: reusing an answer another agent already paid for costs less, and the wallet that produced it earns a bounded credit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feeYesFee tier or dynamic fee flag (24-bit uint).
hooksNoHook contract address (or zero address).
currency0YesFirst token address in the pool.
currency1YesSecond token address in the pool.
poolManagerNoUniswap V4 PoolManager address.
tickSpacingYesPool tick spacing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries full behavioral burden and does well: it enumerates what is inspected (bitflags, bytecode, pause status), states the chain (Base), and discloses the payment/sharing model including x402 charging ($0.15–$0.54 USDC) and answer reuse economics. It stops short of describing the verdict/return format, but the cost and analysis-scope disclosure is unusually rich.

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 front-loads the core question and analysis scope before the pricing detail, and every sentence carries distinct information. Minor redundancy from restating the title, and the pricing sentence is dense, but overall it is well-structured.

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 six-parameter safety-guard tool with no output schema and no annotations, the description covers what is analyzed and the cost model, which is what an agent needs before calling. The gap is that it never hints at the returned verdict structure, which would matter given there is no output schema.

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 description coverage is 100%, so the schema already documents all six fields (fee, hooks, currency0/1, poolManager, tickSpacing) with patterns and types. The description mentions 'pool keys' and 'hook' generically but adds no syntax or format beyond the schema, so baseline 3 applies.

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 names a specific verb set (decode pool keys, inspect hook permission bitflags, verify hook bytecode and pause status) tied to a precise resource (a Uniswap V4 pool and its hook on Base), so an agent knows exactly what analysis it performs. It does not, however, distinguish itself from guard siblings like contract_guard or transaction_intent_guard.

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 framing as a question ('is this safe to interact with?') implies usage as a pre-interaction safety check, which is adequate implied guidance. But there is no explicit when-to-use statement and no mention of the alternative guard tools an agent should weigh against it.

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.