Skip to main content
Glama

Base swap quote

base_swap_quote
Read-only

Base (EVM) swap via 0x with the app fee included. Returns status 'coming_soon' while Base trading is switched off. With a taker it returns a firm quote with an UNSIGNED transaction for the agent's own wallet.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sellToken": "<sellToken>",
      "buyToken": "<buyToken>",
      "sellAmount": "<sellAmount>"
    },
    "name": "base_swap_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
takerNoOptional PUBLIC 0x address of the signing wallet
buyTokenYes
sellTokenYes
sellAmountYesAmount in the input token's base units (integer string)
slippageBpsNoMax slippage in basis points

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds genuinely new behavior: the app fee is bundled into the quote, the endpoint can return status 'coming_soon' while Base trading is disabled, and the returned transaction is UNSIGNED so nothing is broadcast. That last point is critical context an agent cannot get from the annotations.

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 tight sentences, front-loaded with chain/provider/fee, then the gating condition, then the return shape. The phrasing is dense and slightly telegraphic ('With a taker it returns...') but nothing is wasted.

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

Completeness3/5

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

No output schema exists, so the description must carry return-shape burden; it covers the coming_soon status and the unsigned transaction but not the quote fields (amounts, price impact, expiry) an agent needs to act on the result. Adequate for a five-parameter tool but not complete.

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 60% (sellAmount and slippageBps are documented in-schema, sellToken/buyToken only have patterns). The description adds meaningful semantics for taker (firm quote plus unsigned tx scoped to that wallet) but says nothing about what the token parameters accept or what a taker-less quote returns, leaving coverage gaps unfilled.

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 concrete verb, resource, chain and provider: 'Base (EVM) swap via 0x' and that it returns a quote. The chain qualifier inherently separates it from solana_swap_quote, though no sibling is named explicitly.

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?

Implies the taker parameter is what upgrades an indicative quote to a firm quote for the agent's own wallet, which is real selection guidance. It never states the broader workflow (quote then sign/send) or when to skip this tool entirely because Base trading is off.

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