Skip to main content
Glama

Run scenario batch

run_scenario_batch
Idempotent

Run multiple already-created scenarios for the same workbook. For Microsoft Graph-mode workbooks this reuses a single Excel Online session (faster than running each one individually); local-mode workbooks run each sequentially through the normal path. All scenarios must belong to the same workbook, and none may have saveScenarioFile set — run those individually instead.

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": {
      "scenarioIds": "<scenarioIds>"
    },
    "name": "run_scenario_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing execution mechanics: a single reused Excel Online session under Graph mode versus sequential execution through the normal path for local workbooks. It also surfaces preconditions that would cause failure (same workbook, no saveScenarioFile). It does not say what happens if one scenario in the batch fails, which is the main remaining behavioral gap for a batch runner.

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?

Three sentences, front-loaded with the core action, then performance context, then hard constraints. No filler; every clause carries a rule the caller must obey or a decision it must make.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter batch tool with no output schema, the definition covers execution mode differences, eligibility constraints, and the sibling-level alternative. The gap is failure semantics and partial-success reporting, which an agent needs before firing a batch of up to 20 scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description has to carry parameter meaning, and it does add real constraints (all IDs must belong to one workbook, must be already-created, must not have saveScenarioFile set). However it never states the ID format, whether result order matches input order, or how per-scenario outcomes are keyed, so it only partially compensates for the empty schema descriptions.

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 (run multiple already-created scenarios) plus the scope constraint (same workbook). The second sentence and the closing clause distinguish it from running scenarios one at a time, so an agent can route between this and run_scenario without opening either 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 ('multiple already-created scenarios for the same workbook', and faster under Graph mode) and explicit when-not-to-use with the alternative named by behavior ('none may have saveScenarioFile set — run those individually instead'). Prerequisites (shared workbook) are stated up front.

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