BikeScout / v1.8.0

API Reference

Standard reference for the BikeScout Model Context Protocol server. This document covers the domain, tools, resources, skills, and object schemas exposed by the current implementation.

Protocol
MCP (FastMCP)

Tools and resources served by BikeScout over stdio or SSE.

Domain
Pre-ride tactical cycling intelligence

Route scouting, weather, mud risk, nutrition, setup, GPX audit, and planning artifacts.

Artifacts
Local + MCP resources

Generated files under ~/.bikescout and exposed as bikescout:// URIs.

Domain

Core Concepts

  • Mission: A planned ride request with rider, bike, constraints, date, and selected overlays.
  • RiderProfile: Physiological inputs used by setup, battery, and nutrition models.
  • BikeSetup: Bike category, tires, casing, tubeless state, and optional e-bike battery/motor data.
  • MissionConstraints: Distance, routing profile, surface preference, complexity, biases, and priority mode.
  • Target date: Date-dependent tools default to tomorrow and reject dates more than 5 days ahead as unreliable.

MCP Resources

URIDescription
bikescout://altimetry/{filename}Elevation profile PNG artifact.
bikescout://maps/{filename}Tactical route map PNG artifact.
bikescout://gpx/{filename}Exported GPX route file.
bikescout://race/{filename}Generated GPX race audit PDF report.

Tools

MCP tools exposed by the BikeScout server. Input contracts and return schemas are defined below; schema details are listed in the Schemas section.

TOOL

geocode_location

Description

Primary resolution engine for geographical names. Finds latitude and longitude for any natural language place name (cities, mountain passes, specific addresses, or points of interest). Crucial Step: Use this tool to resolve coordinates before calling any routing or weather tools if you only have a location name.

Parameters

Parameter Type Status Description
location_name string Required The natural language name of the place (e.g., "Passo dello Stelvio", "Courmayeur").
language string Default: "en" Language for localized results (e.g., 'it', 'fr', 'es'). Maps to Accept-Language header.

Returns

GeocodingResponse
  • ● lat/lon: Precise floating-point coordinates for routing engines.
  • ● display_name: The full, formal localized name of the resolved location.
  • ● importance: A reliability score (0.0 to 1.0) to evaluate the match quality.
  • ● place_class/type: Contextual tags (e.g., 'city', 'mountain', 'peak') used to distinguish between different types of landmarks.
TOOL

trail_scout

Description

Advanced trail discovery engine. Returns comprehensive route data, technical difficulty assessment, navigation files (GPX), and visual altimetry reports. Supports both Round Trips (single point) and A to B routing. Synchronizes with weather and soil models to provide real-time tactical advice. If target_date is omitted, it defaults to tomorrow. Dates more than 5 days ahead are rejected as unreliable.

Single-route consistency: the orchestrator selects one ORS route (applying distance flexibility and the directional anchor, with up to three seeds when a bias is set) and passes that exact route feature to the surface analyzer. Surface composition, ascent, gradients and climbs are therefore computed from the same geometry used for the GPX track, tactical map and elevation profile — no second routing request is issued for surface analysis, so reported metrics never disagree with the exported route.

Verification prompt

Plan a gravel loop starting at latitude 45.0, longitude 10.0. Target about 40 km with a south-east directional bias, ride_character_first priority, and 20% distance flexibility. Use seed 42, complexity 5. Include surface analysis, GPX export, tactical map, and elevation profile. Give me the reported distance, ascent, max gradient, and climb list, plus the links to the downloaded files.

This exercises distance flexibility, the directional anchor and multi-seed selection. Verify that the reported distance_km, ascent_m and climb_list match the geometry in the downloaded GPX/map/elevation assets, and that only one routing pass is billed to ORS.

Parameters

Parameter Type Status Description
latitude float Required Starting point latitude (WGS84).
longitude float Required Starting point longitude (WGS84).
rider RiderProfile Required Rider physiological profile: weight, gender, fitness level and sweat profile.
bike BikeSetup Required Bike technical setup: category, tires, casing, tubeless and e-bike battery specs.
mission MissionConstraints Required Mission constraints: distance, ORS profile, surface preference, waypoint count and route biases.
dest_latitude float Optional Destination latitude for A-B routing.
dest_longitude float Optional Destination longitude for A-B routing.
style enum "filled" Chart style: sparkline, filled, bars.
target_date string Optional Custom date (YYYY-MM-DD) for predictive analysis.
include_gpx bool Default: true Generate and export a navigation GPX file.
include_map bool Default: false Generate a static PNG map of the route.
include_poi bool Default: false Generate amenities and points of interest.
include_altimetry bool Default: false Generate the altimetry profile of the route.
include_weather bool Default: false Generate weather conditions report.
include_mud_analysis bool Default: false Generate a report including mud analysis.
include_nutrition_plan bool Default: false Generate a nutrition plan report.

Returns

FullMissionBriefingResponse
  • ● info: Route morphology, surface analysis (TAEL™ mud risk), and differential front/rear PSI with setup intelligence.
  • ● conditions: Hourly synchronized weather, rain probability, and safety gear briefings.
  • ● logistics: Hydration/Nutrition plan and strategic amenities (water fountains, etc.) detected along the path.
  • ● Visual Assets: Native URIs for Map, Elevation Profile, and GPX navigation file for direct chat rendering.
  • ● Elevation provenance: Data credit, total and estimated sample counts, and chart uncertainty; elevation_error explains an omitted profile.
  • ● Nutrition provenance: Fueling targets carry their evidence basis, confidence, uncertainty note, inputs and references; nutrition_error explains a rejected plan.
TOOL

trail_scout_simple

Description

Flat-argument convenience wrapper around trail_scout for quick route generation. Only latitude and longitude are required; all other inputs have sensible defaults. It builds the rider, bike and mission models internally, so the same surface analysis, S-scale grading, TAEL™ mud risk and ASI pressure output are returned.

Tire setup defaults: when physical setup fields are omitted, defaults are derived from bike_type — Road 25mm/19mm/xc, Gravel 40mm/21mm/xc, MTB 58mm/25mm/trail, E-MTB 60mm/27mm/trail, and Enduro 60mm/28mm/enduro (tire width / rim internal width / casing). tubeless defaults to true; inner tubes add roughly 18% pressure. Every call returns MechanicalSetup.setup_details.tactical_display in F: ... PSI | R: ... PSI form.

Parameters

Parameter Type Status Description
latitude float Required Starting point latitude (WGS84).
longitude float Required Starting point longitude (WGS84).
weight_kg float Default: 75.0 Rider and gear mass used for energy, nutrition and tire-load calculations.
gender enum Default: "male" male or female; scales sweat rate.
sweat_profile enum Default: "standard" Genetic sodium loss: low, standard, high, or extreme.
fitness_level enum Default: "intermediate" Rider stamina: beginner, intermediate, or pro.
bike_type enum Default: "mtb" Bike category: mtb, road, gravel, e-mtb, or enduro. Drives load split and setup defaults.
tire_size enum Default: "29" Wheel/tire diameter label: 32, 29, 27.5, 700c, or 650b.
tire_width_mm int | null Optional Actual tire width (18 to 75mm). Falls back to the discipline reference when omitted.
rim_internal_width_mm int | null Optional Rim internal width (10 to 45mm). Used for volume support and rim-width mismatch checks; falls back by discipline.
casing_type enum | null Optional Casing stiffness: xc, trail, enduro, or dh; falls back by discipline.
tubeless bool Default: true True for tubeless; inner tubes require roughly 18% more pressure.
is_ebike bool Default: false Enables battery analysis for pedelec/e-bike missions.
battery_wh int Default: 625 Battery capacity in Watt-hours.
motor_power_limit_w int | null Optional Hardware motor continuous power limit in Watts. Omitted uses a conservative heuristic fallback in battery estimates.
total_length_km int Default: 30 Target round-trip distance in kilometers.
profile enum Default: "cycling-mountain" ORS routing profile: cycling-mountain, cycling-road, cycling-regular, or cycling-electric.
surface_preference enum Default: "neutral" Road versus off-road bias: neutral, prefer_paved, or avoid_unpaved.
complexity int Default: 3 Number of ORS waypoints shaping the loop (3 to 10), serialized as points. The Streamlit UI maps its 1-5 difficulty scale to 3-5. A value of 4 can raise the reported difficulty to Advanced, 5 to Expert.
seed int Default: 42 Random seed for reproducible route generation.
assist_mode enum Default: "Eco" E-bike motor support: Eco, Trail, or Boost.
direction_bias list[string] | null Optional Preferred route quadrants, for example ["south", "east"].
avoid_urban bool Default: false Bias route generation away from dense urban sections. With an MTB/enduro/e-MTB bike, prefer_rural=true and priority_mode="ride_character_first", already-fetched candidates are also ranked by off-road share; no extra ORS request is made.
prefer_rural bool Default: false Bias route generation toward quieter countryside roads. See avoid_urban for the off-road ranking behavior.
distance_flex_percent int Default: 10 Allowed tolerance around the requested distance when route character matters more.
priority_mode enum Default: "balanced" Optimization mode: balanced, distance_first, or ride_character_first.
dest_latitude float | null Optional Destination latitude for A-to-B missions.
dest_longitude float | null Optional Destination longitude for A-to-B missions.
style enum Default: "filled" Elevation chart style: sparkline, filled, or bars.
target_date string | null Optional Analysis date (YYYY-MM-DD). Defaults to tomorrow; max 5 days ahead. Rejected if beyond 5 days.
include_gpx bool Default: true Generate and export a navigation GPX file.
include_map bool Default: false Generate a static PNG map of the route.
include_poi bool Default: false Include amenities and points of interest.
include_altimetry bool Default: false Generate the altimetry profile of the route.
include_weather bool Default: false Generate weather conditions report.
include_mud_analysis bool Default: false Generate a report including mud analysis.
include_nutrition_plan bool Default: false Generate a nutrition plan report.
sweat_rate_ml_per_hour number | null Optional Measured whole-body sweat rate (ml/h) from a timed weigh-in; replaces the population fluid estimate.
target_date string | null Optional Analysis date (YYYY-MM-DD). Defaults to tomorrow; max 5 days ahead.

Returns

FullMissionBriefingResponse
  • ● info: Route morphology, TAEL™ mud risk, and differential front/rear PSI with equipment advice and knob choice.
  • ● conditions: Weather, rain probability, and safety gear briefings when requested.
  • ● logistics: Hydration/nutrition plan and detected amenities when requested.
  • ● Visual Assets: Native URIs for the map, elevation profile, and GPX file.
  • ● Elevation provenance: Data credit, total and estimated sample counts, and chart uncertainty; elevation_error explains an omitted profile.
  • ● Nutrition provenance: Fueling targets carry their evidence basis, confidence, uncertainty note, inputs and references; nutrition_error explains a rejected plan.
TOOL

check_trail_weather

Description

Cycling-specific weather assistant for real-time decisions and event planning. It provides local analysis of temperature, precipitation, wind and WMO conditions for the whole requested day. Analysis scope: the safety advice always scans every hourly slot of that day; target_hour only sets the reference conditions. Missing or inconsistent provider data returns an explicit Error instead of a [GO] verdict.

Parameters

Parameter Type Status Description
lat float Required Latitude of the specific trail or event sector.
lon float Required Longitude of the specific trail or event sector.
target_date string Optional Event date (YYYY-MM-DD). Defaults to today; the full day is analyzed.
target_hour int Optional, default 9 Reference hour (0-23) for headline conditions; must exist in the provider payload.

Returns

TacticalForecastResponse
  • ● status: Confirmation of the API operation and data freshness.
  • ● error_message: Diagnostic reason when status is Error; absent on success.
  • ● metadata: Contextual data including timezone, resolved coordinates, source and analyzed hourly range.
  • ● tactical_forecast: Numeric hourly breakdown of temperature, rain probability, wind bearing and WMO condition.
  • ● reference_conditions: Verified reference-hour values and mean bearing after ride-window filtering.
  • ● safety_advice: Worst-hour wind risk and peak rain across the whole day, or an explicit [UNAVAILABLE] verdict when data is missing.
TOOL

ride_window_planner

Description

Tactical Go/No-Go Decision Engine. This tool identifies the optimal time range for an activity by cross-referencing weather stability with the TAEL™ soil drainage efficiency. It calculates the "drying lag" based on the specific surface type to ensure the mission doesn't coincide with peak mud risk or dangerous environmental shifts.

Parameters

Parameter Type Status Description
lat float Required Latitude of the mission area.
lon float Required Longitude of the mission area.
ride_duration_hours float Default: 2.0 Planned duration of the cycling session in decimal hours.
surface_type enum "dirt" Surface type: dirt, gravel, asphalt, sand, clay.
target_date string Optional The date of the event (YYYY-MM-DD). Defaults to today's schedule.

Returns

StrategicPlannerResponse
  • ● status/message/next_step: Operation status; on Error, message and actionable next step are provided.
  • ● metadata: Analyzed date, surface, solar window, requested duration, mud availability/confidence.
  • ● planner_report.verdict: The final GO/CAUTION/NO-GO verdict with planner_report.tactical_color (Green/Yellow/Red).
  • ● planner_report.environmental_briefing: Rain/wind/temp summary plus mud score availability; may include caution message when mud is unavailable.
  • ● planner_report.best_window: The specific time range identified as safest, or N/A.
  • ● planner_report.mud_risk_impact: TAEL mud index in mm when available, otherwise Unavailable.
TOOL

hydration_scout

Description

Physiological Intelligence Engine. This tool generates a mission-specific fueling strategy by cross-referencing localized weather dynamics (heat index, humidity, and solar radiation) with the predicted intensity of the effort. It calculates sweat rates and glycogen depletion to provide precise targets for fluids, carbohydrates, and sodium.

Parameters

Parameter Type Status Description
lat float Required Latitude of the mission area.
lon float Required Longitude of the mission area.
duration_hours float Default: 2 Estimated time in the saddle (decimal hours).
intensity_score int Default: 3 Perceived effort (1: Recovery, 3: Tempo, 5: Race/Max effort).
weight_kg float Default: 70.0 Rider weight in kilograms.
gender string Default: male "male" or "female". Recorded for context; it does not change the fluid target without a measured sweat rate.
sweat_profile string Default: standard Self-reported sweat sodium concentration profile; a measured sweat test is needed to personalise it. - "low": ~400 mg/L. - "standard": ~800 mg/L (population average). - "high": ~1200 mg/L. - "extreme": ~1800 mg/L.
target_date string | null Optional Date of the event (YYYY-MM-DD). Defaults to the current weather window; future dates use the forecast peak inside the ride window.
sweat_rate_ml_per_hour number | null Optional Measured whole-body sweat rate (ml/h) from a timed weigh-in; replaces the population fluid estimate.
relative_humidity_pct number | null Optional Relative humidity (%). Raises a heat alert but does not change the fluid target.

Returns

HydrationScoutResponse
  • ● weather_context: Environmental factors that influenced the hydration/sodium calculation.
  • ● mission_nutrition_briefing.fluids: Total volume required and hourly intake rate (ml/h) to maintain hydration.
  • ● mission_nutrition_briefing.carbohydrates: Total grams and hourly target (g/h) based on intensity and duration.
  • ● mission_nutrition_briefing.electrolytes: Sodium and salt requirements (mg) to prevent cramping and hyponatremia.
  • ● mission_nutrition_briefing.tactical_advice: Critical alerts regarding heat stress, bonk risk, or specific absorption strategies.
  • ● Evidence & uncertainty: data_basis, estimate_confidence, uncertainty_note, inputs_used and references; temperature_basis identifies the ride-window peak and error_message explains rejected inputs.
TOOL

analyze_gpx_track

Description

High-Fidelity Professional Race Audit. This is the most advanced analysis engine, designed to transform a raw GPX file into a complete tactical roadbook. It simulates professional racing dynamics, calculating UCI climb categories, VAM (Vertical Ascent Meters), and specific W/kg requirements adjusted for environmental friction (wind and air density). It also identifies strategic risks such as echelon (crosswind) zones and optimal attack points.

Parameters

Parameter Type Status Description
gpx_url string Required Remote URL or local path of the GPX file.
rider_weight_kg float Default: 75 Body mass for Power-to-Weight (W/kg) calculations.
rider_gender string Default: male Rider gender: male or female.
rider_fitness_level string Default: intermediate Rider athletic preparation level: beginner, intermediate, or pro. Affects fatigue and climbing logic.
sweat_profile string Default: standard Self-reported sweat sodium concentration profile; a measured sweat test is needed to personalise it. - "low": ~400 mg/L. - "standard": ~800 mg/L (population average). - "high": ~1200 mg/L. - "extreme": ~1800 mg/L.
bike_weight_kg float Default: 8.5 Mass of the bike.
pro_intensity float Default: 1.3 Effort multiplier (1.0: Amateur, 1.6: Pro, 2.0: Attack).
activity_type enum "road" road or mtb.
target_date string Optional Race date (YYYY-MM-DD) for weather/mud prediction.
start_hour / end_hour int Optional Race window (0-23) for time-averaged metrics.
report bool Default: false Generate a professional PDF race book.

Returns

GpxRaceAuditResponse
  • ● mode / target_date: Selected activity mode and date used for weather and mud prediction.
  • ● track_metrics: Core telemetry (distance, total ascent, peak altitude).
  • ● climb_analysis: Granular breakdown of every climb with BikeScout heuristic categorization (not official UCI race classification).
  • ● performance_simulation: Predicted sector times, VAM, and weather-adjusted W/kg targets.
  • ● tactical_alerts / pre_climb_positioning / tactical_action_zones: Race dynamics, pack-positioning cues and technical caution points.
  • ● planning_tools: Integrated weather, nutrition, mud risk, and weather-basis metadata.
  • ● report_path / mcp_resource_uri_report: Local PDF path and MCP resource URI for the generated race book (if report=True).

Schemas

Pydantic v2 domain and response contracts used by BikeScout tools and resources.

Object Schemas

RiderProfile

FieldTypeDefaultDescription
weight_kgfloat75.0Rider weight in kilograms. Critical for tire pressure and energy modeling.
genderstringmaleRider gender: male or female.
fitness_levelstringintermediateRider athletic preparation level: beginner, intermediate, or pro. Affects fatigue and climbing logic.
sweat_profilestringstandardSelf-reported sweat sodium concentration profile: low (~400 mg/L), standard (~800 mg/L), high (~1200 mg/L), or extreme (~1800 mg/L). A measured sweat test is needed to personalise it.
sweat_rate_ml_per_hournumber | nullnullOptional measured whole-body sweat rate (ml/h) from a timed weigh-in; overrides the population fluid estimate.

BikeSetup

FieldTypeDefaultDescription
bike_typestringmtbBike category. Accepted values: MTB, mtb, Road, road, Gravel, gravel, E-MTB, e-mtb, Enduro, enduro. Used to filter suitable trail surfaces.
tire_sizestring29Standard wheel diameter: 32, 29, 27.5, 700c, or 650b.
tire_width_mmint54Actual width in mm (18 to 75). Drives tire-volume scaling and setup strategy.
rim_internal_width_mmint | nullnullRim internal width in mm (10 to 45). Used for volume support and rim-width mismatch checks; defaults by bike category in trail_scout_simple.
casing_typestringtrailCasing stiffness class: xc, trail, enduro, or dh. Stiffer casings require less pressure for the same support.
tubelessbooltrueTrue for tubeless; false for inner tubes, which require roughly 18% more pressure.
is_ebikeboolfalseTriggers battery consumption logic.
battery_whint625Battery capacity in Wh (required if is_ebike is true).
motor_power_limit_wint | nullnullOptional hardware motor continuous power limit in Watts. When omitted, battery estimation uses a conservative heuristic fallback.

MissionConstraints

FieldTypeDefaultDescription
total_length_kmint30The total distance of the round trip in kilometers (e.g., 25.0).
profilestringcycling-mountainORS routing profile (cycling-mountain, cycling-road, cycling-regular, cycling-electric).
surface_preferencestringneutralUser preference for road vs off-road surfaces (neutral, prefer_paved, avoid_unpaved).
complexityint3Number of waypoints / route-shaping points used to generate the loop (3 to 10); serialized as points. A value of 4 or 5 can also raise the reported difficulty to Advanced or Expert.
seedint42Randomizer seed used to reproduce specific route variations.
assist_modestringEcoDefines the motor assistance profile (Eco/eco, Trail/trail, Boost/boost) and influences e-bike battery consumption estimates.
direction_biaslist[string][]Preferred geographic route bias. Accepted values: north, south, east, west, for example ["south"] or ["south", "east"].
avoid_urbanboolfalseBias route generation away from dense urban sections when possible. Combined with prefer_rural, priority_mode=ride_character_first and an off-road bike type, this also ranks already-fetched ORS candidates by off-road share without extra routing requests.
prefer_ruralboolfalseBias route generation toward quieter countryside roads and lower-density riding environments when possible. See avoid_urban for the off-road candidate ranking behavior.
distance_flex_percentint10Allowed flexibility around the requested target distance when route character matters more than exact mileage.
priority_modestringbalancedOptimization mode for route generation: balanced, distance_first, or ride_character_first.

RouteGeometry

FieldTypeDefaultDescription
coordinateslist[list[float]]... A list of GPS points in GeoJSON format. Each sub-list represents a coordinate triplet: [longitude, latitude, elevation]. This sequence is processed by the offline Terrain Truth Engine to cap implausible steps, smooth elevation, detect climbs and compute Haversine geodesic distances.

MudIntelligence

Field Type Default Description
score float - Raw TAEL™ moisture index in mm (heuristic, not a 1–100 score). The tire-setup model normalizes it to a 0.0-1.0 mud index (score / 20, clamped) for flotation and knob decisions.
label string - Qualitative risk label based on the score (e.g., 'Low', 'High', 'Extreme').
traction_risk string - Assessment of mechanical tire grip and slip probability. Hard surfaces report wet-pavement grip loss; unpaved surfaces report mud packing risk.
trail_damage_risk string - Risk of creating ruts or damaging trail integrity due to soft ground conditions.
dry_time_eta string - Estimated time (e.g., '24h', 'Ready Now') until the trail returns to dry/optimal conditions.

MudTactical

FieldTypeDefaultDescription
surface_typestring-Normalized TAEL soil key for the dominant route surface. Display labels are mapped to soil types: Paved/Concrete become asphalt, Unpaved/Unmapped/Mixed become dirt.
mud_risk_numericfloat-Raw TAEL™ moisture index in mm (heuristic reservoir value; higher means wetter). Not a 1–100 score and not ground truth.
mud_risk_scorestring-Qualitative risk label from heuristic thresholds (configurable in model config; default Low<4, Medium<12, High<20, Extreme>=20 mm).
traction_riskdict[string, string]-Surface-aware grip assessment. On asphalt/concrete the level is capped at Medium and reports wet-tarmac or aquaplaning advice instead of mud packing.
trail_damage_riskdict[string, string]-Risk of trail degradation, including probability of rut formation and erosion.
dry_time_etastring-Estimated time until the trail surface is considered 'ready' or 'optimal' for riding.

MudRiskAnalysis

Field Type Default Description
statusstring-Analysis status identifier (Success or Error).
messagestring | nullnullError details when status is Error.
next_stepstring | nullnullActionable next step when status is Error.
metadataobject{}Model version, confidence, basis, limitations, thresholds_mm and predictive flags.
environmental_contextobject{}Soil moisture, 72h rainfall, and heuristic terrain/drainage context (avg_slope_pct, max_slope_pct, soil_drainage_class, drainage_proxy, drainage_factor). drainage_proxy is inferred from surface+slope and is not soil ground truth.
tactical_analysisMudTactical | nullnullGranular mud/traction/trail-damage assessment; null on Error.

ClimbDetail

Field Type Default Description
start_indexint-Zero-based elevation-profile sample index where the climb starts.
end_indexint-Zero-based elevation-profile sample index where the climb ends.
length_mfloat-Ground length of the climb in meters.
gain_mfloat-Elevation gained on this climb in meters.
avg_gradientfloat-Average gradient of the climb in percent.
max_gradientfloat-Steepest positive pitch inside the climb in percent.
summit_elevation_mfloat-Elevation at the climb summit in meters.
fiets_indexfloat-FIETS difficulty index derived from gain, length and summit altitude.
categorystring-FIETS-derived category, for example C3 - Challenging or Hors Catégorie (HC).

TechnicalDifficulty

Field Type Default Description
labelstring-Estimated or tagged technical grade, for example S2 - Technical.
confidencefloat-Confidence in the grade from 0.0 to 1.0.
sourcestring-Grade provenance, for example osm:mtb_scale, inferred:surface+waytype or missing.

TerrainAnalysis

Field Type Default Description
total_ascent_mfloat-Ascent summed from significant elevation-profile segments in meters.
max_gradientfloat-Steepest positive gradient found anywhere on the route in percent.
avg_gradientfloat-Total ascent divided by analyzed profile length in percent.
avg_climb_gradientfloat-Weighted average gradient of the detected significant climbs in percent.
profile_length_mfloat-Ground length of the analyzed elevation profile in meters.
climbslist[ClimbDetail]-Geometry-detected significant climbs sorted along the route. This is the single canonical climb list.
climb_categorystring-Hardest FIETS-derived category on the route, or Flat / Rolling.
data_confidencefloat-Heuristic confidence in elevation-derived metrics from 0.0 to 1.0 (density + step stability).
data_confidence_basisstring | nullnullExplains that data_confidence is a heuristic, not a statistical confidence interval or DEM vertical-error bound.
technical_difficultyTechnicalDifficulty-Technical grade and its provenance.
profile_pointsint-Number of usable elevation samples in the route geometry.
noise_floor_mfloat-Adaptive hysteresis threshold used for climb segmentation in meters.
micro_spikesboolean-True when a positive pitch of 20% or more was detected.
warningslist[string]-Tactical warnings derived from the terrain profile, for example hike-a-bike alerts.

TacticalBriefing

Field Type Default Description
distance_km float - Total route distance in kilometers, measured from the selected route geometry that is also exported to GPX, map and altimetry.
elevation_gain_m int - Ascent derived from significant elevation-profile segments by the Terrain Truth Engine, rounded to meters.
climb_category string - Hardest FIETS-derived climb category detected on the route, or Flat / Rolling.
avg_gradient string - Total ascent divided by analyzed profile length, rendered as a percentage string.
avg_climb_gradient string - Weighted gradient of the detected significant climbs, rendered as a percentage string.
mud_intelligence MudIntelligence - Ground saturation analytics, soil condition, and TAEL™ index prediction.
terrain_analysis TerrainAnalysis | null null Full geometry-derived terrain intelligence: true ascent, max gradient, FIETS climb list, technical grade and data confidence.
max_gradient float | null null Steepest positive gradient found anywhere on the route in percent.
data_confidence float | null null Heuristic confidence in the elevation-derived terrain metrics from 0.0 to 1.0.
technical_difficulty TechnicalDifficulty | null null Technical grade inferred from OSM tags and gradient, including its confidence and source.

TireSetupRecommendation

FieldTypeDefaultDescription
wheel_labelstring-Wheel diameter label used in the tactical display (e.g. 29, 700c).
tire_width_mmint-Actual tire width in millimeters used for the calculation.
rim_internal_width_mmint | nullnullRim internal width used for volume support and mismatch checks.
casing_typestring-Casing stiffness class applied (xc, trail, enduro, dh).
tubelessboolean-Whether a tubeless setup was assumed; tubes add roughly 18% pressure.
psi_frontfloat-Recommended front tire pressure in PSI.
psi_rearfloat-Recommended rear tire pressure in PSI.
bar_frontfloat-Recommended front tire pressure in bar.
bar_rearfloat-Recommended rear tire pressure in bar.
strategystring-Dominant optimization: Standard, Mud Flotation, Compliance, Efficiency, or Pinch-Flat Protection.
load_splitdict[string, float]-Front/rear load share: 0.45/0.55 for road and gravel, 0.40/0.60 for MTB, E-MTB and enduro.
knob_choicestring-Suggested tread pattern: Mud Spikes, Semi-Slick, or All-Terrain / Trail.
advicelist[string][]Actionable equipment advice, including inserts and tubeless conversion for S3+ terrain.
warningslist[string][]Setup-specific warnings such as pinch-flat risk or rim-width mismatch.
confidencestring | nullnullConfidence in the recommendation: low for the current heuristic, uncalibrated model.
model_basisstring | nullnullShort description of the model and its calibration status.
tactical_displaystring-Human-readable string with differential pressures, for example F: 20.0 PSI | R: 25.5 PSI (1.38/1.76 bar).

MechanicalSetup

Field Type Default Description
compatible boolean - Flag indicating if the user's bike setup is safely suitable for the route terrain. Rim-width mismatch is warning-only and does not set this to false.
setup_details TireSetupRecommendation - Structured differential front/rear pressure recommendation from the tire-volume and load-distribution model.
bike_type string - The specific category of bicycle analyzed (e.g., 'mtb', 'road', 'gravel').
safety_warnings list[string] - Critical alerts regarding technical difficulty, pinch-flat risk, or environmental hazards.

SurfaceEntry

Field Type Default Description
type string - Normalized surface classification (e.g., 'Paved', 'Grass', 'Unpaved').
percentage string - The portion of total distance represented by this surface type (e.g., "35.8%").

EmtbMetrics

Field Type Default Description
estimated_drain_wh float - Predicted total energy consumption for the mission in Watt-hours.
remaining_battery_pct float - Estimated battery percentage remaining upon reaching the destination.
safety_buffer_status string - Safety assessment (e.g., 'SAFE', 'CRITICAL') based on remaining capacity.
usable_wh_at_temp float - Battery capacity (Wh) adjusted for thermal impact on cell efficiency.

EmtbPower

Field Type Default Description
gravity_resistance float - Power in Watts required to overcome elevation gain based on total system weight.
rolling_resistance float - Power in Watts required to overcome friction based on surface type and tires.
aerodynamic_drag float - Power in Watts required to overcome air resistance at predicted speeds.
rider_contribution int - Estimated average human power output (Watts) provided by the cyclist.
motor_net_output int - Required average motor assistance (Watts) to maintain the mission pace.

EmtbTactical

Field Type Default Description
status string - Analysis status indicating if E-MTB simulation was successful.
battery_metrics EmtbMetrics - Detailed battery drain, safety buffers, and thermal capacity adjustments.
power_breakdown_w EmtbPower - Physical force breakdown (Watts) including drag, gravity, and friction.
tactical_advice string - E-MTB specific guidance on mode selection, pacing, and battery management.
assumptions object | null null Heuristic assumptions and confidence: speed, temperature, rider FTP/intensity, assist, motor limit, mud index, model basis.

WeatherSnapshot

FieldTypeDefaultDescription
timestring-Local time of the forecast snapshot in HH:MM format.
tempfloat-Ambient air temperature in °C.
app_tempfloat-Apparent (feels-like) temperature in °C.
rain_probint-Probability of precipitation as a percentage.
rain_mmfloat-Expected rainfall volume in millimeters.
windfloat-Average sustained wind speed in km/h.
gustsfloat-Maximum predicted wind gust speed in km/h.
wind_directionint-Wind bearing in degrees clockwise from north.
weather_codeint | nullnullWMO weather interpretation code reported by Open-Meteo.
conditionstring | nullnullPlain-language description of the WMO code.

ReferenceConditions

FieldTypeDefaultDescription
temp_actualfloat-Air temperature in °C at the requested reference hour.
temp_apparentfloat-Apparent temperature in °C at the reference hour.
rain_probabilityint-Precipitation probability at the reference hour.
precipitation_mmfloat-Rainfall in millimeters at the reference hour.
wind_speedfloat-Wind speed in km/h at the reference hour.
wind_gustsfloat-Wind gusts in km/h at the reference hour.
wind_directionint-Wind bearing in degrees at the reference hour.
reference_hour_localstring-Local reference hour in HH:MM format.
temp_maxfloat-Highest forecast temperature of the analyzed day.
weather_codeint | nullnullWMO code at the reference hour.
conditionstring | nullnullDescription of the reference WMO code.
tempfloat | nullnullMean temperature after ride-window filtering.
wind_dir_degreesint | nullnullCircular mean wind bearing after ride-window filtering, not an arithmetic midpoint.
wind_direction_ambiguousbooleanfalseTrue when opposing directions make the circular mean undefined.
reference_hourstring | nullnullLabel of the filtered ride window.

SafetyAdvice

FieldTypeDefaultDescription
statusstring-Verdict indicator: [GO], [WATCH], [CAUTION], [NOT RECOMMENDED] or [UNAVAILABLE].
messagestring-Human-readable assessment from the worst hourly slot of the analyzed day. Never reports "ideal conditions" when forecast data is missing.
wind_risk_scorefloat | nullnullWind index computed as 0.4 × wind + 0.6 × gusts from the worst hour; above 55 the advice becomes [NOT RECOMMENDED]. Null when data is unavailable.
gear_advicestring | nullnullRecommended clothing layers for the coldest apparent temperature. Null when data is unavailable.
condition_at_peak_riskstring | nullnullDescriptive WMO condition at the peak-risk hour; context only, never used to override a threshold.

NutritionBriefing

Field Type Default Description
fluidsobject-Total liters and hourly intake rate (ml/h).
carbohydratesobject-Total grams and hourly target (g/h) with absorption ratio.
electrolytesobject-Total and hourly sodium/salt requirements (mg).
tactical_advicelist[string]-Critical nutrition alerts (e.g., Bonk Risk, Heat Stress).
data_basisstring | nullnullEvidence basis for the fluid, carbohydrate and sodium targets.
estimate_confidencestring | nullnullConfidence in the fluid target: low for estimates, moderate when measured.
uncertainty_notestring | nullnullWhat the plan cannot resolve without an individual sweat test.
inputs_usedobject | nullnullNormalised inputs and their measurement source.
referenceslist[string] | nullnullPublished ranges informing the planning heuristics.

ClimbMetrics

Field Type Default Description
km_startfloat-Distance from the start of the track where the climb begins.
dist_kmfloat-Total length of the specific climbing sector in kilometers.
gain_mfloat-Total vertical ascent (D+) of the climb in meters.
avg_gradefloat-Average gradient percentage for the entire duration of the sector.
categorystring-BikeScout heuristic climb category (e.g., 'Cat 4', 'Cat 1', 'HC'). Not an official UCI race classification.
category_systemstring | null"bikescout_heuristic"Classification system used for the category.

PerformanceSim

Field Type Default Description
climbstring-Identifier for the climb including location name and UCI category.
est_time_minfloat-Estimated time in minutes to complete the sector at the given intensity.
est_vamint-Vertical Ascent Meters per hour (VAM) prediction.
target_wkgfloat-Required Power-to-Weight ratio (W/kg) for the baseline simulation.
weather_adjusted_wkgfloat-W/kg requirement adjusted for wind resistance and air density.

TacticalActionZone

Field Type Default Description
kmfloat-Exact kilometer mark where the zone or incident starts.
gradefloat-Local extreme gradient (steepest ramp) within the zone.
typestring-Classification (e.g., 'Explosive Wall', 'Technical Descent', 'Cobbled Sector').
difficultystring-Combined technical and physical difficulty assessment.

WeatherContext

Field Type Default Description
date_referencedstring-The date used for the thermal analysis.
max_temp_detectedstring-Peak temperature detected in the activity window (e.g., 16.2°C).
temperature_basisstring | nullnullWhere the temperature came from: ride_window, reference_fallback or default.
is_future_eventbool-True when the analysis is based on a forecast rather than current conditions.

EnvironmentalBriefing

Field Type Default Description
messagestring | nullnullContextual planning/caution message.
rain_avgstring | nullnullAverage probability of precipitation during the mission window.
wind_maxstring | nullnullMaximum expected wind speed (sustained or gust peak).
temp_avgstring | nullnullAverage ambient temperature predicted for the activity duration.
mud_score_mmnumber | nullnullTAEL mud moisture index in mm when available; null otherwise.
mud_availableboolean | nullnullWhether mud analysis was available for scoring.

PlannerReport

Field Type Default Description
verdictstring-Final tactical decision: GO, WATCH, or NO-GO.
tactical_colorstring-Visual risk indicator (e.g., 'GREEN', 'YELLOW', 'RED').
confidence_scorestring-AI confidence level (0-100) in the accuracy of the prediction.
best_windowstring-The optimal time range identified for the best possible riding conditions.
environmental_briefingEnvironmentalBriefing-Aggregated summary of primary weather conditions.
mud_risk_impactstring-Predicted soil saturation impact on speed, safety, and trail integrity.

MissionConditions

Field Type Default Description
weatherlist[WeatherSnapshot] | nullnullHourly weather forecast snapshots for the mission duration.
mud_riskMudRiskAnalysis | nullnullTechnical analysis of soil saturation and trail rideability.
max_temp_detectedstring-The peak temperature identified within the activity window.
safety_adviceSafetyAdvice | nullnullCritical safety briefing including gear recommendations and wind risk.

Amenity

Field Type Default Description
namestring-The name of the point of interest (e.g., 'Water Fountain', 'Bike Shop').
typestring-The category of the amenity for tactical filtering.
distance_mint-Distance from the sampled route/start point in meters.
route_kmfloat | nullnullApproximate route progress in km where the POI was found (e.g. km 23 of 40); null when unknown.
locationdict[string, float]-The exact GPS coordinates (lat/lon) of the amenity.
opening_hoursstring | nullnullOSM opening_hours tag when available; null if unknown.
drinking_waterstring | nullnullOSM drinking_water tag when available; null if unknown.
water_sourcestring | nullnullOSM water source/fountain tag when available.
potabilitystring | nullnullPotability hint for water POIs: potable_tagged, not_potable_tagged, unknown_verify, or null.

NutritionPlanWrapper

Field Type Default Description
statusstring-Calculation status of the nutrition engine.
error_messagestring | nullnullReason why the nutrition engine rejected the inputs.
mission_nutrition_briefingNutritionBriefing-Detailed fueling and hydration strategy.

MissionLogistics

Field Type Default Description
nutrition_planNutritionPlanWrapper | nullnullThe physiological fueling plan including fluids, carbs, and electrolytes.
nearby_amenitieslist[Amenity] | nullnullA list of strategic points detected along or near the route.

RouteSurface

Field Type Default Description
profile_used string - The ORS profile used to generate the selected route (e.g., cycling-mountain, cycling-road). Surface analysis reuses that route's geometry and does not open a second routing request.
metadata object - Technical metadata containing timestamps, engine versions, API flags and elevation_source for the terrain engine. It also includes offroad_share_percent (share of the selected route on unpaved/gravel/dirt/grass surfaces) and, when an off-road ride was requested, offroad_request_status (met/not_met) plus offroad_request_note. The note is advisory only: no further ORS route is requested.
tactical_briefing TacticalBriefing - Core metrics including distance, elevation gain, and TAEL™ mud intelligence.
mechanical_setup MechanicalSetup - Technical recommendations for tire pressure and setup compatibility for the terrain.
surface_breakdown list[SurfaceEntry] - A detailed statistical breakdown of normalized surface types along the route.
emtb_tactical EmtbTactical | null null Optional battery and power physics metrics for E-MTB profiles.

GeocodingResponse

Field Type Default Description
payload_version string - The BikeScout protocol version for client-side compatibility.
status string - Operation status indicator (e.g., 'Success', 'Error').
lat float - WGS84 Latitude of the identified location.
lon float - WGS84 Longitude of the identified location.
display_name string - Full human-readable address or localized place name.
place_class string - OSM Top-level classification (mapped from class).
place_type string - Specific location sub-type (mapped from type).
importance float - Search relevance score (0.0 to 1.0) based on location popularity.

TacticalForecastResponse

Field Type Default Description
payload_version string - The BikeScout protocol version for client-side compatibility.
status string - Current status of the weather service provider and data availability.
error_message string | null null Diagnostic reason returned when the weather service reports Error, including invalid coordinates, hour or provider payload.
metadata object - Location, timezone, Open-Meteo source, analyzed scope and first/last hourly timestamps.
tactical_forecast list[WeatherSnapshot] - Numeric hourly breakdown for the requested day, including WMO codes and descriptions.
reference_conditions ReferenceConditions - Validated reference-hour values plus any ride-window aggregates.
safety_advice SafetyAdvice - Strategic safety briefing covering risks like crosswinds, thermal strain, or lightning.

RouteSurfaceResponse

Field Type Default Description
payload_version string - The BikeScout protocol version for client-side compatibility.
status string - Overall operation status indicator (e.g., 'Success', 'Error').
profile_used string - The specific routing profile applied to the analysis (e.g., 'cycling-mountain').
metadata object - Technical metadata including timestamps, API flags, and processing logs.
tactical_briefing TacticalBriefing - Core mission metrics including distance, elevation gain, and mud/soil intelligence.
mechanical_setup MechanicalSetup - Differential front/rear tire pressure, load distribution, casing and setup compatibility recommendations.
surface_breakdown list[SurfaceEntry] - Aggregated and normalized statistics of all terrain types encountered.
emtb_tactical EmtbTactical | null null Optional power and battery metrics; only populated if is_ebike is true.

RouteInfo

Field Type Default Description
route_typestring-The specific cycling activity profile (e.g., 'cycling-road', 'cycling-mountain').
distance_kmfloat-The total length in kilometers of the selected route whose geometry is exported to GPX, map and altimetry.
ascent_mint-Total vertical elevation gain in meters, derived by the Terrain Truth Engine from the same exported route geometry when surface analysis succeeds.
difficultystring-Overall rating from distance, ascent, sustained climb gradient and requested complexity. A complexity of 4 or 5 raises it to Advanced or Expert even on a shorter route.
surface_analysisRouteSurface | nullnullA detailed breakdown of surface compositions, terrain intelligence and traction indices.
max_gradientfloat | nullnullSteepest positive gradient found anywhere on the route in percent.
climb_listlist[ClimbDetail] | nullnullPresentation view of surface_analysis.tactical_briefing.terrain_analysis.climbs; mirrors the canonical list instead of duplicating it inside each nested block.
data_confidencefloat | nullnullConfidence in the elevation-derived terrain metrics from 0.0 to 1.0.

FullMissionBriefingResponse

Field Type Default Description
payload_versionstring-BikeScout protocol version.
statusstring-Operation status (Success/Error).
target_datestring | nullnullAnalysis target date (YYYY-MM-DD) used by weather, mud and planning tools. Default is tomorrow; max 5 days ahead.
error_messagestring | nullnullReason why the mission briefing could not be completed.
infoRouteInfo | nullnullStructured data regarding the route's morphology and difficulty.
conditionsMissionConditions | nullnullEnvironmental analysis synchronized with the mission time window.
logisticsMissionLogistics | nullnullTactical recommendations for mechanical setup, nutrition, and timing.
map_pathstring | nullnullThe local file path for the static map image of the route.
mcp_resource_uri_mapstring | nullnullThe MCP URI for direct map layer access.
map_style_appliedstring | nullnullMap rendering style actually applied: gradient or solid.
map_attributionstring | nullnullAttribution text for map tiles/data (e.g. OpenStreetMap contributors).
gpx_export_pathstring | nullnullThe local file path of the generated GPX file.
mcp_resource_uri_gpxstring | nullnullThe MCP URI for downloading the GPX mission file.
elevation_profile_pathstring | nullnullThe local file path for the elevation profile chart.
mcp_resource_uri_elevation_profilestring | nullnullThe MCP URI for the visual altimetry analysis.
elevation_sourcestring | nullnullCredit for the elevation data behind the altimetry chart.
elevation_samples_totalinteger | nullnullNumber of elevation samples considered for the altimetry chart.
elevation_samples_interpolatedinteger | nullnullNumber of elevation samples estimated from neighbouring values.
elevation_uncertaintystring | nullnullExplanation of which elevation samples are estimates.
elevation_errorstring | nullnullReason why the elevation profile was omitted.
nutrition_errorstring | nullnullReason why the nutrition plan was omitted.

HydrationScoutResponse

Field Type Default Description
payload_versionstring-BikeScout protocol version.
statusstring-Operation status (Success/Error).
weather_contextWeatherContext-Environmental factors that influenced the hydration/sodium calculation.
mission_nutrition_briefingNutritionBriefing-Detailed fluid, carb, and electrolyte plan.
error_messagestring | nullnullReason why the nutrition engine rejected the inputs.

StrategicPlannerResponse

Field Type Default Description
payload_versionstring-The BikeScout protocol version for client-side compatibility.
statusstring-Operation status indicator (e.g., 'Success', 'Error').
messagestring | nullnullError message when status is Error.
next_stepstring | nullnullActionable next step when status is Error.
metadataobject{}Analyzed date, surface, solar window, requested duration, mud availability/confidence.
planner_reportPlannerReport | nullnullStrategic assessment and timing; null on Error.

GpxRaceAuditResponse

Field Type Default Description
payload_versionstring-The BikeScout Protocol version for client-side compatibility.
statusstring-Overall success/error indicator of the race analysis engine.
modestring-Selected activity mode for physics engine logic ('ROAD' or 'MTB').
target_datestring-Date used for synchronizing weather, wind, and mud impact models.
track_metricsdict-Dictionary of core track data: distance, total ascent, and peak altitude.
planning_toolsobject-Container for weather snapshots, nutrition strategy, and mud risk analysis.
climb_analysislist[ClimbMetrics]-List of all detected climbing sectors with BikeScout heuristic categorization (not official UCI race classification).
performance_simulationlist[PerformanceSim]-Climb-by-climb power, VAM, and timing estimates.
tactical_alertslist[dict]-Specific alerts for race dynamics (e.g., 'ECHELON RISK', 'HEADWIND SECTOR').
pre_climb_positioninglist[dict]-Strategic points where the rider should optimize pack position.
tactical_action_zoneslist[TacticalActionZone]-Key points designated for potential attacks or extreme technical caution.
report_pathstringnullLocal filesystem path to the generated PDF race book/roadbook, if requested.
mcp_resource_uri_reportstringnullMCP resource URI for the generated PDF race book/roadbook (bikescout://race/{filename}), if requested.

Skills

Domain skills provide specialized guidance for terrain, safety, and mechanical workflows. Skills complement the MCP API; they do not replace tool contracts.

Skill ID Description
Arenberg arenberg a tactical cycling director and equipment specialist for the **Northern French Pavé** (Hauts-de-France), specifically focusing on the **Trouée d'Arenberg** and the Paris-Roubaix sectors.
Castelliromani castelliromani a local Italian MTB expert and tactical guide for the **Castelli Romani Regional Park** (Colli Albani), located just south of Rome.
Derby derby a professional MTB guide and "Flow State" specialist for **Blue Derby**, Tasmania—Australia’s premier mountain bike destination.
Dolomites dolomites a professional alpine MTB and Road cycling guide specialized in the Dolomites (Dolomiti), Italy.
Finaleligure finaleligure a professional Enduro guide and local trail expert for **Finale Ligure**, Italy—the world's premier MTB destination.
Mechanical Setup mechanical-setup Prefer the pressure and compatibility data in `info.surface_analysis.mechanical_setup`
Moab moab a professional MTB guide and high-desert survival expert specialized in the **Moab, Utah** area.
Safety safety This skill defines the technical resources, safety protocols, and mechanical baselines for the BikeScout ecosystem. The agent must use these guidelines to validate rider readiness and equipment setup.
Shimanamikaido shimanamikaido a high-end cycle-touring and road specialist for the **Shimanami Kaido**, the spectacular 70km sea route connecting Japan's main island (Honshu) to Shikoku.