Hydrological research tools as an MCP server for AI agents — watershed delineation, streamflow analysis, geomorphic parameters, forcing data, CAMELS attributes, and citation lookup
Server has 10 tools with complete input schemas and descriptions. Naming follows verb_noun convention (show_, audit_, lookup_, get_, list_, course_, data_). Descriptions are substantive (100-250 chars typical), explaining WHAT and WHEN. However, several tools lack parameter-level descriptions for optional fields, and output schemas are not documented in the visible code. Error handling guidance is minimal. Tool composition is reasonable but some tools combine multiple concerns (e.g., course_set_progress handles 4 different actions via 'action' enum). No tool annotations (readOnlyHint/destructiveHint) visible despite clear risk classifications in metadata.
Verify that every numeric literal in synthesis prose is bound to a run-log entry or a declared whitelist marker ([lit:...]). Checks each [run:<id>#<path>] marker and [claim:<id>] marker. Returns {passed, violations, numeric_coverage, ...}.
Full manifest + prerequisite_graph for a course. Use when you need the structure (not just progress). ``course_id_or_path``: courseId of the active course OR absolute path to course.json. Defaults to active course.
Snapshot of the active course: current module, completion %, locked modules, next_recommended id. Call at the start of any course conversation. Returns {active: false} if no course is open.
Mutate progress for the active course. Requires explicit user agreement. action: complete | uncomplete | unlock_prereqs | set_current. unlock_prereqs marks ALL prerequisites of module_id as completed (use when user has prior knowledge and wants to skip ahead). reason: short string stored on the completion record for audit.
Kick off a data fetch as a background job and return a job_id immediately. Use instead of data_fetch when the backend may queue requests (e.g. GloFAS/EWDS for global streamflow) or the date range is large (multi-year daily data). The job runs in a detached subprocess; poll its progress with get_job_status(job_id) and retrieve the result with get_data_fetch_result(job_id).
Output schemas not documented. Tools return complex objects (e.g., audit_interpretation returns {passed, violations, numeric_coverage, ...}) but LLMs cannot see the structure. This forces agents to guess field names and types.
course_set_progress combines 4 distinct actions (complete, uncomplete, unlock_prereqs, set_current) into one tool via an 'action' enum. This violates single-responsibility principle and forces LLMs to reason about which action to pick. Should split into separate tools: course_complete_module, course_unlock_prerequisites, course_set_current_module.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk classifications in metadata (READ_ONLY vs WRITE). course_set_progress is marked WRITE but has no destructiveHint. This prevents clients from warning users or restricting agent permissions.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | <=2025-11-25 | v2 |
Get a cached or fresh citation by exact DOI. Returns CSL JSON and formatted APA.
Retrieve the result of a completed data_fetch_background job. Returns the result summary (head rows, shape) and the path to the persisted parquet / netCDF file for downstream use.
List all cached DOIs for the current session. Returns array of {doi, source, cached_at, formatted_apa}.
Look up a citation (free text or DOI). Cascade: CrossRef → Semantic Scholar → DataCite. Cached at ~/.aihydro/citations/ (30 day TTL). ALWAYS call before writing any reference. If not_found, write 'No peer-reviewed citation found' — NEVER invent a DOI/author/year.
Open an HTML file in the AI-Hydro HTML Preview panel (executes any .aihydro-cell Python cells inline). Use after writing a module via the interactive-module-builder skill. file_path must be absolute.
Optional parameters lack descriptions. E.g., lookup_citation.source_hint and force_refresh are marked required=false but have no guidance on defaults or when to use them. LLMs cannot infer when to pass these.
Error handling guidance absent. Tools like lookup_citation say 'NEVER invent a DOI' but provide no error response structure or recovery guidance. If a citation is not found, what does the tool return? How should the LLM proceed?