Skip to main content
Glama

swap_fund

Locks a stablecoin deposit into a gasless swap and optionally waits for funding and payout, without ETH or a second deposit.

Instructions

Swap from a stablecoin: once the deposit is at its deposit address, lock it into the swap (gasless; at most once; no ETH). wait=true: wait (up to 30 min) for the deposit, fund, then wait for the payout. Never asks for a second deposit

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": {
      "id": "<id>"
    },
    "name": "swap_fund"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
waitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses key behaviors: gasless, at most once, no ETH required, wait up to 30 minutes, waits for deposit and payout, and never asks for a second deposit. It omits error conditions, permissions, and what happens if wait=false.

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?

The description is compact and front-loads the core action and constraints. Some phrasing is terse ('Swap from a stablecoin', 'wait=true: wait...'), but there is no wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations, no output schema, and 0% schema coverage, the description covers the core action and wait semantics but leaves critical gaps: the required id parameter and any return or error information. It is adequate but incomplete.

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

Parameters2/5

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

Schema coverage is 0%, so the description must compensate. It explains the optional wait parameter thoroughly but says nothing about the required id parameter, leaving its meaning (swap ID? deposit address?) ambiguous.

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?

The description states a specific action: lock an existing stablecoin deposit into a swap, with preconditions ('once the deposit is at its deposit address'). It does not explicitly distinguish this funding step from siblings like swap_create or escrow_fund, so it stops short of a 5.

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?

It implies when to use the tool ('once the deposit is at its deposit address') and explains the wait=true behavior. However, it gives no explicit when-not guidance or alternatives to consider, leaving sibling selection to inference.

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