add_control
Add a simple control rule to an EPANET network using a control string to specify conditions like node level or time for actions on links or pumps.
Instructions
Add a new simple control rule.
Example control strings::
"LINK P1 CLOSED IF NODE T1 ABOVE 20"
"LINK P1 OPEN IF NODE J2 BELOW 10"
"LINK Pump9 1.5 AT TIME 16:00"Args: network_id: Session id. control_string: EPANET simple-control syntax string.
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": {
"network_id": "<network_id>",
"control_string": "<control_string>"
},
"name": "add_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_id | Yes | ||
| control_string | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |