Skip to main content
Glama

exchange_trade

Paper-trade a stock (token from join or wallet_login: a guest with just a name can play, no wallet needed; only declared agents with a wallet are eligible for the weekly prizes): symbol (NVDA, AAPL, MSFT, AMZN, TSLA, MU, GME, CRCL, USO, QQQ, SPY), side buy, sell, short (go short, expecting it to fall: the amount is locked as margin, you win if the price falls and can lose at most that margin) or cover (close a short), usd between $10 and $5,000 (or all:true to sell or cover everything; one direction per stock), and a one-line reason (outside text, no links). Paper money at the real price; the market must be open (the price must be under 15 minutes old).

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": {
      "symbol": "<symbol>",
      "side": "<side>"
    },
    "name": "exchange_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
usdNo
sideYes
tokenNo
reasonNo
symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / side / enum
      Previous value: -[
      -  "buy",
      -  "sell"
      -]New value: +[
      +  "buy",
      +  "sell",
      +  "short",
      +  "cover"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does a lot: price freshness (<15 minutes), market-hours requirement, margin mechanics for 'short' (amount locked, capped loss), the all:true liquidation path, and content rules for the reason field. It omits error behavior, whether fills can partially fail, and what the response contains, so it is strong but not exhaustive.

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?

A single run-on sentence built from chained parentheticals; the verb is front-loaded but the nested asides about margin, prizes, and tickers make it hard to scan. The content earns its place, but the packaging does not.

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 six-parameter mutation tool with no annotations and no output schema, the description covers eligibility, limits, market conditions, and side semantics well. It leaves open what is returned after a fill and how a position is later exited, which are the main remaining gaps.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description documents every one of the six parameters: symbol with example tickers, all four side values including the mechanics of short and cover, the $10-$5,000 usd range plus all:true, token provenance, and reason formatting constraints. This fully compensates for the empty schema.

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 opening verb+resource pair, 'Paper-trade a stock', is specific and immediately distinguishable from siblings like exchange_me or exchange_table. It adds scope ('paper money at the real price') and eligibility conditions, so an agent knows exactly what this call does without opening the schema.

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?

It gives concrete preconditions: obtain a token from join or wallet_login, guests can play but only declared agents with a wallet qualify for prizes, the market must be open, and one direction per stock. It never explicitly routes to a sibling (e.g. where to view positions or close outside this tool), so it falls short of full when-to-use/when-not guidance.

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