Skip to main content
Glama

Simulation

simulation
Read-onlyIdempotent

Read what the app knows about the user's SIMULATIONS — the Simulator tab's future projection, the goal seek, the what-if and the historical trade replay — without running any of them. It never starts a simulation and never starts a job. include (default ['summary']) ⊆ summary, whatif, dcaGoal, backtest. IMPORTANT: the future projection, the DCA goal and the what-if are computed on demand in the app and stored NOWHERE on the server — the only copy of what the user ran is the live-UI line 'last simulation — …' in the current turn's context; each block says resultsStoredOnServer: false and serves the INPUTS instead, so an absent result is never read as a zero. summary = what the portfolio is worth now plus the actual return, volatility and strategy horizon a projected line has to be judged against (whole-history figures; the simulator averages over its own lookback window). whatif = the before side a what-if is measured from (value, cash, diversification, portfolio fundamentals) and the verb that computes the after. dcaGoal = the goal seek's inputs, including the saved Trades-tab budget, which is NOT a recurring contribution. backtest = the historical trade replay, which IS kept server-side for an hour from when it was STARTED (the prune clock runs from the job's creation, not from its completion): state, progress and, once complete, its summary, window, coverage gaps and warnings; backtestId picks one, the default is the newest, and the per-day series, trades, decisions and assumptions are get_workload's answer, not this one's. Amounts are in the display currency; a field ending in Pct is a percent. Describes the user's own simulations; never investment advice.

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

Input Schema

NameRequiredDescriptionDefault
includeNo
backtestIdNo
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.5/5.0
Behavior5/5

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

The annotations establish readOnly/idempotent/non-destructive, and the description adds the very behavior an agent could get wrong: for three of the four blocks nothing is stored server-side, each block reports resultsStoredOnServer: false and returns INPUTS, so an absent result must not be read as a zero. It also discloses that backtests persist for one hour measured from job creation rather than completion, and defines currency and the Pct suffix convention.

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?

The purpose and the 'never runs' constraint are front-loaded, and the block-by-block definitions each carry unique information rather than restating the schema. It is still one dense run-on paragraph of roughly 250 words, so the server-side storage nuance that matters most is buried mid-paragraph rather than structured as its own statement.

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?

With no output schema, the description does the work of describing what each block returns (input vs. result, state/progress/summary/window/coverage gaps), which is what an agent needs to interpret the response. The residual holes are the two undocumented parameters and the lack of any explicit statement about what happens when include is empty, despite minItems: 0.

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 only 20%, but the description compensates heavily for the two important parameters: every include enum value is defined semantically (what summary, whatif, dcaGoal and backtest each return) and backtestId is explained as 'picks one, default is the newest'. The gap is idempotencyKey and expectedRevision, which are never mentioned despite being unusual on a read-only tool, so the agent has no guidance on when either is needed.

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 and resource ('Read what the app knows about the user's SIMULATIONS') and immediately enumerates its four blocks (summary, what-if, dcaGoal, backtest), then draws hard boundaries: it never runs a simulation and never starts a job. It also distinguishes itself from get_workload by saying the per-day series, trades, decisions and assumptions are 'get_workload's answer, not this one's'.

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 clearly states the negative case (never starts a simulation or job) and redirects one adjacent case (detailed series/trades to get_workload), plus it explains the default include value of ['summary']. It stops short of naming the compute-side siblings for what-if, DCA goal or backtest replay, referring only obliquely to 'the verb that computes the after', so the when-to-use-this-vs-that picture is clear but not fully explicit.

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.