Skip to main content
Glama

Generate runner profile

generate_runner_profile

Generate a segment-evidence USRProf runner profile artifact from uploaded runner evidence or an existing .usrprof source. Confirm profile purpose and evidence selection only if not already explicit. Do not silently use every local file. profile_intent is advisory: the server does not filter sources. Evidence supports pacing, durability, terrain fit, uphill running limits, and confidence; get_runner_profile_requirements explains selection. Accepted evidence includes GPX/FIT/CRSProf activity files, ZIP/TAR/TAR.GZ/TGZ/TAR.XZ/TXZ archives containing those files, and .usrprof files passed as source_file artifacts from POST /api/artifact-uploads, raw_file inline content/base64, or fetchable HTTPS URLs. Archives must use purpose runner_evidence, are expanded server-side, and report skipped nested archives, duplicate contents, unsupported entries, and parse failures by filename/path. For Strava, call build_runner_profile_from_strava and never ask for credentials or tokens. Follow its browser-consent/job flow. Pass the generated usrprof artifact ID to create_race_plan as runner.usrprof_artifact_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourcesYesRunner evidence/profile sources. Use uploaded source_file artifact IDs from POST /api/artifact-uploads with purpose runner_evidence for GPX/FIT/CRSProf activities or ZIP/TAR/TAR.GZ/TGZ/TAR.XZ/TXZ archives containing evidence files; use usrprof_source for .usrprof. Archives are expanded server-side, nested archives are skipped with warnings, exact duplicate contents are skipped, and unsupported/corrupt entries are reported per filename/path. Or use raw_file/url when the MCP client can proxy bytes. Local paths and file:// URLs are not accepted. Choose evidence according to profile_intent; do not blindly include all available files without user approval.
import_optionsNo
profile_intentNoprofile_intent is advisory context for the agent. The server does not filter or select evidence from it; submit only user-approved sources.

Output Schema

TableJSON 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. Changed1 schema field changed
    • addedInput schema / properties / profile_intent / description
      Added value: +"profile_intent is advisory context for the agent. The server does not filter or select evidence from it; submit only user-approved sources."
  3. Changed1 schema field changed
    • changedInput schema / properties / sources / description
      Previous value: -"Runner evidence/profile sources. Use uploaded source_file artifact IDs from POST /api/artifact-uploads with purpose runner_evidence for GPX/FIT/CRSProf activities or usrprof_source for .usrprof, or use raw_file/url when the MCP client can proxy bytes. Local paths and file:// URLs are not accepted. Choose evidence according to profile_intent; do not blindly include all available files without user approval."New value: +"Runner evidence/profile sources. Use uploaded source_file artifact IDs from POST /api/artifact-uploads with purpose runner_evidence for GPX/FIT/CRSProf activities or ZIP/TAR/TAR.GZ/TGZ/TAR.XZ/TXZ archives containing evidence files; use usrprof_source for .usrprof. Archives are expanded server-side, nested archives are skipped with warnings, exact duplicate contents are skipped, and unsupported/corrupt entries are reported per filename/path. Or use raw_file/url when the MCP client can proxy bytes. Local paths and file:// URLs are not accepted. Choose evidence according to profile_intent; do not blindly include all available files without user approval."
  4. Changed2 schema fields changed
    • addedInput schema / properties / profile_intent
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "selection_notes": {
      +      "description": "Evidence selection strategy approved by the user, e.g. recent mountain races only; exclude road 10Ks.",
      +      "type": "string"
      +    },
      +    "target_distance_km": {
      +      "description": "Approximate target distance in km, used by assistants to choose similar evidence.",
      +      "type": "number"
      +    },
      +    "target_elevation_gain_m": {
      +      "description": "Approximate target elevation gain in meters, used by assistants to choose similar evidence.",
      +      "type": "number"
      +    },
      +    "target_race_name": {
      +      "description": "Target race/course name when building a race-specific profile.",
      +      "type": "string"
      +    },
      +    "terrain": {
      +      "description": "Terrain/technicality notes, e.g. technical mountain trail, runnable gravel, high altitude.",
      +      "type": "string"
      +    },
      +    "type": {
      +      "description": "Why this profile is being built. Ask the user before choosing evidence.",
      +      "enum": [
      +        "target_race",
      +        "target_distance",
      +        "general_trail",
      +        "insights_only"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [],
      +  "type": "object"
      +}
    • changedInput schema / properties / sources / description
      Previous value: -"Runner evidence/profile sources. Use uploaded source_file artifact IDs from POST /api/artifact-uploads with purpose runner_evidence for GPX/FIT/CRSProf activities or usrprof_source for .usrprof, or use raw_file/url when the MCP client can proxy bytes. Local paths and file:// URLs are not accepted."New value: +"Runner evidence/profile sources. Use uploaded source_file artifact IDs from POST /api/artifact-uploads with purpose runner_evidence for GPX/FIT/CRSProf activities or usrprof_source for .usrprof, or use raw_file/url when the MCP client can proxy bytes. Local paths and file:// URLs are not accepted. Choose evidence according to profile_intent; do not blindly include all available files without user approval."
  5. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behaviors: profile_intent is advisory and the server does not filter sources, archives are expanded server-side with warnings for skipped or unsupported entries, local paths and file:// URLs are rejected, and Strava credentials/tokens must never be requested. This meaningfully informs an agent's expectations about side effects and data handling.

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

Conciseness5/5

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

The description is dense but every sentence earns its place, front-loading the most critical constraints (confirm evidence, don't blindly include files, advisory profile_intent) before enumerating accepted formats and Strava routing. It avoids restating schema fields and provides cross-tool pointers instead of redundant examples.

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

Completeness5/5

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

Given the tool's complexity—nested schema, multiple source kinds, archive handling, and cross-tool integration—the description covers what an agent needs: evidence selection guidance, source format rules, Strava-specific behavior, and downstream artifact consumption. The existence of an output schema means return-value details need not be repeated in the description.

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?

The schema already documents sources, import_options, and profile_intent in detail, but the description adds operational meaning: what file kinds are accepted, how archives are handled, what evidence should support (pacing, durability, terrain fit, uphill limits, confidence), and that profile_intent is advisory rather than a server-side filter. This compensates for the 67% schema coverage and clarifies how to populate the parameters correctly.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Generate a segment-evidence USRProf runner profile artifact from uploaded runner evidence or an existing .usrprof source.' This clearly differentiates it from sibling tools like build_runner_profile_from_strava, validate_runner_profile, and inspect_runner_profile by naming the exact output artifact and input evidence types.

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

Usage Guidelines5/5

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

The description gives explicit selection criteria and exclusions: confirm purpose and evidence unless already explicit, never silently use all local files, call build_runner_profile_from_strava for Strava data, and consult get_runner_profile_requirements for evidence selection. It also states downstream usage by passing the artifact ID to create_race_plan, leaving little ambiguity about when and how to use this tool.

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