Skip to main content
Glama

Base Uniswap v4 Zero-Slippage RFQ Hook

univ4_rfq_get_hookdata

Retrieves the pre-fetched ECDSA-signed bytes hookData for a quoteId to pass to Uniswap v4 PoolManager.swap(key, params, hookData).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteIdYesThe 32-byte hex quoteId returned by univ4_rfq_get_quote

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that the value is pre-fetched and ECDSA-signed, implying no local signing is needed, but says nothing about quoteId lifetime/expiry, whether hookData can go stale, failure modes, or idempotency — meaningful gaps for an RFQ flow.

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?

A single efficient sentence that front-loads the action and resource and ends with the concrete integration target. No filler or redundancy.

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?

With one parameter and no output schema, the description covers the essential contract: what is fetched and what the returned bytes are for. It is only slightly thin on lifecycle/failure context, but an agent has enough to call it correctly.

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%: the single quoteId parameter already documents itself as the 32-byte hex value returned by univ4_rfq_get_quote. The description adds no format or constraint detail beyond that, so the 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 gives a specific verb (retrieves) and a specific resource (pre-fetched ECDSA-signed hookData bytes for a quoteId), and even states the downstream consumer (PoolManager.swap). It is immediately distinguishable from get_quote and quote_and_build_swap, though it never names those siblings explicitly.

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?

Usage is implied by the phrase 'for a quoteId' and the reference to passing the result to PoolManager.swap, which suggests a post-get_quote step. However, there is no explicit when-to-use, ordering, or when-not guidance relative to siblings like univ4_rfq_quote_and_build_swap, which may already bundle building.

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.