Skip to main content
Glama

Prepare a player token trade

icare_token_prepare
Read-onlyIdempotent

A buy (USDC amount) or a sale (token amount) of a player token, paid from and credited to the ICARE Portfolio of the wallet: the quote, the minimum received, and the Portfolio action to sign with personal_sign over its digest, then to post with the signature to the ICARE relay. No gas for the wallet; the relay keeps the network fee in USDC.

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": {
      "action": "<action>",
      "wallet": "<wallet>",
      "token": "<token>",
      "amount": "<amount>"
    },
    "name": "icare_token_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesToken address or symbol, see icare_player_tokens
actionYes
amountYesUSDC to spend (buy) or tokens to sell (sell), digits with an optional decimal point
walletYesAddress of the wallet that will sign
slippageNoAccepted price move in percent, 2 by default

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?

Beyond the readOnly, openWorld, idempotent, and non-destructive annotations, it discloses that the wallet pays no gas and that the relay keeps the network fee in USDC. It also explains the personal_sign digest workflow, though it leaves some ambiguity about whether the tool itself only prepares versus submits the action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is compact but written as one dense sentence with a colon and semicolon chain. The workflow clause 'then to post with the signature to the ICARE relay' is easy to misread as part of the tool's own action, reducing readability despite being front-loaded.

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?

For a prepare-trade tool with no output schema and annotations covering safety, the description supplies the key workflow and fee context plus the quote, minimum, and action outputs. It still leaves the exact response shape and the boundary between preparation and relay submission somewhat implicit.

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 80%, so the schema already documents most parameters. The description adds meaning for amount as USDC on a buy or token units on a sell and ties the trade to the wallet's ICARE Portfolio, but it does not add detail for slippage or token/action beyond what the schema provides.

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 identifies a player-token buy or sell, specifies the funding source as the ICARE Portfolio of the wallet, and names the quote, minimum received, and signable Portfolio action. It is clear enough to separate this from match/season siblings, though the opening noun phrase is less direct than explicitly saying it prepares a trade.

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?

The description implies this is the tool for buy/sell preparation and outlines the signing and relay-posting workflow. However, it does not explicitly say when to use this versus icare_bet_link or other ICARE tools, nor when not to use it; usage is inferred from the buy/sell scope.

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.