Import course
import_courseImport a fetchable official GPX/FIT/CRSProf URL, official ZIP containing exactly one GPX, uploaded source_file artifact, raw JSON payload, or inline/proxied course_file into a CRSProf artifact. Third-party route hosts such as Wikiloc may return 403 to server fetches; when a URL is blocked, ask the user to download/upload the file through POST /api/artifact-uploads outside MCP and pass the returned source_file artifact ID as source.kind=artifact. Use this on catalog misses before waypoint enrichment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| options | No | ||
| course_file | No | Inline/proxied GPX, FIT, CRSProf, or ZIP-with-one-GPX file object to import into CRSProf. Use content for text GPX/XML/JSON/CRSProf, base64 for FIT/ZIP/binary, or url only when the URL is fetchable by CourseProfiler. Bare local filesystem paths and file:// URLs are rejected; hosted clients that cannot proxy file bytes must use the REST POST /api/artifact-uploads flow outside MCP first, then pass the returned source_file artifact via source.kind=artifact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| job_id | Yes | CourseProfiler job ID to poll with get_job. | |
| status | Yes | Job status, e.g. queued, running, succeeded, or failed. | |
| progress | No | ||
| warnings | No | ||
| created_at | No | ISO-8601 creation timestamp. | |
| expires_at | No | ISO-8601 expiration timestamp. | |
| started_at | No | ISO-8601 start timestamp, when available. | |
| status_url | No | Relative API URL for polling this job. | |
| completed_at | No | ISO-8601 completion timestamp, when available. | |
| result_artifacts | No | Artifacts produced by the job, including role metadata. |