Skip to main content
Glama

Create a prefilled sendstables link

create_swap_link
Read-only

Build a link that opens sendstables with the transfer prefilled. The user logs in, reviews the live quote and confirms; nothing executes automatically. Also returns a short human summary with the current fee preview (when an amount is given). Same chain (from = to): the link opens "send to another address" with the recipient prefilled (pass recipient; without one the user types it in the app). Give the user the url.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "create_swap_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination chain slug; the same as `from` for a same-chain send to another address.
refNoOptional attribution tag for the link (letters, digits, - or _).
fromYesSource chain slug.
amountNoUSDC amount the user pays, fees included, as a decimal string, e.g. "50" or "10.5".
recipientNoDestination address on `to` (0x… EVM, base58 Solana, G… Stellar). Omit to move funds to the user's own wallet on `to`. Required when `from` and `to` are the same chain (a same-chain send to someone else). Only use an address the user gave you.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description reinforces that nothing executes automatically and that confirmation happens in the app after login. It also discloses the side return payload (a short human summary with the current fee preview when an amount is given), which annotations do not cover. It omits things like link expiry or whether the prefilled quote stays valid.

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 sentences, front-loaded with the purpose and followed by the same-chain case and the expected output. Every sentence carries information, though the trailing 'Give the user the `url`' is a bit tacked on and the same-chain clause is dense.

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?

No output schema exists, and the description compensates by stating that a `url` plus a human-readable fee summary are returned, and what the agent should do with them. For a 5-parameter read-only tool this is largely sufficient, with only link lifetime and failure modes left unmentioned.

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

Parameters5/5

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

The description supplies the meaning of `recipient` as an optional attribute for a same-chain send, and the schema itself is at 100% coverage, so the schema already carries most of the parameter detail. It adds very little beyond what the schema states about each parameter, so the score is a baseline-to-slightly-above value.

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 and resource: 'Build a link that opens sendstables with the transfer prefilled.' The non-executing nature is made explicit. It does not name the sibling tools (list_chains, quote_transfer) to differentiate, so the agent must infer that this is the link-generation path rather than a quoting path.

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?

Usage is implied by the workflow described (user logs in, reviews the live quote, confirms) and by the same-chain branch with the `recipient` case. There is no explicit when-to-use-vs-alternatives statement, notably no guidance on when to call quote_transfer for a fee preview versus relying on this tool's summary.

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