Skip to main content
Glama

Save Simulation Scenario

save_simulation_scenario
DestructiveIdempotent

Save a scenario file in the simulation workspace this credential is connected to, under a name, to run or revise later (list_saved_simulation_scenarios and get_saved_simulation_scenario read it back, delete_saved_simulation_scenario removes it). Takes the file's JSON text, for example the scenario draft_simulation_scenario returned; a draft with problems is saved as it stands and the problems are reported. The file's own name is set to the saved name. A name already saved is refused (CONFLICT) unless replace=true, which saves over it. Saved scenarios outlive reset_simulation_workspace and snapshot restores; a workspace keeps up to 100. 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": {
      "name": "<name>",
      "scenario": "<scenario>"
    },
    "name": "save_simulation_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name to save it under, unique in the workspace ignoring case (at most 100 characters).
replaceNoOptional, default false. True saves over a scenario already saved under this name.
scenarioYesThe whole scenario file as JSON text (format "spark.scenario", version 1).

Output Schema

NameRequiredDescriptionDefault
idNo
nameNo
readyNo
stepsNo
problemsNo
replacedNo
scenarioNo
createdAtNo
updatedAtNo

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?

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes well past them: drafts with problems are still written, the file's internal name is overwritten with the saved name, saved scenarios survive reset_simulation_workspace and snapshot restores, and a workspace caps at 100. The only gap is that it never explains how replace=true interacts with the destructive hint (i.e. what the previous version loses), but the overwrite is implied by "saves over it".

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 verb and resource are front-loaded and every sentence carries information (siblings, input source, conflict rule, persistence, quota, error). It is a single dense paragraph with heavy parenthetical nesting, which makes it slower to scan than a short bulleted structure would be, but nothing is wasted.

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?

For a mutating save tool with three parameters, an output schema, and full annotation coverage, the description supplies everything an agent needs: valid input source, uniqueness/conflict behavior, persistence guarantees, capacity limit, and the account-type refusal. No obvious decision-relevant fact 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 parameters are already documented, yet the description adds two non-obvious semantics: the scenario argument should be the draft text from draft_simulation_scenario, and the file's own embedded name gets rewritten to the saved name. That is real meaning beyond the schema, so it edges above the baseline 3.

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?

States a specific verb and resource ("Save a scenario file in the simulation workspace") plus the scope qualifier that the credential is bound to that workspace. It also names the read-back and delete siblings in parentheses, so the agent can separate this persistence tool from draft_simulation_scenario, get/list, and delete without opening 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?

Explicitly tells the agent what to feed it ("the file's JSON text, for example the scenario draft_simulation_scenario returned") and when it is the wrong choice (any account that is not a simulation workspace). It also spells out the conflict path — same name refused unless replace=true — which is the main decision an agent faces when calling this.

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