Skip to main content
Glama

Ask a person to approve a trade

request_trade

For an agent helping a person who holds their own wallet: a link (url) for them to open, see this trade with a fresh quote, and approve it with their own wallet on souvenir.finance. Answers { id, url, state, expiresAt, side, amount, slippageBps, coin, quote }: quote is what the trade gives now (out, minOut, feeLamports, partial, venue), and the page quotes again when it is opened. Show the person the url and say what the trade is (buy or sell, the coin, the amount). Nothing happens until they approve it in their wallet: Souvenir and you never sign for them. The link lasts an hour, makes at most one trade, and asks for at most 10% slippage (slippageBps 10 to 1000, 300 by default). Then read how it ended with trade_request. A coin paired with $SOUVENIR is paid in SOL (a sell receives SOL), through $SOUVENIR in one transaction.

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": {
      "mint": "<mint>",
      "side": "<side>",
      "amount": "<amount>"
    },
    "name": "request_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintYesThe coin's mint address (base58).
sideYesbuy: spend SOL for the coin. sell: the coin for SOL.
amountYesWhat you give, in whole units, as a string: lamports for a buy (1 SOL is 1000000000), the coin's raw units for a sell (Souvenir's and pump.fun's coins have 6 decimals: 1 coin is 1000000).
slippageBpsNoThe most the price may move against the trade, in basis points (300 is 3%): 10 to 1000, 300 by default.

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?

Beyond the annotations (non-destructive, closed-world), the description discloses the material behavior: nothing executes until the person approves in their wallet, the link expires in an hour, allows at most one trade, caps slippage at 10%, and the page re-quotes on open. It also enumerates the returned fields, so the agent knows what id/url/state/expiresAt/quote mean.

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 front-loaded with the core action and the return shape, and no sentence is pure filler. It is dense and slightly run-on, with the final $SOUVENIR/SOL sentence arriving late and compactly, which costs a bit of readability.

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?

For a mutation-adjacent request tool with four params and no output schema, the description covers the return object, expiry, one-trade limit, slippage ceiling, non-custody guarantee, and the natural next call. An agent has enough to invoke it and tell the user what to do.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description adds real meaning on top by explaining how mint and side interact ('A coin paired with $SOUVENIR is paid in SOL (a sell receives SOL)') and by restating the slippageBps range and default in the flow of use.

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 concrete resource and outcome: a link (url) the holder opens to see the trade with a fresh quote and approve it with their own wallet on souvenir.finance. It implicitly separates itself from signing tools by stating 'Souvenir and you never sign for them,' though it never names build_trade or send_transaction as alternatives.

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?

The opening clause scopes usage to 'an agent helping a person who holds their own wallet,' which is a real selection condition. It also names the follow-up path explicitly ('Then read how it ended with trade_request'), but gives no explicit exclusion against build_trade or quote_trade for other cases.

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