set_pipe_diameter
Set a pipe's diameter in an EPANET water network model to update its hydraulic properties for simulation or what-if analysis.
Instructions
Set the diameter of a pipe.
Args: network_id: Session id. pipe_id: Pipe name/ID. diameter: New diameter in the network's length units (mm or inches).
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>",
"pipe_id": "<pipe_id>",
"diameter": "<diameter>"
},
"name": "set_pipe_diameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipe_id | Yes | ||
| diameter | Yes | ||
| network_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |