Skip to main content
Glama

Find my swaps

list_swaps
Read-onlyIdempotent

Find orders when the orderId is lost (new chat, crash, unknown create outcome): pass the idempotencyKey create_swap used (default q_), or a sessionId. Read-only; addresses redacted; states can lag. Next: get_swap_status (live state, payable).

Input Schema

NameRequiredDescriptionDefault
detailNo
sessionIdNoSession UUID, instead of idempotencyKey.
idempotencyKeyNoThe key create_swap used (default q_<quoteId>).

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
nextYes
noteNo
errorNo
stateNo
lookupNo
ordersNo
payableNo
operationYes
userMessageNo
payableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered structurally. The description adds genuinely new behavioral facts beyond them: addresses are redacted and returned states can lag behind reality. It stops short of covering pagination, result limits, or what happens on a miss, so it is not a full 5.

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 recovery scenario, then the keys, then the caveats and next step. Very dense and largely waste-free, though the telegraphic 'Next: get_swap_status (live state, payable)' phrasing is compact at the cost of a little readability.

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?

An output schema exists, so return-shape explanation is not required. The description covers trigger conditions, both lookup keys, read-only semantics, redaction and staleness, and the follow-up tool. The only real hole is the undocumented detail enum, which leaves the agent guessing between lean and full.

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 67% and the description largely restates what the schema already says about idempotencyKey (default q_<quoteId>) and sessionId. The third parameter, detail (enum lean/full), is never explained in either place, so the description does not compensate for the coverage gap. Baseline 3 is appropriate.

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?

States a specific verb+resource ('find orders') and pins the exact scenario it exists for: recovering orders when the orderId was lost after a new chat, crash, or unknown create outcome. It also distinguishes itself from the live-state sibling by naming get_swap_status as the next step, so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('when the orderId is lost') with the failure scenarios enumerated, plus the two alternative lookup paths (idempotencyKey or sessionId) and the follow-up tool (get_swap_status for live/payable state). Nothing about routing is left to inference.

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