Skip to main content
Glama

Swap status

swap_status
Read-only

After swap_tokens: has your user sent the swap, and did it go through on Base? Waits up to 25 seconds for a change. status: waiting (give them approve_url again if needed), approving, swapping, done, failed, changed (what was sent is not what presign-guard checked: tell your user), denied or expired.

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": {
      "swap_id": "<swap_id>"
    },
    "name": "swap_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
swap_idYesswap_id from swap_tokens

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description adds the real behavioral substance: a blocking wait of up to 25 seconds and a full state machine (waiting, approving, swapping, done, failed, changed, denied, expired). It even explains the non-obvious 'changed' state as a mismatch against what presign-guard checked and tells the agent to warn the user, which is safety-critical context no structured field carries.

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-loads the core question and the 25-second wait before the status enumeration, so an agent gets the essentials immediately. The trailing status list is dense and telegraphic ('denied or expired' with no guidance), but every element carries real decision value.

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?

With no output schema, the description effectively documents the return surface by enumerating every status value and its implication, which is what the agent needs to branch on. It stops short of saying what else the response contains (e.g., transaction hash or failure reason), a minor gap for a one-parameter polling tool.

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 coverage is 100% and the single parameter already documents that swap_id comes from swap_tokens with a 20-64 char constraint. The description's 'After swap_tokens' framing corroborates that provenance but adds no format or usage detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb+resource (check swap status) and pins the scope to a swap previously created by swap_tokens, going through on Base. An agent can distinguish it from payment_status or wallet_status by the swap_id input and the swap-specific lifecycle.

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?

Explicitly states it is used 'after swap_tokens' and that it waits up to 25 seconds for a change, which implies a long-poll rather than repeated hammering. It also gives per-status follow-up actions (re-surface approve_url when waiting, warn the user on 'changed'). No explicit when-not or alternative polling tool is named, so it falls short of a 5.

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.