Strava · Capability

Strava API — Streams

Strava API — Streams. 1 operations. Lead operation: Get Activity Streams. Self-contained Naftiko capability covering one Strava business surface.

Run with Naftiko StravaStreams

What You Can Do

GET
Getactivitystreams — Get Activity Streams
/v1/activities/{id}/streams

MCP Tools

get-activity-streams

Get Activity Streams

read-only idempotent

Capability Spec

strava-streams.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Strava API — Streams
  description: 'Strava API — Streams. 1 operations. Lead operation: Get Activity Streams. Self-contained Naftiko capability
    covering one Strava business surface.'
  tags:
  - Strava
  - Streams
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRAVA_API_KEY: STRAVA_API_KEY
capability:
  consumes:
  - type: http
    namespace: strava-streams
    baseUri: https://www.strava.com/api/v3
    description: Strava API — Streams business capability. Self-contained, no shared references.
    resources:
    - name: activities-id-streams
      path: /activities/{id}/streams
      operations:
      - name: getactivitystreams
        method: GET
        description: Get Activity Streams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The identifier of the activity
          required: true
        - name: keys
          in: query
          type: array
          description: 'Desired stream types (comma-separated): time, latlng, distance, altitude, velocity_smooth, heartrate,
            cadence, watts, temp, moving, grade_smooth'
          required: true
        - name: key_by_type
          in: query
          type: boolean
          description: Must be true (returns stream data keyed by type name)
    authentication:
      type: bearer
      token: '{{env.STRAVA_API_KEY}}'
  exposes:
  - type: rest
    namespace: strava-streams-rest
    port: 8080
    description: REST adapter for Strava API — Streams. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/activities/{id}/streams
      name: activities-id-streams
      description: REST surface for activities-id-streams.
      operations:
      - method: GET
        name: getactivitystreams
        description: Get Activity Streams
        call: strava-streams.getactivitystreams
        with:
          id: rest.id
          keys: rest.keys
          key_by_type: rest.key_by_type
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strava-streams-mcp
    port: 9090
    transport: http
    description: MCP adapter for Strava API — Streams. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-activity-streams
      description: Get Activity Streams
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strava-streams.getactivitystreams
      with:
        id: tools.id
        keys: tools.keys
        key_by_type: tools.key_by_type
      outputParameters:
      - type: object
        mapping: $.