Contour · Capability

Contour Gateway API — HTTPRoute

Contour Gateway API — HTTPRoute. 5 operations. Lead operation: Contour List HTTPRoute resources in a namespace. Self-contained Naftiko capability covering one Contour business surface.

Run with Naftiko ContourHTTPRoute

What You Can Do

GET
Listnamespacedhttproute — Contour List HTTPRoute resources in a namespace
/v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes
POST
Createnamespacedhttproute — Contour Create an HTTPRoute resource
/v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes
GET
Readnamespacedhttproute — Contour Get a specific HTTPRoute resource
/v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes/{name}
PUT
Replacenamespacedhttproute — Contour Replace an HTTPRoute resource
/v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes/{name}
DELETE
Deletenamespacedhttproute — Contour Delete an HTTPRoute resource
/v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes/{name}

MCP Tools

contour-list-httproute-resources-namespace

Contour List HTTPRoute resources in a namespace

read-only idempotent
contour-create-httproute-resource

Contour Create an HTTPRoute resource

contour-get-specific-httproute-resource

Contour Get a specific HTTPRoute resource

read-only idempotent
contour-replace-httproute-resource

Contour Replace an HTTPRoute resource

idempotent
contour-delete-httproute-resource

Contour Delete an HTTPRoute resource

idempotent

Capability Spec

gateway-httproute.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Contour Gateway API — HTTPRoute
  description: 'Contour Gateway API — HTTPRoute. 5 operations. Lead operation: Contour List HTTPRoute resources in a namespace.
    Self-contained Naftiko capability covering one Contour business surface.'
  tags:
  - Contour
  - HTTPRoute
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CONTOUR_API_KEY: CONTOUR_API_KEY
capability:
  consumes:
  - type: http
    namespace: gateway-httproute
    baseUri: https://{kubernetes-api-server}
    description: Contour Gateway API — HTTPRoute business capability. Self-contained, no shared references.
    resources:
    - name: apis-gateway.networking.k8s.io-v1-namespaces-namespace-httproutes
      path: /apis/gateway.networking.k8s.io/v1/namespaces/{namespace}/httproutes
      operations:
      - name: listnamespacedhttproute
        method: GET
        description: Contour List HTTPRoute resources in a namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createnamespacedhttproute
        method: POST
        description: Contour Create an HTTPRoute resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: apis-gateway.networking.k8s.io-v1-namespaces-namespace-httproutes-name
      path: /apis/gateway.networking.k8s.io/v1/namespaces/{namespace}/httproutes/{name}
      operations:
      - name: readnamespacedhttproute
        method: GET
        description: Contour Get a specific HTTPRoute resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: replacenamespacedhttproute
        method: PUT
        description: Contour Replace an HTTPRoute resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletenamespacedhttproute
        method: DELETE
        description: Contour Delete an HTTPRoute resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: gateway-httproute-rest
    port: 8080
    description: REST adapter for Contour Gateway API — HTTPRoute. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes
      name: apis-gateway-networking-k8s-io-v1-namespaces-namespace-httproutes
      description: REST surface for apis-gateway.networking.k8s.io-v1-namespaces-namespace-httproutes.
      operations:
      - method: GET
        name: listnamespacedhttproute
        description: Contour List HTTPRoute resources in a namespace
        call: gateway-httproute.listnamespacedhttproute
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createnamespacedhttproute
        description: Contour Create an HTTPRoute resource
        call: gateway-httproute.createnamespacedhttproute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/gateway-networking-k8s-io/v1/namespaces/{namespace}/httproutes/{name}
      name: apis-gateway-networking-k8s-io-v1-namespaces-namespace-httproutes-name
      description: REST surface for apis-gateway.networking.k8s.io-v1-namespaces-namespace-httproutes-name.
      operations:
      - method: GET
        name: readnamespacedhttproute
        description: Contour Get a specific HTTPRoute resource
        call: gateway-httproute.readnamespacedhttproute
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: replacenamespacedhttproute
        description: Contour Replace an HTTPRoute resource
        call: gateway-httproute.replacenamespacedhttproute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletenamespacedhttproute
        description: Contour Delete an HTTPRoute resource
        call: gateway-httproute.deletenamespacedhttproute
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gateway-httproute-mcp
    port: 9090
    transport: http
    description: MCP adapter for Contour Gateway API — HTTPRoute. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: contour-list-httproute-resources-namespace
      description: Contour List HTTPRoute resources in a namespace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gateway-httproute.listnamespacedhttproute
      outputParameters:
      - type: object
        mapping: $.
    - name: contour-create-httproute-resource
      description: Contour Create an HTTPRoute resource
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gateway-httproute.createnamespacedhttproute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: contour-get-specific-httproute-resource
      description: Contour Get a specific HTTPRoute resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gateway-httproute.readnamespacedhttproute
      outputParameters:
      - type: object
        mapping: $.
    - name: contour-replace-httproute-resource
      description: Contour Replace an HTTPRoute resource
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gateway-httproute.replacenamespacedhttproute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: contour-delete-httproute-resource
      description: Contour Delete an HTTPRoute resource
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: gateway-httproute.deletenamespacedhttproute
      outputParameters:
      - type: object
        mapping: $.