Skip to main content
Glama

run_vensim_model

Simulate a Vensim .mdl file with PySD to get per-variable summaries and downsampled results, apply one-run constant overrides, select variables, and export full-resolution CSV output.

Instructions

Simulate a .mdl with PySD and return per-variable summaries and a downsampled series.

overrides sets constants for this run only (the .mdl file is not changed). variables limits the output; by default stocks, flows and auxiliaries are returned. csv_path saves full-resolution results.

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_path": "<model_path>"
    },
    "name": "run_vensim_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
csv_pathNo
overridesNo
time_stepNo
variablesNo
final_timeNo
max_pointsNo
model_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose meaningful traits: the .mdl file is not modified by overrides, defaults return stocks/flows/auxiliaries, and csv_path persists full-resolution results while the returned series is downsampled. It omits runtime/performance expectations, what happens with unknown variable names or simulation failure, and any dependency requirement such as PySD being installed.

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 opening sentence front-loads the action and the return shape, then each following clause is attached to a specific parameter. No filler sentences, though the mid-sentence line breaks make the second paragraph read as a loosely joined list rather than a structured summary.

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?

Given 7 parameters, no annotations, and no output schema, the description covers the essentials an agent needs: what the run does, that it is non-destructive to the model file, what the default return set is, and how to get full-resolution data. The unexplained numeric parameters are the remaining gap, but the core call decision and return contract are stated.

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% across 7 parameters, so the description must compensate, and it does so only for overrides (run-scoped, file untouched), variables (limits output), and csv_path (full-resolution save). time_step, final_time, and max_points get no explanation at all, leaving half the parameter surface undocumented anywhere.

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 description gives a specific verb and resource — simulate a .mdl with PySD — and states what comes back: per-variable summaries plus a downsampled series. That is enough to separate it from generate_/inspect_/validate_ siblings, but it never addresses the similarly named simulate_in_vensim, so the closest ambiguity is left unresolved.

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

Usage Guidelines3/5

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

Usage is only implied by the verb 'simulate'; there is no statement of when to pick this over simulate_in_vensim, nor a prerequisite such as validating the model first or listing parameters before overriding. The overrides/variables/csv_path clauses describe mechanics rather than when-to-use conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.