add_stock
Add a stock to your system dynamics model by specifying a name and initial value. Optionally define units, position, and non-negative constraint to build stock-and-flow diagrams.
Instructions
Add a stock (reservoir) to the current model
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>",
"initial_value": "<initial_value>"
},
"name": "add_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (optional, auto-positioned if not specified) | |
| y | No | Y position (optional, auto-positioned if not specified) | |
| name | Yes | Stock name | |
| units | No | Units | |
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| non_negative | No | Prevent negative values | |
| 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. | |
| initial_value | Yes | Initial value (number or equation) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock | Yes | ||
| model_id | Yes |