Skip to main content
Glama

Draft Simulation Scenario

draft_simulation_scenario

Turn a plain-language description of business events into a scenario file for the simulation workspace this credential is connected to, for example "PO 1042 arrives three units short, then the bill comes in 5% higher". Spark's own drafting model writes the file from the workspace's real orders, SKUs and suppliers, checks it against the workspace and repairs it, and answers with the file (format "spark.scenario", version 1), a plain-language reading of each step, any problems left, and questions when something is ambiguous (then no new file is drafted: ask the user and call again with their answer in the description). Pass scenario to revise an earlier draft instead of starting over. Show the user reply, steps and problems; ready=true means run_simulation_scenario will accept the file. Changes nothing in the workspace, but uses the workspace's AI allowance and sends the description and the workspace's order lines to an AI provider (supplier and customer names anonymized when the workspace anonymizes AI data). save_simulation_scenario keeps the draft. Refused on any account that is not a simulation workspace (NOT_A_SIMULATION_WORKSPACE).

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": {
      "description": "<description>"
    },
    "name": "draft_simulation_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioNoOptional. The draft to revise, as the scenario file's JSON text (the scenario a previous call returned, or a saved file). Omit to draft a new one.
descriptionYesWhat should happen, in the user's words (at most 4000 characters). When revising, say only what to change.

Output Schema

NameRequiredDescriptionDefault
readyNo
replyNo
stepsNo
problemsNo
scenarioNo
questionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the internal draft/check/repair loop, that returns include steps, problems and clarifying questions, that no file is produced when questions arise, and the NOT_A_SIMULATION_WORKSPACE refusal. It also discloses cost and data-sharing (consumes the workspace AI allowance, sends description and order lines to an AI provider, anonymization when configured). Minor tension with readOnlyHint=false is resolved by the explicit 'changes nothing in the workspace' statement, so no real contradiction.

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 purpose and example, and nearly every sentence carries unique operational information. It is a single dense paragraph, though, and would scan better split into drafting, revising, response, and side-effect sections.

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?

Covers the full lifecycle of a fairly complex tool: input expectations, revision path, what the response contains, how to interpret ready, follow-up actions, side effects, and the account-level refusal condition. Nothing an agent needs in order to call it correctly is missing.

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%, so the baseline is 3, but the description adds real meaning: it specifies that scenario is the prior draft's JSON text for revision and that description should contain only what to change when revising, plus the 4000-character limit context via the 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?

Names a specific verb and resource ('Turn a plain-language description... into a scenario file') plus a concrete example of the input. It distinguishes itself from siblings by naming save_simulation_scenario and run_simulation_scenario and stating their relationship to the draft.

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?

Explicitly says to pass scenario to revise rather than start over, instructs the agent to ask the user and re-call when the response contains questions, and tells the agent to call save_simulation_scenario to keep the draft and that ready=true gates run_simulation_scenario. When-to-use is fully covered.

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