Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
network_idYes
control_stringYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It fails to mention potential side effects, error conditions for invalid input, or return behavior. Examples only hint at syntax but not operational transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured. The purpose is stated in the first sentence, followed by relevant examples in a code block. Every sentence contributes meaning without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simplicity of the tool and presence of an output schema, the description provides sufficient context for basic usage. However, it could be improved by mentioning that control rules can be viewed with 'get_controls' or deleted with 'delete_control'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds moderate value beyond the input schema, which has 0% coverage. Examples illustrate the format of 'control_string', but 'network_id' is only described as 'Session id', which is vague. Overall, partial clarification.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Add a new simple control rule.' It uses a specific verb ('Add') and resource ('simple control rule'), and it distinguishes itself from sibling tools like 'delete_control' and 'get_controls'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide guidance on when to use this tool versus alternatives. It only gives example control strings, but no context about prerequisites or when to choose 'add_control' over other control-related tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Applied-Artificial-Intelligence-Eurecat/epanet-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server