log_run
Log a completed run or plan a future run as an editable running card, capturing distance, duration, run type, splits, and segments only when supplied.
Instructions
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: use log_run only for running on foot. A bike/cycling ride, walk, or rowing session is not a run even when it has distance and duration. For those, 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 for a completed run OR a future run plan.
intent:
log (default): the run happened. date, distance_mi and duration_sec are required. This writes the completed run and returns a card marker for in-app editing.
plan: the run has NOT happened yet. Create 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 workout structure supports it. If a wearable run is unspecified, do NOT call it easy merely because it was a run.
DETAIL: preserve 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. In mi, or km with input_distance_unit set. See UNIT INPUTS. | |
| 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 | Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |