Strava · Capability

Strava API — Segment Efforts

Strava API — Segment Efforts. 1 operations. Lead operation: Get Segment Effort. Self-contained Naftiko capability covering one Strava business surface.

Run with Naftiko StravaSegment Efforts

What You Can Do

GET
Getsegmenteffortbyid — Get Segment Effort
/v1/segment-efforts/{id}

MCP Tools

get-segment-effort

Get Segment Effort

read-only idempotent

Capability Spec

strava-segment-efforts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Strava API — Segment Efforts
  description: 'Strava API — Segment Efforts. 1 operations. Lead operation: Get Segment Effort. Self-contained Naftiko capability
    covering one Strava business surface.'
  tags:
  - Strava
  - Segment Efforts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRAVA_API_KEY: STRAVA_API_KEY
capability:
  consumes:
  - type: http
    namespace: strava-segment-efforts
    baseUri: https://www.strava.com/api/v3
    description: Strava API — Segment Efforts business capability. Self-contained, no shared references.
    resources:
    - name: segment_efforts-id
      path: /segment_efforts/{id}
      operations:
      - name: getsegmenteffortbyid
        method: GET
        description: Get Segment Effort
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The identifier of the segment effort
          required: true
    authentication:
      type: bearer
      token: '{{env.STRAVA_API_KEY}}'
  exposes:
  - type: rest
    namespace: strava-segment-efforts-rest
    port: 8080
    description: REST adapter for Strava API — Segment Efforts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/segment-efforts/{id}
      name: segment-efforts-id
      description: REST surface for segment_efforts-id.
      operations:
      - method: GET
        name: getsegmenteffortbyid
        description: Get Segment Effort
        call: strava-segment-efforts.getsegmenteffortbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strava-segment-efforts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Strava API — Segment Efforts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-segment-effort
      description: Get Segment Effort
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strava-segment-efforts.getsegmenteffortbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.