Skip to main content
HydroGo
AI & MCP Agent GuideAvailable Tools & Audit

Available Tools & Audit

The 6 core tools exposed by HydroGo's MCP server and the SHA-256 cryptographic audit chain.

Core MCP Tools

Tool NameAliasDescription
list_content_typesschema_listIntrospects all active collection schemas, field validations, and declarative access rules.
define_content_typeschema_applyDynamically creates or updates a YAML collection schema at runtime without server restart.
query_collectioncontent_queryQueries records in any collection with filtering, sorting, pagination, and full-text search.
mutate_recordcontent_mutateCreates, updates, or deletes records in dynamic collections with cryptographic audit logging.
system_info—Inspects runtime status, registered content types, active tenant, and audit chain status.
system_verify_audit—Runs cryptographic SHA-256 chain verification on hydro_audit_logs to prove tamper-evident integrity.

Prompt Example: Dynamic Collection Scaffolding

Give this prompt to Cursor or Claude Code:

MARKDOWN
Connect to HydroGo MCP. Create a new collection schema for 'vehicles' with fields:
- brand (text, required)
- model (text, required)
- daily_rate (number, required)
- available (boolean)

Then insert 2 sample rental cars.

What Happens Under the Hood

  1. The AI agent invokes define_content_type with the structured schema JSON.
  2. HydroGo writes content-types/vehicles.yaml, runs an atomic zero-downtime database migration across SQLite, Postgres, or MySQL, and registers /api/v1/content/vehicles.
  3. The agent calls mutate_record with operation: "create" to seed the initial rows.
  4. The new collection and records appear instantly inside the Svelte 5 Admin Studio under /admin/content/vehicles with zero build step.

Cryptographic Audit Trail

All agent mutations are recorded into the hydro_audit_logs ledger. Each log entry contains the actor identity, timestamp, JSON diff payload, and a SHA-256 hash chained to the previous entry (hydro audit verify checks chain integrity).

To inspect agent mutations via CLI: hydro audit list --limit 20 --json