Skip to main content
Glama

Intents Swap

Start a swap (deposit address)

create_swap
DestructiveIdempotent

Start a swap from a quote_swap quoteId and get a deposit address, exact amount and expiry. REAL FUNDS ON MAINNET: whoever sends that amount to that address swaps it; the output goes to recipient and a refund to refundTo. Confirm both addresses with the user first. Screened as on intents.fi/swap.

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": {
      "quoteId": "<quoteId>",
      "recipient": "<recipient>",
      "refundTo": "<refundTo>"
    },
    "name": "create_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
quoteIdYes
refundToYesWhere a refund goes, on the source chain
recipientYesWhere the swapped funds go, on the destination chain

Output Schema

NameRequiredDescriptionDefault
orderYes
statusYes
depositNo
orderIdYes
summaryYes
refundToNo
recipientYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructive, openWorld and non-readOnly, but the description adds the material facts an agent needs: real mainnet funds, the exact fund flow (sender's deposit funds the swap, output to recipient, refund to refundTo), an expiry, and screening. It does not say whether the deposit address can be reused or what happens after expiry, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: action and return values first, then the risk disclosure, then the confirmation instruction. Every sentence carries information that is not duplicated in the schema or annotations.

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 an output schema present, the description need not explain return values, and it still summarizes them; annotations cover the safety profile and the description covers fund reality, prerequisites and screening. Nothing an agent needs to invoke this safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and already explains recipient and refundTo destination chains; the description reinforces the fund-flow roles and uniquely ties quoteId back to quote_swap. It adds meaning to the one undocumented parameter (quoteId) rather than merely restating 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 (start a swap) plus the inputs and outputs (quoteId in; deposit address, exact amount, expiry out). Naming quote_swap as the source of quoteId cleanly separates it from the sibling that produces quotes.

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?

Establishes the prerequisite chain (you need a quote_swap quoteId first) and an explicit pre-call obligation: confirm both recipient and refundTo with the user. It stops short of stating when-not to use it or naming a distinct alternative flow, so it is clear context without full 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.