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 Name | Alias | Description |
|---|---|---|
list_content_types | schema_list | Introspects all active collection schemas, field validations, and declarative access rules. |
define_content_type | schema_apply | Dynamically creates or updates a YAML collection schema at runtime without server restart. |
query_collection | content_query | Queries records in any collection with filtering, sorting, pagination, and full-text search. |
mutate_record | content_mutate | Creates, 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
- The AI agent invokes
define_content_typewith the structured schema JSON. - HydroGo writes
content-types/vehicles.yaml, runs an atomic zero-downtime database migration across SQLite, Postgres, or MySQL, and registers/api/v1/content/vehicles. - The agent calls
mutate_recordwithoperation: "create"to seed the initial rows. - The new collection and records appear instantly inside the Svelte 5 Admin Studio under
/admin/content/vehicleswith 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