Skip to main content
Glama

Run a tornado sensitivity analysis

oat_sensitivity

Runs a one-at-a-time tornado sensitivity analysis: sweeps each root node over a set of quantiles (others held at baseline) and measures how the target node responds, ranked by impact. Use this when you need to know which uncertain input most drives an outcome, so you know what to de-risk or estimate more carefully first. Debits one credit for authenticated callers. Example: {"graph":{"root_nodes":[{"id":"root","distribution_type":"normal","distribution_params":{"mean":100,"std":15}}],"calc_nodes":[{"id":"out","formula":"{e1}"}],"edges":[{"id":"e1","source":"root","target":"out"}],"run_params":{"trials":1000,"time_periods":12}}}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional RNG seed for reproducible perturbed runs.
graphYesThe full simulation graph to analyse (same shape as run_simulation).
api_keyNoYour API key from POST /api/v1/accounts. Debits credits per analysis. Omit to run anonymously (free).
quantilesNoExplicit quantiles to sweep each input over (0..1). Mutually exclusive with num_quantiles. Default: [0.05, 0.5, 0.95] (tornado).
time_periodNo0-based time period to analyse. Defaults to the last period (time_periods - 1).
num_quantilesNoEven count (2-10) of symmetrical quantiles around the 0.5 baseline. Mutually exclusive with quantiles.
target_node_idNoThe output node to measure. Defaults to the graph's last calc node (the usual goal node).

Output Schema

NameRequiredDescriptionDefault
resultsNo
quantilesYes
time_periodYes
runs_executedYesSimulation runs the analysis cost (1 baseline + roots×quantiles).
target_node_idYes
credits_debitedNoCredits charged to the account (0 for anonymous).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already fix the safety profile (not read-only, not destructive, closed-world), so the description's job is to add context. It adds the billing behavior ('Debits one credit for authenticated callers'), which the annotations do not carry, and describes the perturbation methodology. It stops short of runtime cost or expected latency, but for a non-destructive analysis call this is solid added value.

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 the mechanism, then the when-to-use, then billing, then a concrete example — a sensible ordering with no filler. The embedded JSON example is long relative to the prose but earns its space for a graph-shaped payload.

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 7-parameter tool with one required argument and a full output schema, the agent has enough: it knows the analysis type, what is swept, what baseline means, the target node default behavior via schema, and the credit cost. Only the boundary against sibling analysis tools is left implicit.

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 coverage is 100% and the schema is heavily documented (quantiles, num_quantiles exclusivity, time_period default, target_node_id default all spelled out), so the baseline is 3. The example concretizes the graph shape (root node distribution params, calc node formula, edge wiring, run_params), which helps, but the tool-specific knobs are covered only by the schema, not the prose.

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 analysis type ('runs a one-at-a-time tornado sensitivity analysis') and then explains the mechanism: sweeping each root node over quantiles with others held at baseline, ranking by impact on the target node. That mechanism-level detail distinguishes it from siblings like scenario_analysis, estimate, and run_simulation without the agent opening any schema.

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?

Gives a clear decision rule: 'Use this when you need to know which uncertain input most drives an outcome, so you know what to de-risk or estimate more carefully first.' That is a real when-to-use signal, but it never names the sibling analyses (scenario_analysis, estimate) or states when this tool is the wrong choice, so the agent must infer the boundary itself.

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