SpaceX API · Capability

SpaceX API — Launchpads

SpaceX API — Launchpads. 2 operations. Lead operation: List All Launchpads. Self-contained Naftiko capability covering one Spacex Api business surface.

Run with Naftiko Spacex ApiLaunchpads

What You Can Do

GET
Listlaunchpads — List All Launchpads
/v1/launchpads
GET
Getlaunchpad — Get Launchpad
/v1/launchpads/{id}

MCP Tools

list-all-launchpads

List All Launchpads

read-only idempotent
get-launchpad

Get Launchpad

read-only idempotent

Capability Spec

spacex-launchpads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SpaceX API — Launchpads
  description: 'SpaceX API — Launchpads. 2 operations. Lead operation: List All Launchpads. Self-contained Naftiko capability
    covering one Spacex Api business surface.'
  tags:
  - Spacex Api
  - Launchpads
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPACEX_API_API_KEY: SPACEX_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: spacex-launchpads
    baseUri: https://api.spacexdata.com/v5
    description: SpaceX API — Launchpads business capability. Self-contained, no shared references.
    resources:
    - name: launchpads
      path: /launchpads
      operations:
      - name: listlaunchpads
        method: GET
        description: List All Launchpads
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: launchpads-id
      path: /launchpads/{id}
      operations:
      - name: getlaunchpad
        method: GET
        description: Get Launchpad
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Unique launchpad identifier
          required: true
  exposes:
  - type: rest
    namespace: spacex-launchpads-rest
    port: 8080
    description: REST adapter for SpaceX API — Launchpads. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/launchpads
      name: launchpads
      description: REST surface for launchpads.
      operations:
      - method: GET
        name: listlaunchpads
        description: List All Launchpads
        call: spacex-launchpads.listlaunchpads
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/launchpads/{id}
      name: launchpads-id
      description: REST surface for launchpads-id.
      operations:
      - method: GET
        name: getlaunchpad
        description: Get Launchpad
        call: spacex-launchpads.getlaunchpad
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: spacex-launchpads-mcp
    port: 9090
    transport: http
    description: MCP adapter for SpaceX API — Launchpads. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-all-launchpads
      description: List All Launchpads
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: spacex-launchpads.listlaunchpads
      outputParameters:
      - type: object
        mapping: $.
    - name: get-launchpad
      description: Get Launchpad
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: spacex-launchpads.getlaunchpad
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.