Skip to main content
Glama

get_simulation

Fetch the results of a study you ran, by id. Use it to read a study again, or to collect one whose tool call failed after the study launched: if a run tool returns error='timeout' or any error carrying recoverable: true, the study is still running (or has finished) and the error's sim_id names it. Do NOT re-run the tool — that launches and charges a second study. Wait 30-60 seconds, then call get_simulation(sim_id); poll again while status is 'running'.

Returns the same shape as the run tool that started it, plus a top-level status (running | complete | failed | cancelled).

Input Schema

NameRequiredDescriptionDefault
sim_idYesThe id returned by any run tool, OR the sim_id field of a run tool's error (stream_disconnected, timeout, or any error carrying recoverable: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses the cost/duplication hazard of re-running, the async lifecycle (study keeps running after a timeout or recoverable error), the recommended polling cadence, and the status state machine. It also warns which error shapes are recoverable.

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

Conciseness5/5

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

Front-loaded with the core purpose, then the failure-recovery path, then the return shape. Dense but every sentence carries operational information; no filler or restatement of the name.

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?

No output schema exists, yet the description compensates by describing the return shape ('same shape as the run tool that started it, plus a top-level status' with enumerated values). For a single-parameter read tool this leaves nothing an agent needs unstated.

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 coverage is already 100%, so the baseline would be 3, but the description adds real meaning by explaining that sim_id can come either from a run tool's success response or from the sim_id field of a recoverable error — context the schema only states tersely.

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?

Opens with a specific verb+resource+key ('Fetch the results of a study you ran, by id') and immediately scopes it as a retrieval-only operation, which cleanly separates it from the run_* siblings that launch studies. An agent can tell what it returns 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use cases (read a study again, recover a run whose tool call failed), an explicit prohibition with the reason ('Do NOT re-run the tool — that launches and charges a second study'), and a concrete recovery procedure (wait 30-60s, call get_simulation(sim_id), poll while status is 'running'). Nothing is left to inference.

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