Skip to content
Swellread

MCP · protocol 2025-06-18

An agent can read the water and write a plan

POST JSON-RPC 2.0 to https://swellread.vercel.app/api/mcp. Eight typed tools, five of them mutating, all going through the same service layer and the same audit chain as this website.

Arguments

One-click calls

protocol

read and analysis

mutating tools

Mutating tools write through the same service layer the web UI uses, scoped to this browser's anonymous owner. create_session takes an idempotency key, so retrying it does not create a second session.

Responses · newest first

Nothing sent yet. Start with initialize, then tools/list, then a mutating tool.

Tool surface

What is actually exposed

ToolKindWhat it does
list_breaksreadReturns the curated catalogue: coordinates, break type, peel orientation, reef slope, take-off depth, and whether a NOAA tide station is in range.
get_conditionsreadFetches the normalised hourly slice for a break's local day from NOAA CO-OPS tide predictions and Open-Meteo marine/forecast data, with attribution and an honest live/fallback status.
analyse_breakreadRuns the swellread-engine/2026.10.1 deterministic engine on one hour and returns the score, band, every factor with its weight, contribution and human-readable arithmetic, hard gates, derived physics, the best window in the day, and the SHA-384 seal of the result. Pass tideM to ask a what-if question; it never changes stored data.
create_sessionmutatingFreezes a real conditions snapshot and an engine verdict into a new session owned by the calling browser, and appends the first audit event. Safe to retry with the same idempotencyKey.
decide_sessionmutatingSets the in/out call and confidence on a session and appends a sealed audit event.
log_ridemutatingRecords a ride from the WebGL wave lab against a session. This is the same write path the lab's save button uses.
delete_sessionmutatingSoft-deletes a session and keeps a tombstone plus its audit chain so the history stays replayable.
verify_integrityreadRecomputes every SHA-384 seal in a session's chain from the genesis value and reports the first broken link, or that there is none.

A ready-made manifest is published at /mcp.json, pointing at the live endpoint.

Scope and safety

What an agent may do to your data

Point any MCP client at https://swellread.vercel.app/api/mcp. The endpoint also answers GET with a discovery document listing every tool and a copy-pasteable example of each call.
Agent console · Swellread