Skip to main content
Glama

prepare_real_swap

Build ONE unsigned real swap (USDG to or from a Robinhood Stock Token) for your own wallet to sign. Refuses over your record-based cap, when the issuer has paused a token or blocked the wallet, when the pinned pool is shallow or its price is more than 1.5% from the real stock price, or when the market is closed. Exact-amount approval first if needed. Nothing is signed or sent here. The issuer can pause or block at any time; this is not advice and not a promise of any return.

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": {
      "wallet": "<wallet>",
      "symbol": "<symbol>",
      "side": "<side>",
      "usd": "<usd>"
    },
    "name": "prepare_real_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdYes
sideYes
symbolYes
walletYes0x wallet address
slippageBpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses every refusal precondition, notes that an exact-amount approval may be required first, and states unambiguously that nothing is signed or sent. Remaining gaps are secondary behaviors such as idempotency, validity/expiry of the unsigned transaction, and what the caller receives back.

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 action in the first clause, followed by the refusal conditions and the no-side-effect guarantee in a compact block. The closing disclaimer about issuer pausing and 'not advice' is somewhat boilerplate but arguably earns its place by setting expectations about revocability.

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 5-parameter, no-annotation, no-output-schema tool, the description covers the hard preconditions well but leaves the agent guessing on two parameters (usd units, slippageBps) and on what an 'unsigned swap' response actually contains. Adequate but with clear gaps in the interface contract.

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

Parameters3/5

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

Schema description coverage is only 20% (only wallet is described as a 0x address). The description clarifies symbol and side semantics ('USDG to or from a Robinhood Stock Token', buy/sell) but says nothing about how 'usd' is denominated (dollars vs. base units) or what 'slippageBps' controls, even though it discusses price deviation separately. Partial compensation for a real coverage gap.

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 specific verb and resource: 'Build ONE unsigned real swap (USDG to or from a Robinhood Stock Token) for your own wallet to sign,' and reinforces the no-side-effect nature with 'Nothing is signed or sent here.' It is clearly distinguishable from a quote tool or a generic swap builder, though it never names the closely related siblings (hookr_quote_swap, hookr_prepare_swap, real_swap_limits) that an agent would need to choose between.

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 through the refusal list (cap, issuer pause/block, shallow pool, >1.5% price deviation, market closed) and through 'for your own wallet,' which tells the agent this is self-directed preparation. However, there is no explicit statement of when to choose this over a quote or limits tool, and no instruction on sequencing (quote first? check limits first?).

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