Skip to main content
Glama

Swap quote and unsigned transaction (Chord)

chord_swap_quote
Read-onlyIdempotent

Best swap route from Chord (getchord.xyz) across the DEXs of the chain, with the UNSIGNED transaction to sign, the ERC-20 approval it needs (as a ready transaction) and a simulation run from the taker wallet. Amounts are integer strings in the token's smallest unit; the zero address is the native coin. Nothing is sent: sign with your own key, then send_raw_transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChord chain key.
takerNoThe wallet that will sign. With it the answer carries tx + approval + a simulation from that wallet.
amountYesAmount of tokenIn in its smallest unit, e.g. '10000000' = 10 USDC.
tokenInYesToken sold (zero address = native coin).
tokenOutYesToken bought (zero address = native coin).
slippageBpsNoSlippage in basis points (default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "base",
      -  "monad",
      -  "bnb",
      -  "avalanche",
      -  "arbitrum",
      -  "robinhood",
      -  "arc"
      -]New value: +[
      +  "base",
      +  "ethereum",
      +  "monad",
      +  "bnb",
      +  "avalanche",
      +  "arbitrum",
      +  "robinhood",
      +  "arc"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: the response bundles an ERC-20 approval transaction, a simulation run from the taker wallet, and the fact that supplying taker changes the payload. Auth and no-side-effect behavior are both made explicit.

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 paragraph with purpose front-loaded and zero filler; the run-on third clause slightly blurs the amount/zero-address details, but every sentence earns its place.

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 compensates by enumerating what comes back (tx, approval, simulation) and how to use it. For a 6-param quote tool this leaves the agent nothing essential missing.

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 every parameter is already documented. The description restates amount-as-smallest-unit and zero-address-as-native, which the schema already covers, and adds only a weak hint about taker's effect on the returned payload. Baseline 3 applies.

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+resource: best swap route across the chain's DEXs, plus the unsigned transaction, approval, and simulation. Explicitly scopes itself against the sibling send_raw_transaction ('Nothing is sent'), so an agent can distinguish it without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly frames the when-not ('Nothing is sent: sign with your own key, then send_raw_transaction'), naming the alternative and the follow-up step. It stops short of saying when to prefer this quote tool over other routes or when to omit taker, so it is clear context rather than exhaustive routing guidance.

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.