Skip to main content
Glama

ANANSI Swap Quote

quote_anansi
Read-onlyIdempotent

Live, read-only swap quotes + unsigned Base SwapRouter02 exactInputSingle calldata for ANANSI on Base: optional custom usd_amount and recipient, pool liquidity, Uniswap swap/pool links, utility notes, and a plain risk warning. ANANSI is not an investment.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "quote_anansi"
  }
}

Input Schema

NameRequiredDescriptionDefault
recipientNooptional Base 0x... recipient for swap_tx calldata (defaults to msg.sender sentinel)
usd_amountNooptional custom USD swap size
slippage_bpsNooptional slippage tolerance in bps (default 200 = 2%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / usd_amount / description
      Previous value: -"optional custom USD swap size (e.g. 0.5, 1, 5)"New value: +"optional custom USD swap size"
  2. Changed3 schema fields changed
    • addedInput schema / properties / recipient
      Added value: +{
      +  "description": "optional Base 0x... recipient for swap_tx calldata (defaults to msg.sender sentinel)",
      +  "type": "string"
      +}
    • addedInput schema / properties / slippage_bps
      Added value: +{
      +  "description": "optional slippage tolerance in bps (default 200 = 2%)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / usd_amount
      Added value: +{
      +  "description": "optional custom USD swap size (e.g. 0.5, 1, 5)",
      +  "type": "number"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true and destructiveHint=false, covering the safety profile. The description usefully adds that the returned calldata is unsigned (so nothing executes) and that responses include pool liquidity, links, notes and a risk warning, but says nothing about quote freshness, rate limits, or whether the calldata is chain-verified.

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?

One dense, front-loaded sentence that puts the core output (live quotes + calldata) first and enumerates the extras after. It is slightly list-like and carries a compliance disclaimer, but no sentence is truly wasted for an agent deciding how to call it.

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

Completeness4/5

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

There is no output schema, so the description carries the burden of describing returns, and it does so at a summary level: quotes, calldata, liquidity, links, notes, risk warning. Combined with annotations and full schema coverage, an agent has enough to invoke it correctly, though field shapes of the response remain unspecified.

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%, so all three parameters are already documented, including defaults for recipient and slippage_bps. The description only restates usd_amount and recipient as 'optional custom' and omits slippage entirely, adding no meaning beyond the schema. Baseline 3 applies.

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?

States a specific verb+resource combination: live swap quotes plus unsigned Base SwapRouter02 exactInputSingle calldata for ANANSI, with named optional inputs (usd_amount, recipient). It is clear what the tool produces, though it does not distinguish itself from any sibling such as topup_quote.

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?

The 'read-only' and 'live quote' phrasing implies it is a pre-trade inspection step, but there is no explicit statement of when to call it versus alternatives, nor any prerequisite or exclusion. The agent must infer the workflow role.

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.