Skip to main content
Glama

create_contamination_event

Inject contaminant at a network node for a defined time window and simulate water quality impact.

Instructions

Inject a contaminant at a node for a specified time window and simulate.

A clone of the source network is created. Quality type is set to CHEM automatically.

Args: network_id: Source network id. source_node_id: Node where the contaminant is introduced. concentration: Concentration in mg/L (or model quality units). start_time_s: Injection start time in seconds. end_time_s: Injection end time in seconds. source_type: "CONCEN", "MASS", "FLOWPACED", or "SETPOINT". scenario_id: Id for the cloned scenario session. run_simulation: Run a full simulation after applying changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_time_sYes
network_idYes
scenario_idNo
source_typeNoCONCEN
start_time_sYes
concentrationYes
run_simulationNo
source_node_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description adds transparency by mentioning cloning of the source network and automatic quality type setting. However, it does not discuss reversibility, error conditions, or what happens with the scenario_id if not provided.

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: a high-level summary, important behavioral notes, then a clear argument list. Every sentence adds value 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 complexity (8 parameters, many sibling tools, output schema exists), the description covers core functionality but omits details like return value description, scenario_id behavior, and potential restrictions (e.g., node type). It is minimally adequate but could be more complete.

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

Parameters4/5

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

Since schema description coverage is 0%, the description must explain parameters. It provides basic explanations for all 8 parameters, including the source_type enum values. However, details are minimal (e.g., no constraints on time values).

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 'Inject a contaminant at a node for a specified time window and simulate.' It also specifies that a clone is created and quality type set to CHEM, distinguishing it from sibling tools like create_leakage_event or create_demand_perturbation.

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

Usage Guidelines3/5

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

The description implies usage for contamination scenarios but does not explicitly state when to use this tool versus alternatives. There is no mention of prerequisites or exclusions.

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