Skip to main content
Glama

Analyze activity or route

analyze_activity

Analyze supplied GPX/FIT directly with the browser's canonical pipeline; no catalog search or runner profile is needed. Accept inline course_file, URL, or artifact source. Existing CRSProf is preserved and summarized. Returns job plus a bounded structured summary, units, missing-data warnings and complete CRSProf artifact. Defaults: moving threshold 0.25 m/s, minimum stop 30 s, merge distance 60 m with combined-speed guard. Detected stop elapsed may include short moving portions; it is not total non-moving time. No timestamp means no invented pace/time. Hosted clients without file-byte access or direct upload connectivity should send the user to the fixed page https://courseprofiler.com/agent-upload.html. The page creates the private upload session; the user copies the returned artifact ID into chat. MCP does not create a session-specific browser link. Inspect job.status/errors; this call currently runs analysis synchronously.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNo
optionsNo
course_fileNoInline GPX/FIT content or base64; use an artifact from agent-upload.html if the client cannot read bytes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / job / 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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Despite having annotations (readOnlyHint false, openWorldHint true, etc.), the description adds substantial behavioral context: it preserves and summarizes existing CRSProf, returns a bounded structured summary with units and missing-data warnings, explains stop detection caveats, and clarifies that missing timestamps do not produce invented pace/time. It also discloses synchronous execution and the fallback flow, going well beyond what annotations provide.

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?

The description is dense but well-organized: core purpose is front-loaded, then defaults, caveats, fallback, and execution details follow. Each sentence contributes critical operational information, so the length is justified even if it could be trimmed slightly.

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 (three nested object parameters, no required fields, multiple source kinds) and the presence of an output schema, the description covers all necessary aspects: input formats, defaults, return contents, error handling, synchronous behavior, and a precise fallback for hosted clients. An agent can confidently select and invoke this tool from the description alone.

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 covers only 33% of parameters with descriptions, but the description compensates by explaining defaults (moving threshold 0.25 m/s, minimum stop 30 s, merge distance 60 m) and contextualizing the source and course_file parameters (e.g., inline content vs. artifact ID, fallback for hosted clients). This adds meaning beyond the bare schema, though it does not detail every option nuance.

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–resource pairing: 'Analyze supplied GPX/FIT directly with the browser's canonical pipeline,' and immediately distinguishes it from catalog search or runner profile generation. This separates it from siblings like search_race_catalog and generate_runner_profile without ambiguity.

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?

The description clearly states when to use the tool (direct analysis of GPX/FIT) and when to avoid it (hosted clients without file access, which should direct users to the fixed upload page). It also notes synchronous execution and job inspection. However, it does not explicitly name alternative tools or outline exhaustive when-not-to-use conditions, so it is strong but not fully explicit.

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