Skip to main content
Glama

ras_run

Run a HEC-RAS plan headlessly (copying the project first if desired) and get a QA summary with status, stability, and error metrics once the simulation finishes.

Instructions

Run one HEC-RAS plan headless (Ras.exe -c project.prj plan.p##; geometry preprocessing, unsteady/steady computation and post-processing) and QA the result. If run_dir is given the whole project is first copied there and run inside it (safe); otherwise the plan runs in place (use on a copy!). Blocks until the run finishes. Returns status ('completed', 'completed_with_warnings', 'unstable', 'failed', 'no_results'), usable (bool), reasons, metrics (max WSEL error, volume error %, ERROR/WARNING line counts), the results HDF path, runtime and the log tail. Gate on 'status'/'usable', not on 'ok'. A watchdog accepts HEC-RAS's 'Terms and Conditions for Use' dialog if it appears (accept_tcu, default true) and kills the run after timeout_s (default 4 h). Needs HEC-RAS installed (Windows).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planYesPlan number, e.g. '03'.
projectYesProject folder or .prj.
ras_exeNoPath to Ras.exe (else HECRAS_EXE / auto-detect).
run_dirNoOptional folder to copy the project into and run there (recommended).
num_coresNoOverride cores for the solvers (2-8).
overwriteNoReplace run_dir if it exists (default true).
timeout_sNoKill the run after this many seconds (default 14400).
accept_tcuNoAuto-accept HEC-RAS's Terms and Conditions for Use dialog if it blocks the run (default true; false = terminate the run and report).
clear_geompreNoDelete .c## preprocessor files first (after geometry edits). Default false.
Behavior5/5

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

With no annotations provided, the description carries full responsibility. It discloses blocking behavior, watchdog handling of TCU dialog, timeout killing, copy-to-run_dir safety, and the list of returned metrics and warning/error categories. It also hints at file modifications via 'delete .c## preprocessor files' parameter and advises caution for in-place runs.

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

Conciseness4/5

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

The description is dense but efficient, covering purpose, execution model, safety, return values, and constraints in a single block. It is front-loaded with the primary action and then details. While somewhat long, every sentence provides essential operational information, making it acceptable for a complex 9-parameter tool.

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

Completeness5/5

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

Given the tool's complexity (9 params, no output schema, no annotations), the description is remarkably complete. It explains return fields, blocking behavior, watchdog, safety modes, prerequisites, and usage cautions. It even covers error-handling guidance ('Gate on status/usable') and environmental requirements (Windows).

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?

Although the schema already describes all 9 parameters (100% coverage), the description adds meaningful context beyond the schema. For example, it explains the safety implication of run_dir ('safe'), the default for accept_tcu, and the timeout default. This enriches the parameter understanding without repeating schema definitions.

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 function: 'Run one HEC-RAS plan headless' and perform QA. It uses a specific verb ('run'), names the resource (HEC-RAS plan), and differentiates from sibling tools by focusing on execution and result QA rather than file operations or plotting.

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

Usage Guidelines4/5

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

The description provides practical guidance: use run_dir for safe copying, warns 'use on a copy!' when running in place, and instructs to 'Gate on status/usable, not on ok'. It also notes the requirement for Windows and HEC-RAS installation. It does not explicitly list alternatives but the sibling tools clearly serve different purposes.

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/Zhonghao1995/Agentic-HEC-RAS'

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