Skip to main content
Glama

What-if trade

whatif

Simulate a buy or sell in the existing dashboard; exactly one of quantity, amount or fraction. amount is a cash size in the current display currency; amountEur is its deprecated twin, the same figure under the legacy name — send one or the other, never both. Several trades: send trades, one line each (symbol, side, one size) — one combined result, sells applied first so their cash funds the buys. Does not place an order.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "whatif"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo
amountNoCash size of the simulated trade, in the dashboard display currency.
symbolNo
tradesNoSeveral trades in ONE what-if, each with its own symbol, side and one size; applied together, sells first. Instead of symbol/side/size.
fractionNo
quantityNo
amountEurNoDeprecated twin of amount — the same display-currency figure under the legacy name. It will be removed; send amount.
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false with destructiveHint=false, and the description adds the crucial non-obvious behavior that nothing is executed and that sells are applied first so their cash funds buys, yielding one combined result. It does not disclose the approval/dashboard-targeting failure modes that the schema hints at, so it is strong but not complete.

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 action and the key constraint, no filler sentences, and the non-execution disclaimer lands at the end with impact. The semicolon-chained phrasing is dense and slightly telegraphic, costing a bit of readability.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter simulation tool with no output schema, the description covers input shaping and the combined-result notion well, but omits how the result is returned and the dashboard/revision/idempotency mechanics that matter for correct invocation. Adequate but with clear gaps.

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?

With only 40% schema coverage across 10 parameters, the description compensates by explaining the one-of size constraint, the amount vs amountEur deprecation relationship, and the per-line structure of trades — all semantics the schema cannot express. It says nothing about dashboardId, idempotencyKey, or expectedRevision, leaving part of the surface undocumented in prose.

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 opens with a specific verb+resource ("Simulate a buy or sell in the existing dashboard") and immediately distinguishes itself from real execution via "Does not place an order." An agent can tell this apart from order-placement or planning siblings 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 states the core selection rule (exactly one of quantity/amount/fraction) and explains when to use the multi-trade form ("Several trades: send trades, one line each") and when not to mix amount with amountEur. It stops short of naming a preferred alternative sibling for actual trading or what-if planning, so it is not a full 5.

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.