Skip to main content
Glama

delete_vensim_variable

Deletes a Vensim variable's equation and diagram objects, removing linked flows, valves, pipes, and clouds; if other equations reference it, deletion is refused unless force is enabled.

Instructions

Delete a variable's equation and its diagram objects and arrows.

Deleting a flow also removes it from its stocks' INTEG equations and removes its valve, pipes and clouds. If other equations still use the variable the delete is refused and they are listed; force=true deletes anyway, leaving those equations broken. Writes in place (a backup is kept) unless output_path is given.

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": "<name>"
    },
    "name": "delete_vensim_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
forceNo
model_pathYes
output_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the entire burden and does so well: it discloses cascading side effects on stocks' INTEG equations, the exact objects destroyed, that a refused delete lists the offending equations, that force=true leaves those equations broken, and that writes happen in place with a backup unless output_path is given. This is precisely the behavioral context an agent needs before a destructive mutation.

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?

Four tight sentences, front-loaded with the primary effect and then escalating to cascading effects, refusal behavior, and write semantics. Nearly every clause earns its place; only the trailing write-mode sentence could be slightly compressed.

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 destructive, cascading mutation with four parameters and no output schema, the description covers effects, failure mode, override, and file-writing behavior. It doesn't say what the tool returns on success (e.g. counts or paths) or where the backup is written, which is the main remaining gap.

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 must compensate. It gives genuine semantics for force and output_path (in-place write with backup vs. redirected output), but name and model_path are left entirely to their bare titles, and the interaction between output_path and the backup behavior is only loosely implied.

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 ('Delete a variable's equation') and immediately enumerates the collateral objects removed (diagram objects, arrows, valves, pipes, clouds). An agent can distinguish this from add_vensim_variable, rename_vensim_variable, or set_vensim_equation without consulting 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?

Explains the refusal condition (other equations still reference the variable) and the escape hatch (force=true), which is real when-to-use guidance for the risky path. It stops short of naming an alternative tool — e.g. set_vensim_equation for merely clearing an equation without deleting the variable — so the exclusion set is incomplete.

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