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
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 |