add_stock
Add a stock reservoir to a system dynamics model by providing name and initial value; optionally set units and prevent negative values.
Instructions
Add a stock (reservoir) to the current model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| name | Yes | Stock name | |
| initial_value | Yes | Initial value (number or equation) | |
| units | No | Units | |
| non_negative | No | Prevent negative values | |
| x | No | X position (optional, auto-positioned if not specified) | |
| y | No | Y position (optional, auto-positioned if not specified) |