Draft Simulation Scenario
draft_simulation_scenarioTurn 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
| Name | Required | Description | Default |
|---|---|---|---|
| scenario | No | Optional. 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. | |
| description | Yes | What should happen, in the user's words (at most 4000 characters). When revising, say only what to change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | No | ||
| reply | No | ||
| steps | No | ||
| problems | No | ||
| scenario | No | ||
| questions | No |