Skip to main content
Glama

rename_vensim_variable

Rename a Vensim variable across its equation, all dependent equations, and the diagram; writes in place with a backup or to a specified output path.

Instructions

Rename a variable everywhere: its equation, every equation that uses it, and the diagram.

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>",
      "old_name": "<old_name>",
      "new_name": "<new_name>"
    },
    "name": "rename_vensim_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_nameYes
old_nameYes
model_pathYes
output_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 behavioral burden and does disclose the most consequential traits: it mutates in place, a backup is retained, and passing output_path switches to writing elsewhere. It stops short of covering preconditions (is the model required to be loaded?) or collision/error behavior on the new name.

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?

Two compact sentences, front-loaded with the core action and scope, followed by the file-writing behavior. No filler or restatement of the tool name.

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 mutation tool with zero annotation coverage and no output schema, the description covers scope and write-target behavior but omits preconditions and failure modes an agent would want before invoking a destructive rename. Adequate but with clear gaps.

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 adds real meaning for output_path (absent means in-place write with backup, present means write there), but says nothing about model_path, old_name, or new_name beyond what the parameter titles already convey.

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 (rename) and resource (variable), then enumerates the precise scope: the equation, every equation referencing it, and the diagram. This makes it distinguishable from siblings like set_vensim_equation or add_vensim_variable, though it does not name any alternative explicitly.

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 implied by the scope statement — you use this when a variable must be renamed throughout the model rather than edited in one place. There is no explicit when-not guidance (e.g., what to do if the new name already exists, or whether the model must be open first), leaving the agent to infer selection between this and set_vensim_equation.

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