Red Hat OpenShift · Capability

Red Hat OpenShift Container Platform API — Routes

Red Hat OpenShift Container Platform API — Routes. 5 operations. Lead operation: List Routes. Self-contained Naftiko capability covering one Red Hat Openshift business surface.

Run with Naftiko Red Hat OpenshiftRoutes

What You Can Do

GET
Listroutes — List Routes
/v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes
POST
Createroute — Create Route
/v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes
GET
Getroute — Get Route
/v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes/{name}
PUT
Updateroute — Update Route
/v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes/{name}
DELETE
Deleteroute — Delete Route
/v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes/{name}

MCP Tools

list-routes

List Routes

read-only idempotent
create-route

Create Route

get-route

Get Route

read-only idempotent
update-route

Update Route

idempotent
delete-route

Delete Route

idempotent

Capability Spec

red-hat-openshift-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Red Hat OpenShift Container Platform API — Routes
  description: 'Red Hat OpenShift Container Platform API — Routes. 5 operations. Lead operation: List Routes. Self-contained
    Naftiko capability covering one Red Hat Openshift business surface.'
  tags:
  - Red Hat Openshift
  - Routes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RED_HAT_OPENSHIFT_API_KEY: RED_HAT_OPENSHIFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: red-hat-openshift-routes
    baseUri: https://api.{cluster}:6443
    description: Red Hat OpenShift Container Platform API — Routes business capability. Self-contained, no shared references.
    resources:
    - name: apis-route.openshift.io-v1-namespaces-namespace-routes
      path: /apis/route.openshift.io/v1/namespaces/{namespace}/routes
      operations:
      - name: listroutes
        method: GET
        description: List Routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createroute
        method: POST
        description: Create Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: apis-route.openshift.io-v1-namespaces-namespace-routes-name
      path: /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name}
      operations:
      - name: getroute
        method: GET
        description: Get Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateroute
        method: PUT
        description: Update Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteroute
        method: DELETE
        description: Delete Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.RED_HAT_OPENSHIFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: red-hat-openshift-routes-rest
    port: 8080
    description: REST adapter for Red Hat OpenShift Container Platform API — Routes. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes
      name: apis-route-openshift-io-v1-namespaces-namespace-routes
      description: REST surface for apis-route.openshift.io-v1-namespaces-namespace-routes.
      operations:
      - method: GET
        name: listroutes
        description: List Routes
        call: red-hat-openshift-routes.listroutes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createroute
        description: Create Route
        call: red-hat-openshift-routes.createroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/route-openshift-io/v1/namespaces/{namespace}/routes/{name}
      name: apis-route-openshift-io-v1-namespaces-namespace-routes-name
      description: REST surface for apis-route.openshift.io-v1-namespaces-namespace-routes-name.
      operations:
      - method: GET
        name: getroute
        description: Get Route
        call: red-hat-openshift-routes.getroute
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateroute
        description: Update Route
        call: red-hat-openshift-routes.updateroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteroute
        description: Delete Route
        call: red-hat-openshift-routes.deleteroute
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: red-hat-openshift-routes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Red Hat OpenShift Container Platform API — Routes. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-routes
      description: List Routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: red-hat-openshift-routes.listroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: create-route
      description: Create Route
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: red-hat-openshift-routes.createroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-route
      description: Get Route
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: red-hat-openshift-routes.getroute
      outputParameters:
      - type: object
        mapping: $.
    - name: update-route
      description: Update Route
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: red-hat-openshift-routes.updateroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-route
      description: Delete Route
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: red-hat-openshift-routes.deleteroute
      outputParameters:
      - type: object
        mapping: $.