Skip to main content
Glama

Run Simulation Scenario

run_simulation_scenario
Destructive

Run a saved scenario file in the simulation workspace this credential is connected to. The file is the runner's JSON format (format "spark.scenario", version 1): a start (date, settings, account mapping, purchase orders) and actions (receivePurchaseOrder, reconcileBill, allocateCharges, supplierCredit, customerReturn, scrap, cycleCount) with optional expectations; check it first with check_simulation_scenario. The run is queued as a server job and this call returns at once; follow it with get_simulation_scenario_run. Before the first run on a fresh baseline the workspace saves its starting point, so reset_simulation_workspace undoes it. QuickBooks writes are captured, never sent. Refused on any account that is not a simulation workspace (NOT_A_SIMULATION_WORKSPACE); acts as you, an owner or admin of the workspace on its partner's team.

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": {
      "scenario": "<scenario>"
    },
    "name": "run_simulation_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioYesThe whole scenario file as JSON text, exactly as saved (comments and trailing commas are allowed). Every problem in it is reported at once and nothing runs until it has none.

Output Schema

NameRequiredDescriptionDefault
runNo
messageNo
baselineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true, but the description adds the non-obvious context an agent actually needs: the run is queued as a server job and returns immediately, QuickBooks writes are captured rather than sent, and the workspace snapshots its starting point before the first run so reset is possible. It also discloses the acting identity (owner or admin on the partner's team), which annotations cannot express. Nothing here conflicts with the supplied hints.

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?

Purpose is front-loaded and every sentence carries operational information, but the middle sentences are dense, clause-heavy runs that pack format, sequencing and authorization details together. It is efficient overall, though light formatting or shorter sentences would improve scannability.

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?

An output schema exists, so return-value shape need not be explained, and the description instead covers the asynchronous job pattern and the mandatory follow-up call. Combined with the refusal condition, permission context and format requirements, an agent has everything needed to invoke this correctly on the first attempt.

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 100% and the parameter is already documented as whole-file JSON text, so the baseline is satisfied. The description goes beyond it by specifying the expected format ("spark.scenario", version 1), enumerating the top-level structure (start and actions) and action names, and noting that comments and trailing commas are tolerated — useful guidance for composing a valid payload.

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 sentence gives a specific verb and resource ("Run a saved scenario file in the simulation workspace") and immediately scopes it to the credential's workspace. It also names the file's format/version, which distinguishes it from sibling tools like draft_simulation_scenario or check_simulation_scenario without needing their schemas.

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?

Explicit sequencing is given: validate first with check_simulation_scenario, then call get_simulation_scenario_run for the result, and use reset_simulation_workspace to undo the baseline snapshot. It also states an exclusion condition with a concrete error code (NOT_A_SIMULATION_WORKSPACE), so an agent knows when not to call it.

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