log_run
UNIT INPUTS: value: pass the user's number unconverted; tool converts once before storage. alternate_unit: set the field's matching input_* companion; canonical_unit: omit companion. precedence: overrides instructions to convert manually.
RUNNING ONLY: log_run is for running on foot. A bike/cycling ride, walk or rowing session is not a run even with distance and duration: use log_workout with focus_type Cycling, Walking, or Rowing plus the user's native distance field and duration_sec.
Create an editable running card. use: a completed run OR a future run plan.
intent:
log (default): the run happened. date, distance_mi and duration_sec are required. Writes the completed run and returns a card marker for in-app editing.
plan: the run has NOT happened yet. Creates a planned run card. Never put a future run in completed history.
RUN TYPE: distinguish easy, long, tempo, interval, recovery, race, fartlek, threshold, progression and hills when the runner or the workout structure supports it. An unspecified wearable run is NOT easy merely because it was a run.
DETAIL: keep elapsed time, HR, cadence, power, elevation, RPE, splits and structured segments only when supplied by the user/source. Never invent sensor data or splits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"intent": "<intent>"
},
"name": "log_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpe | No | RPE 1-10. For a plan this is target RPE. | |
| date | No | YYYY-MM-DD. Completed runs default to today when context allows; planned runs use the intended date when known. | |
| notes | No | ||
| avg_hr | No | Average heart rate only when known. | |
| intent | Yes | log = completed run; plan = future run. Elias uses plan for a workout the runner has not done yet. | |
| splits | No | Actual splits/laps only when supplied by the runner/source. Never invent. | |
| surface | No | ||
| run_type | No | Classify only when the runner or workout structure supports it. Do not turn an unspecified wearable run into easy. | |
| segments | No | Workout structure, e.g. warmup, 6x800m threshold, recovery, cooldown. This may describe a plan or what was actually performed. | |
| pain_notes | No | Pain/discomfort exactly as the runner described it. | |
| start_time | No | Local HH:MM only when known. | |
| avg_power_w | No | Average running power in watts only when known. | |
| distance_mi | No | Distance. mi, or km via input_distance_unit. | |
| elapsed_sec | No | Wall-clock elapsed time including pauses, only when known. | |
| duration_sec | No | Moving/workout duration in seconds. | |
| avg_cadence_spm | No | Average running cadence in steps/min only when known. | |
| elevation_gain_m | No | Elevation gain in metres only when known. | |
| perceived_effort | No | Post-run check-in only. | |
| input_distance_unit | No | km when the user gave km for this object's _mi fields; omit for mi. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |