delete_variable
Delete a stock, flow, or auxiliary variable from a Stella model and automatically clean up its connectors and module memberships. Optional force mode detaches connected flows when deleting a stock.
Instructions
Delete a stock/flow/aux and clean connectors/module membership
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": {
"name": "<name>"
},
"name": "delete_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name to delete | |
| force | No | Allow deleting stocks that still have connected flows (flows are detached) | |
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| 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 | ||
| name | Yes | ||
| model_id | Yes |