Skip to main content
Glama

Build runner profile from Strava

build_runner_profile_from_strava

Build a USRProf from Strava activities selected for a target course or distance. Ask the user for the target course or distance and, when an existing profile is supplied, explicitly ask whether to merge or replace. Strava credentials are never accepted through MCP: this tool returns a private one-hour browser authorization URL and resumes the same job after authorization. If evidence is insufficient, relay the structured user decision and resume the same job with build_anyway, broaden_filters, or cancel.

Input Schema

NameRequiredDescriptionDefault
courseNo
filtersNo
decisionNo
course_fileNoInline/proxied GPX, FIT, CRSProf, or ZIP-with-one-GPX target course, using the same convention as create_race_plan.
resume_job_idNoExisting waiting Strava profile-build job to resume.
target_distance_mNoTarget distance in metres when no course is supplied. Ask the user before choosing it.
existing_profile_strategyNoRequired whenever existing_usrprof_artifact_id is supplied; ask the user explicitly.
existing_usrprof_artifact_idNoExisting USRProf artifact to merge with or replace.

Output Schema

NameRequiredDescriptionDefault
errorsNo
job_idYesCourseProfiler job ID to poll with get_job.
statusYesJob status, e.g. queued, running, succeeded, or failed.
progressNo
warningsNo
created_atNoISO-8601 creation timestamp.
expires_atNoISO-8601 expiration timestamp.
started_atNoISO-8601 start timestamp, when available.
status_urlNoRelative API URL for polling this job.
completed_atNoISO-8601 completion timestamp, when available.
result_artifactsNoArtifacts produced by the job, including role metadata.
submission_request_idNoRequest ID that originally allocated this job; absent in legacy metadata.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / submission_request_id
      Added value: +{
      +  "description": "Request ID that originally allocated this job; absent in legacy metadata.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / result_artifacts / items / properties / download_url / description
      Previous value: -"Private short-lived download URL. Share only with the user."New value: +"Artifact download URLs are private and short-lived; share them only with the user, verbatim in a code block, not a clickable link. Ask the user to copy the entire URL into their browser address bar. Do not rewrite the URL or add tracking parameters such as utm_source: changes invalidate the signature. If expired, call get_artifact for a fresh URL. This applies only to artifact download_url values, not authorization or upload links."
  3. Changed2 schema fields changed
    • addedInput schema / properties / filters / properties / estimation_model / description
      Added value: +"Optional runner-profile model. Omit for recommended load_response_evidence_v2; load_response_evidence_v3 is explicit and experimental."
    • changedInput schema / properties / filters / properties / estimation_model / enum
      Previous value: -[
      -  "segment_evidence_v1",
      -  "load_response_evidence_v1",
      -  "load_response_evidence_v2",
      -  "load_response_evidence_v3"
      -]New value: +[
      +  "load_response_evidence_v2",
      +  "load_response_evidence_v3"
      +]
  4. Added

TDQS

B3.4/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Description says the tool can replace an existing USRProf, which is a destructive update to that profile. Annotations declare destructiveHint=false, directly contradicting the described replace behavior. Other behavioral details (authorization URL, one-hour expiry, job resumption) are useful but the contradiction forces a score of 1.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the core purpose, then interaction rules, authorization behavior, and the insufficient-evidence branch. Each sentence adds necessary workflow information, though it could be tightened slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complex nested schema, output schema, and openWorld annotations, the description covers the key operational flow: target selection, existing-profile handling, Strava auth handoff, and evidence-driven resumption. It does not explain return values, but an output schema exists, so that omission is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 63%, so the description must compensate. It explains the decision enum values build_anyway, broaden_filters, and cancel, maps target course/distance guidance to target_distance_m/course, and covers merge/replace semantics for existing_profile_strategy. Many filter parameters remain undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description states a specific verb and resource: build a USRProf from Strava activities selected for a target course or distance. The Strava source distinguishes it from sibling profile tools like generate_runner_profile, but it does not explicitly name alternatives or exclusions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear interaction context: ask the user for target course or distance, and when an existing profile is supplied, ask whether to merge or replace. It also explains the insufficient-evidence branch with build_anyway, broaden_filters, or cancel. No explicit when-not or sibling alternatives are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources