Skip to main content
Glama

flow_quote

Get a best-execution swap quote on Base. Compares Uniswap V3, PancakeSwap V3 and Aerodrome (plus two-hop routes via WETH), returns the winning venue, expected output, edge in bps vs the baseline, a liquidity flag (deep/watch/thin), the exact block number and timestamp, and build latency. Read-only: no funds move.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainIdNoChain id, defaults to 8453 (Base)
tokenInYesInput token contract address on Base (e.g. USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA4E46E)
amountInYesHuman-readable input amount, e.g. "10" for 10 USDC
tokenOutYesOutput token contract address on Base (e.g. WETH 0x4200000000000000000000000000000000000006)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it declares read-only/no-funds-move safety, the venues compared, that two-hop routes are included, and how freshness is conveyed (exact block number and timestamp). It omits error/fallback behavior when no route exists and gives no hint about caching, rate limits, or whether the quote is indicative vs executable.

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?

Front-loaded with the core purpose, then a compact enumeration of return fields and the read-only guarantee. The long second sentence is dense but nearly every clause maps to a real output field; nothing is padded.

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

Completeness5/5

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

With no output schema, the description must describe returns and does so exhaustively: winning venue, expected output, edge in bps vs baseline, liquidity flag (deep/watch/thin), block number, timestamp, and build latency. Combined with the venue list and read-only statement, an agent has everything needed to call and interpret this 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 coverage is 100%, with each of the four parameters (including the chainId default of 8453) documented in-schema, so the baseline is 3. The description only reiterates 'on Base' and adds no format, unit, or constraint detail beyond the schema.

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

Purpose5/5

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

States a specific verb and resource ('Get a best-execution swap quote on Base') and immediately scopes the mechanism (Uniswap V3, PancakeSwap V3, Aerodrome, two-hop via WETH). It is trivially distinguishable from the only sibling, flow_health, which is a health check. No ambiguity about what the tool returns.

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 rather than stated: an agent can infer this is the pricing/quoting call, and 'Read-only: no funds move' signals it is safe to call freely. However there is no explicit when-to-use, no mention of when the quote should not be trusted (stale block, thin liquidity), and no routing to an execution counterpart.

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.

Resources