Skip to main content
Glama

OpenAny

Uniswap Create swap calldata

uniswap_post_v1_swap

Create swap calldata. 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-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

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two genuinely useful behavioral facts beyond the schema: authentication uses the caller's gateway credentials and charges/authorization are decided by the gateway. It says nothing about whether anything on-chain is executed, whether the swap is simulated, retry/idempotency behavior, or rate limits, leaving the consequences of calling it only partly clear.

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 core action, with no filler. It could be marginally tighter, but nothing is wasted.

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?

For a tool whose body is a huge nested quote/routes schema with no output schema and no annotations, the description omits the multi-step flow (get a quote, check approval, then post swap) and the choice among swap variants. An agent can identify the tool but not reliably know how to prepare the input or what it will receive.

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% (the two header parameters are well documented in-schema), so the baseline is 3. The description adds no parameter meaning at all; notably the deeply nested, undocumented `body.quote`/`urgency`/`swapSource` structure gets no explanation of what the quote is or where it comes from.

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?

"Create swap calldata" names a specific verb (create) and resource (swap calldata), which is more precise than the title alone and tells the agent the output is calldata rather than an executed trade. It fails to distinguish the tool from the near-identical siblings uniswap_post_v1_swap_5792 and uniswap_post_v1_swap_7702, so an agent cannot tell from the description which variant to pick.

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 statement of when to use this instead of uniswap_post_v1_quote, uniswap_post_v1_check_approval, or the swap_5792/swap_7702 variants, and no mention that a quote is a required precursor (the body schema requires a `quote` object). Usage must be inferred entirely from the name and the sibling list.

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.