AI agents call quote_swap to retrieve information from Agent without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | integer | Yes | EVM chain id (mainnet = 1 in v1). |
tokenIn | string | Yes | ERC20 input token (native ETH is not supported). |
amountIn | string | Yes | Amount in base units (integer string, e.g. USDC 6dp). |
tokenOut | string | Yes | ERC20 output token. |
recipient | string | Yes | Recipient / payer address (the wallet that signs + receives). |
slippageBps | integer | — | Optional slippage budget in basis points (0–10000). |
Parameters from the server's own tool schema.
This tool retrieves swap quotation data without executing, modifying, or broadcasting any transactions. However, severity is elevated to 'medium' rather than 'low' because the quote data could inform an AI agent's decision to execute a subsequent swap via build_swap, and miscalculation or manipulation of quote assumptions could lead to suboptimal swaps or slippage.
From the tool's definition Tool description explicitly states 'Read-only' and 'No broadcast', with function limited to returning 'expected out, guaranteed minOut, fee, and a high-level route summary'. These are query operations with no side effects.
Attacks that exploit this kind of access
Read-only ERC20 swap quote: expected out, guaranteed minOut, fee, and a high-level route summary. No broadcast. It is categorised as a Read tool in the Agent MCP Server, which means it retrieves data without modifying state.
quote_swap accepts 6 parameters: chainId, tokenIn, amountIn, tokenOut, recipient, slippageBps. Required: chainId, tokenIn, amountIn, tokenOut, recipient. The full parameter table on this page comes from the server's own tool schema.
Register the Agent MCP server in PolicyLayer and add a rule for quote_swap: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Agent. Nothing to install.
quote_swap is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the quote_swap rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for quote_swap. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
quote_swap is provided by the Agent MCP server (https://fluxiq.xyz/api/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
quote_swap is one line of Agent's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →