Skip to main content
Glama

Swap or bridge by deposit (nothing to sign)

create_deposit_swap

Opens a swap or a transfer to another network paid by deposit: you get a one-time address and the exact amount to send there from any wallet or exchange, and the tokens bought are paid to toAddress. Nothing to sign or approve and no wallet connection: for an agent that can send a transfer but not sign contract calls, or for a person paying from an exchange. refundAddress is required: a deposit that cannot be swapped goes back there. A token Soheil Guard marks RISKY is refused unless acceptRisk is true. The price includes the usual swap fee. Returns swapId (for get_deposit_status), sendTo (address, memo when needed, token, amount), receive (expected and minimum), deadline and steps. Send exactly sendTo.amount before deadline. Works on the networks get_networks lists with send: true and on the EVM networks. No API key needed; a few a caller per hour.

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": {
      "fromChainId": "<fromChainId>",
      "fromToken": "<fromToken>",
      "fromAmount": "<fromAmount>",
      "toChainId": "<toChainId>",
      "toToken": "<toToken>",
      "toAddress": "<toAddress>",
      "refundAddress": "<refundAddress>"
    },
    "name": "create_deposit_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
toTokenYesThe token bought, by its address on toChainId
fromTokenYesThe token sent, by its address on that network (find_token gives it; the network's coin as get_networks names it)
toAddressYesWhere the tokens bought are paid, an address on toChainId
toChainIdYesThe network the tokens bought arrive on (fromChainId for a swap on one network)
acceptRiskNotrue to buy a token Soheil Guard marks RISKY anyway (default false)
fromAmountYesHow much is sent, a whole number in the token's smallest unit (1 USDC = 1000000)
fromChainIdYesThe network the deposit is sent on, a chainId from get_networks
refundAddressYesYour own address on fromChainId: a deposit that cannot be swapped is sent back there

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses the deposit mechanics (one-time address, exact amount, deadline), that refundAddress is mandatory and is where failed deposits go, that RISKY tokens are refused unless acceptRisk is set, that the fee is baked into the price, and the shape of the response. It also covers auth (no API key) and a rate limit, which the annotations say nothing about.

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?

Front-loaded with the core mechanism and then the constraints and return shape; nearly every sentence carries new information. A few phrases are garbled or redundant ("paid to toAddress", "a few a caller per hour"), and the single dense paragraph would read better split into usage / constraints / returns.

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?

For a mutation tool with no output schema, the description covers the critical operational facts an agent needs: what to do after the call (send exactly sendTo.amount before deadline), how to follow up (swapId via get_deposit_status), network eligibility, and the risk gate. Nothing essential to a correct invocation 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 100%, so the baseline is 3; the description still adds meaning by explaining why refundAddress is required (failed deposits return there) and when acceptRisk matters (Soheil Guard RISKY tokens). It does not add anything for fromAmount unit handling or the chainId pairing, which the schema already covers.

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?

"Opens a swap or a transfer to another network paid by deposit" gives a specific verb plus resource and immediately names the mechanism (a one-time deposit address) that separates it from quote/signing siblings. It also states the payout target (toAddress) and the sign-free property, so an agent can tell what it does without opening the schema.

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?

It names the concrete caller situations that select this tool ("an agent that can send a transfer but not sign contract calls, or for a person paying from an exchange"), which implicitly excludes callers that can sign. It stops short of naming the alternative tool to use when signing is possible, so the when-not path must be inferred.

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.