Skip to main content
Glama

add_scenario

Add a scenario. Inputs fall back to base wherever the new scenario does not override them; use set_values with the scenario to override. dimension names the axis of choice the scenario is one setting of (operating, market): scenarios sharing a dimension are alternatives, and the switcher offers them as one choice. Settings seen together need nothing declared: the mix of them (operating_downside+market_upside) reads every node along each in turn over base, and values_get takes it as a scenario. compose stores a combination of settings, one per dimension, only for a model that must keep one stored — never to see a pair. Cases on two axes — a downside and an upside operating case, and a high and a low price deck — are four settings in two dimensions (operating_downside in operating, price_low in market), each overriding only its own drivers; the downside at the low price is then the mix operating_downside+price_low, read by values_get and picked in the switcher, never declared.

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": {
      "model": "<model>",
      "name": "<name>"
    },
    "name": "add_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
modelYesModel uid (`model_…`), from model_list.
notesNoWhat this scenario assumes about particular rows, by row name: `{ "market.gold_price": "a third below the strip" }`. Kept on the scenario and drawn beside each row while it is on screen; a scenario kept private takes them with it. A case's assumptions go here (or in set_values' `note`), never in a row's description, which every reader of every scenario sees.
titleNo
composeNoOnly for a combination the model must keep stored: the scenarios it combines, one per dimension, each already declared and not itself a combination. Settings seen together are a mix and need none.
dimensionNoThe axis of choice this scenario is one setting of; omit for a scenario that stands alone or a combination.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (which already declare this is a non-read-only, non-destructive, non-idempotent, closed-world write), the description discloses the meaningful semantics: inputs fall back to base wherever not overridden, and notes are kept on the scenario, drawn beside rows, and travel with a private scenario. It does not say what a duplicate name does or what comes back on success.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core is front-loaded, but the body is a sprawling run-on that restates the same idea three times ('need nothing declared', 'never declared', 'never to see a pair') and front-loads heavy jargon before the reader has the vocabulary. The long worked example of four settings across two dimensions costs several sentences for one concept.

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

Completeness3/5

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

For a 7-parameter creation tool with a nested `notes` object and no output schema, the description covers the conceptual model (dimensions, mixes, compose) well enough to call the tool correctly in the common case. It leaves gaps on identity/uniqueness, error behavior, and what the created scenario yields, which matter for a non-idempotent write.

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?

At 57% schema coverage the description must carry weight, and it does add real meaning for `dimension` (the axis of choice, e.g. `operating` vs `market`, with sharing implying alternatives in the switcher) and for `compose` (one scenario per dimension, already declared, not itself a combination). It says nothing about `name`, `title`, or `description`, and the fallback/override behavior is stated abstractly rather than per parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening verb+resource ('Add a scenario') is specific, and the body distinguishes this tool from set_values, values_get, and the compose-storage case, so an agent can tell what is created. It is weaker on stating plainly what a scenario *is* in one line, burying the definition inside dense domain jargon about dimensions and mixes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing exists: overrides go through set_values, mixes are read via values_get rather than declared, and `compose` is reserved for the narrow case where the model must keep one combination stored ('never to see a pair'). It lacks any exclusion around name collisions, when a scenario should be forked instead (scenario_fork), or when private_scenario_set applies.

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