Skip to main content
Glama

validate_vensim_model

Audits a Vensim model before simulation, flagging equation errors and unit or diagram warnings so issues can be fixed.

Instructions

Audit a model before opening it in Vensim.

Errors (the model won't simulate): undefined variables, unknown functions, duplicate or missing equations. Warnings: unit mismatches, arrows that don't match equations, flows missing from or wrongly signed in a stock's INTEG, unused constants, and diagram overlaps or crossings. issues lists the equation findings with the variable each is about, so they can be fixed with set_vensim_equation.

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": "validate_vensim_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied the description carries the full burden, and it does real work: it discloses the errors-vs-warnings taxonomy, implies the operation is a non-mutating audit, and describes what `issues` contains (equation findings tagged by variable). It does not say whether the model must be closed, whether a Vensim license is required, or whether anything is written to disk.

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?

Front-loaded with the verb and the timing constraint, then a compact error paragraph and a compact warning paragraph, closing with the actionable `issues` detail. Every sentence earns its place; no filler.

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?

No output schema exists, and the description fills that gap by explaining that results come back as `issues` keyed to variables. For a single-parameter read-only audit this is nearly complete; only the file-path preconditions and any environment requirements are unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% for the single required parameter, so the description must compensate and does not — it never mentions model_path, path format, relative vs absolute resolution, or whether the file must be closed. The parameter name is self-descriptive enough to be usable, but no added meaning is supplied.

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 ('Audit a model') and bounds the scope by timing ('before opening it in Vensim'), then enumerates exactly what it detects, split into errors that block simulation and warnings. This reads clearly against siblings like open_vensim_model, which it is explicitly positioned ahead of.

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?

The pre-open framing ('before opening it in Vensim') gives clear situational guidance, and the closing clause routes fixes to set_vensim_equation, which is the correct alternative for remediation. It stops short of explicit exclusions (e.g., don't run this on an already-open model), so it is a 4 rather than a 5.

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