Skip to main content
Glama

swap_create

Create non-custodial cross-chain swap orders for 1288+ assets. Options include auto-select provider or specific provider like changenow, simpleswap, heleket.

Instructions

Create a non-custodial cross-chain swap order. 3 providers: changenow (1288+ assets, returns payinAddress), simpleswap (400+ assets, returns payinAddress), heleket (XMR-optimised 5-6 conf, returns redirectUrl to payment page). Omit provider for auto-select.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination asset ticker (e.g. xmr, btc, sol)
fromYesSource asset ticker (e.g. sol, btc, eth, usdt)
toNetNoDestination network override
amountYesAmount to send
addressYesDestination address to receive swapped funds
fromNetNoSource network override (e.g. arbitrum, base, tron)
providerNochangenow=1288+ assets; simpleswap=400+ assets; heleket=XMR-optimised payment page
refundAddressNoOptional refund address for failed swaps
Behavior5/5

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

Adds significant behavioral context beyond annotations: non-custodial nature, provider-specific return types (payinAddress vs redirectUrl), asset counts, and XMR confirmation requirements. No contradiction with annotations (readOnlyHint=false, destructiveHint=false).

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?

Concise 3-sentence structure, front-loaded with main action, every sentence adds unique value. No redundancy or fluff.

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?

Handles provider-specific return types and auto-select well. Lacks mention of asynchronous nature or need to check swap_status for completion, but given no output schema, this is acceptable. Could be more complete for a complex cross-chain operation.

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?

With 100% schema description coverage, baseline is 3. The description adds value by explaining provider enum details (changenow=1288+ assets) and that refundAddress is optional. It does not add extra meaning for other parameters but compensates for provider clarity.

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?

The description clearly states it creates a non-custodial cross-chain swap order, specifies three providers with distinct features (asset counts, return types), and distinguishes from single-chain swaps (evm_swap, sol_swap) by emphasizing cross-chain capability.

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?

Provides provider selection guidance and mentions auto-select if omitted. However, it does not explicitly contrast with sibling swap tools (e.g., when to use swap_create vs evm_swap/sol_swap), though the cross-chain nature is implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/polsolbridge/solana-swap-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server