# raceform.dev > Race-day prep for a runner you have not met. Start with a first 5K: a familiar breakfast, an early arrival, an easy first mile, and permission to walk. The same checklist covers a 10K, a half marathon, and a marathon. No account. Distances are in miles. ## Race-day plan - `POST http://raceform.dev/api/plan`: Stateless. No session and no login. Limit 60 requests per hour per IP. - Body: `{"distance":"5K","race_date":"2026-12-20","timing":"6 weeks","experience":"first","goal":"Finish calm","notes":"optional"}`. - `distance` (required): `5K`, `10K`, `half`, or `marathon`. - `experience` (required): `first`, `some`, or `experienced`. - Provide `race_date` (`YYYY-MM-DD`) or `timing` (for example `6 weeks`, `tomorrow`, or `race morning`). - `goal` and `notes` are optional strings. - `400` returns `{"error":"...","fields":{"distance":"..."}}`. Unknown fields are rejected. ## Public routes - `GET http://raceform.dev/` landing page. `HEAD http://raceform.dev/` returns 200 with no body. `Accept: application/json` returns agent context. `Accept: text/markdown` returns this guide. - `GET http://raceform.dev/sitemap.xml`: public GET routes. - `GET http://raceform.dev/llms.txt`: this guide. - `GET http://raceform.dev/.well-known/agent.json`: agent manifest. - `GET http://raceform.dev/openapi.json`: OpenAPI 3.1.0. - `GET http://raceform.dev/api/health`, `GET http://raceform.dev/api/schema`, `GET http://raceform.dev/api/agent-context`. ## Plain-English Metric Definitions These are the same sentences shown beside the charts on the page. - **Longitudinal** (`#longitudinal-definition`, section `#free-audit`): Longitudinal means the long view: the same person across months and years, not one workout by itself. The charts in this section are that view, from 2021 through 2026. - **Efficiency Factor (EF)** (`#ef-definition`, beside `#ef-chart`): EF means efficiency factor: how much pace you get from each heartbeat. It is your speed divided by your heart rate. Higher is better. On this graph, 1.06 in 2023 became 1.53 later, so the same heart rate now goes with a faster pace. - **Decoupling** (`#decoupling-definition`, beside `#benchmark-table`): Decoupling is the change from the first half of a race to the second. It is how much your heart rate rises, or your pace slows, once you are already tired. Under about 5% means you held together. Over 5% means you faded late. A negative number means the second half was stronger. - **Weekly load ratio:** The weekly load ratio compares the last 7 days of running, cycling, and strength with a normal week, the average of the last 28 days. About 0.8 to 1.3 is a usual range. Above about 1.35 means this week is a big jump. - **Fitness score:** The fitness score turns a best half marathon into an estimated marathon pace. It checks speed. It does not, by itself, say that pace will hold for 26 miles. ## Agent Discovery & MCP - `GET http://raceform.dev/.well-known/agent.json`: Agent discovery manifest (capabilities, auth, links, MCP stdio config). - `GET http://raceform.dev/openapi.json`: OpenAPI 3.1.0 specification covering all `/api/*` GET and POST routes. - `GET http://raceform.dev/` with `Accept: application/json` returns `/api/agent-context`; `Accept: text/markdown` returns this guide. - **MCP stdio server:** `python3 backend/mcp_server.py` (zero-dependency JSON-RPC 2.0 exposing `raceform_race_day_plan`, `raceform_audit`, `raceform_durability`, `raceform_pacing_plan`, `raceform_coach_brief`, `raceform_agent_context`, `raceform_list_feedback`, `raceform_submit_feedback`). ## Quick Agent Endpoints - `POST http://raceform.dev/api/plan`: Race-day prep plan for a 5K, 10K, half marathon, or marathon. Ignores any session. - `GET http://raceform.dev/api/agent-context` (opt `?session_id=...`): One-call compact JSON summary of the sample log or an uploaded file, with plain-English definitions, benchmark races, durability, load ratio, guardrails, and feedback count. - `GET http://raceform.dev/api/schema`: Machine-readable JSON endpoint catalog with params and response schemas. - `GET http://raceform.dev/api/health`: Service status and loaded dataset summary. ## Full Telemetry Endpoints - `GET http://raceform.dev/api/audit` (opt `?session_id=...`): Yearly/monthly Run + Ride + Strength volume in miles, long-run inventory (`>=12 mi`), benchmark races, and EF trajectory. - `POST http://raceform.dev/api/upload`: Upload Strava `activities.csv` or JSON (`multipart/form-data`, `text/csv`, or `application/json`). Returns `session_id` + updated `audit` and `durability`. - `GET http://raceform.dev/api/pro/durability` (opt `?session_id=...`): Speed-vs-Durability gap, decoupling comparisons, 26-week Hybrid ACWR series, and marathon readiness score (0-100). - `POST http://raceform.dev/api/pro/pacing-plan`: JSON `{"target_time":"2:59:30","current_half":"1:27:56"}` -> mile-by-mile negative-split plan, HR ceilings, checkpoints, and fade warnings. - `GET http://raceform.dev/api/pro/coach-brief` (opt `?session_id=...&target_time=2:59:30`): Weekly coach triage brief in Markdown + structured JSON. - `POST http://raceform.dev/api/feedback` / `GET http://raceform.dev/api/feedback`: Submit or read beta user feedback. ## Example Curl ```bash curl -s -X POST http://raceform.dev/api/plan -H 'Content-Type: application/json' -d '{"distance":"5K","timing":"6 weeks","experience":"first","goal":"Finish calm"}' curl -s http://raceform.dev/api/agent-context curl -s -X POST http://raceform.dev/api/pro/pacing-plan -H 'Content-Type: application/json' -d '{"target_time":"2:59:30","current_half":"1:27:56"}' ```