create_leakage_event
Simulate a pipe burst by adding a leakage emitter at the pipe midpoint in a cloned EPANET network, leaving the source unchanged, and optionally run the simulation to assess impact.
Instructions
Simulate a pipe burst by adding a leakage emitter at the pipe midpoint.
A clone of the source network is created; the original is unchanged. The burst pipe is split into two halves and a midpoint junction node with an emitter is added.
Args: network_id: Source network id. pipe_id: Id of the pipe that bursts. leak_fraction: Optional fraction of baseline mean pipe flow (0.0–1.0). scenario_id: Id for the cloned scenario session. run_simulation: Run a full simulation after applying changes. target_leak_flow: Optional target flow in the model's flow units. reference_pressure: Pressure at which the target flow applies. emitter_exponent: Pressure exponent; defaults to the model option.
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>"
},
"name": "create_leakage_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipe_id | Yes | ||
| network_id | Yes | ||
| scenario_id | No | ||
| leak_fraction | No | ||
| run_simulation | No | ||
| emitter_exponent | No | ||
| target_leak_flow | No | ||
| reference_pressure | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |