rename_variable
Rename a stock, flow, or auxiliary variable in a Stella model and automatically update all dependent references to keep the model consistent.
Instructions
Rename a stock/flow/aux and update dependent references
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": {
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "rename_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| new_name | Yes | New variable name | |
| old_name | Yes | Existing variable name | |
| workspace_id | No | Opaque application workspace handle. Required by MCP 2026-07-28 clients; supported legacy stdio clients may omit it to use the process-local compatibility workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| new_key | Yes | ||
| model_id | Yes | ||
| new_name | Yes | ||
| old_name | Yes |