Skip to main content
Glama

OpenAny

Uniswap Get a quote

uniswap_post_v1_quote

Get a quote. Uses the native public Uniswap HTTP contract. Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.

Input Schema

NameRequiredDescriptionDefault
bodyYesbody
x-agent-infoNox-agent-info
x-api-experimentalNoRequests Guidestar routing. Requires x-universal-router-swapsteps: true. Supported for EXACT_INPUT quotes on Ethereum (1), Base (8453), and Robinhood Chain (4663); any other request, including one without the swap steps header, returns a 400 InputValidationError. A Guidestar request does not fall back to standard routing: if Guidestar cannot produce a quote, the request returns a 404. Guidestar routing is in beta and its behavior may change. Omitting the header or setting it to false keeps standard routing.
x-erc20eth-enabledNoEnable native ETH input support for UniswapX via ERC20-ETH (EIP-7914). When set to true and `tokenIn` is the native currency address (e.g. `0x0000000000000000000000000000000000000000`), the API may return UniswapX routes that spend native ETH for supported wallets.
x-permit2-disabledNoDisables the Permit2 approval flow. When set to `true`, `permitData` is returned as `null` and the header is forwarded to the routing layer for correct gas simulation against the Proxy Universal Router contract. When `false` or omitted, the standard Permit2 approval flow is used. This header is intended for integrators whose infrastructure uses a direct approval-then-swap pattern without Permit2.
x-universal-router-versionNoThe version of the Universal Router to use for the swap journey. *MUST* be consistent throughout the API calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose real operational facts: it calls the native public Uniswap HTTP contract, uses the caller's OpenAny gateway credentials, and that charging/authorization are gateway-determined. However, it says nothing about whether the call mutates anything, rate limits, quote expiry, or how routing preferences affect results.

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?

Three short sentences, front-loaded with the action, and nothing is redundant. The tradeoff is that the brevity comes from boilerplate rather than targeted information.

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

Completeness2/5

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

This is a complex endpoint with a nested body object of roughly twenty properties, cross-field constraints, no output schema, and no annotations. A description this thin leaves an agent without the domain framing (what a quote returns, that a swap must be signed separately, slippage requirements) needed to use it confidently.

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 reported at 100%, so the schema carries parameter documentation and a baseline of 3 applies. The description adds no meaning about the required body fields, the EXACT_INPUT/EXACT_OUTPUT choice, or the oneOf constraint requiring either slippageTolerance or autoSlippage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get a quote" essentially restates the title "Uniswap Get a quote" and the tool name; it adds no distinguishing detail. It does not say what kind of quote (swap route quote for a token pair), nor how it differs from the many sibling uniswap_post_v1_* endpoints such as swap, order, plan, and check_approval.

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?

There is no guidance on when to use this versus uniswap_post_v1_swap or uniswap_post_v1_order, no prerequisites (e.g. that a quote normally precedes a swap), and no exclusions. The only context given concerns gateway credentials, which is not usage guidance.

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.