flash_quote
Price a trade across 200+ liquidity sources without executing. Returns the spend/receive amounts and estimated fees. Does not require a wallet.
This record as markdown: /tools/definitive-fi-flash-mcp/flash-quote.md
What flash_quote does on Flash
AI agents call flash_quote to retrieve information from Flash without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
qty | string | Yes | Decimal amount being spent: contraAsset units for buys, targetAsset units for sells |
side | string | Yes | |
triggers | array | — | Price triggers for stop/take-profit/bracket |
orderType | string | — | |
expireTime | string | — | ISO-8601 expiry for limit/trigger orders (omit for GTC) |
quickTrade | boolean | — | Market-only QuickTrade mode |
contraAsset | string | Yes | Address of the contra asset — spent on buys, received on sells. Native gas assets are auto-wrapped like targetAsset (the spent side is wrapped before the trade) |
contraChain | string | Yes | Chain of the contra asset (usually same as targetChain) |
maxSlippage | string | — | Slippage tolerance as a decimal, e.g. 0.01 = 1% (default 0.05) |
targetAsset | string | Yes | Address of the target (traded) asset. A native gas asset (its symbol like "ETH", "native", the zero address, or the 0xEeee… sentinel) is auto-routed through the |
targetChain | string | Yes | Chain of the target (traded) asset |
maxPriceImpact | string | — | Max price impact as a decimal (default 0.05) |
Parameters from the server's own tool schema.
Why flash_quote is rated Low
flash_quote retrieves pricing information and quotes across liquidity sources. It performs no execution, modification, or financial transaction. The absence of execution capability and wallet requirement confirms this is a read-only operation that queries market data for informational purposes.
From the tool's definition Tool description explicitly states it prices a trade 'without executing' and 'Does not require a wallet', indicating data retrieval only with no side effects.
Risk signalsHigh parameter count (19 properties)
Attacks that exploit this kind of access
The rule that runs flash_quote safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Flash, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For flash_quote, this is the rule to start with:
flash_quote is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Flash, apply this rule, and every flash_quote call is checked against it from then on.
Questions about flash_quote
Price a trade across 200+ liquidity sources without executing. Returns the spend/receive amounts and estimated fees. Does not require a wallet. It is categorised as a Read tool in the Flash MCP Server, which means it retrieves data without modifying state.
flash_quote accepts 12 parameters: qty, side, triggers, orderType, expireTime, quickTrade, contraAsset, contraChain, maxSlippage, targetAsset, targetChain, maxPriceImpact. Required: qty, side, contraAsset, contraChain, targetAsset, targetChain. The full parameter table on this page comes from the server's own tool schema.
Register the Flash MCP server in PolicyLayer and add a rule for flash_quote: 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 Flash. Nothing to install.
flash_quote 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 flash_quote 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 flash_quote. 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.
flash_quote is provided by the Flash MCP server (@definitive-fi/flash-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Flash, and thousands of servers like it.
This server
Across the catalogue