Skip to main content
Glama

Read an approval link

trade_request
Read-only

How an approval link from request_trade stands: { id, url, state, expiresAt, side, amount, slippageBps, coin, wallet, signature, out }. state: open (waiting for the person), sent (they approved and the trade is on its way to Solana), confirmed (it landed: signature is the transaction, wallet the one that traded), failed (it landed and failed on chain), dropped (the network dropped it, so it never landed), declined (they declined it), expired (an hour passed with no approval) or stopped (the approval stopped partway, so Souvenir can't tell whether the trade went out: the person should check their wallet before asking for a new link). A link that ended never comes back: ask for a new one. wallet and out are given once the trade was sent; out is what the trade was built to give (coins for a buy, lamports for a sell); the exact amount is on chain under signature. Read it every few seconds while it is open or sent.

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": "trade_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe id request_trade answered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes far beyond that by enumerating the full state machine (open, sent, confirmed, failed, dropped, declined, expired, stopped) with the meaning of each and the one-hour expiry. It also discloses when wallet/out appear and warns that the exact on-chain amount must be read from signature rather than the response.

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?

It is one dense but front-loaded paragraph that opens with what the response looks like and then explains states; nearly every clause carries information. The long comma-separated state list is harder to scan than a bulleted list would be, but nothing is filler.

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

Completeness5/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 carries the full burden of explaining the returned shape and does so field by field (id, url, state, expiresAt, side, amount, slippageBps, coin, wallet, signature, out). Combined with polling cadence and terminal-state handling, an agent can call and interpret this tool without further information.

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 id parameter is already documented in the schema as 'The id request_trade answered', so the description adds no param-level detail beyond noting the link originates from request_trade. Baseline 3 applies when the schema carries parameter meaning.

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?

The description names a specific resource (an approval link from request_trade) and specifies exactly what is being read (its current state plus the associated fields). It is unambiguously distinguishable from the sibling request_trade that creates the link.

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?

It states exactly when to call it ('Read it every few seconds while it is open or sent') and when the link is dead ('A link that ended never comes back: ask for a new one'), with the concrete recovery step of requesting a new link. The stopped state even instructs the person to check their wallet first, which is precisely the guidance an agent needs.

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