Red Hat · Capability

Red Hat Ansible Automation Platform API — Inventories

Red Hat Ansible Automation Platform API — Inventories. 2 operations. Lead operation: Red Hat List Inventories. Self-contained Naftiko capability covering one Red Hat business surface.

Run with Naftiko Red HatInventories

What You Can Do

GET
Listinventories — Red Hat List Inventories
/v1/api/v2/inventories
POST
Createinventory — Red Hat Create an Inventory
/v1/api/v2/inventories

MCP Tools

red-hat-list-inventories

Red Hat List Inventories

read-only idempotent
red-hat-create-inventory

Red Hat Create an Inventory

Capability Spec

ansible-automation-platform-inventories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Red Hat Ansible Automation Platform API — Inventories
  description: 'Red Hat Ansible Automation Platform API — Inventories. 2 operations. Lead operation: Red Hat List Inventories.
    Self-contained Naftiko capability covering one Red Hat business surface.'
  tags:
  - Red Hat
  - Inventories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RED_HAT_API_KEY: RED_HAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: ansible-automation-platform-inventories
    baseUri: https://ansible-platform.example.com
    description: Red Hat Ansible Automation Platform API — Inventories business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-inventories
      path: /api/v2/inventories/
      operations:
      - name: listinventories
        method: GET
        description: Red Hat List Inventories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createinventory
        method: POST
        description: Red Hat Create an Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.RED_HAT_API_KEY}}'
  exposes:
  - type: rest
    namespace: ansible-automation-platform-inventories-rest
    port: 8080
    description: REST adapter for Red Hat Ansible Automation Platform API — Inventories. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/inventories
      name: api-v2-inventories
      description: REST surface for api-v2-inventories.
      operations:
      - method: GET
        name: listinventories
        description: Red Hat List Inventories
        call: ansible-automation-platform-inventories.listinventories
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createinventory
        description: Red Hat Create an Inventory
        call: ansible-automation-platform-inventories.createinventory
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ansible-automation-platform-inventories-mcp
    port: 9090
    transport: http
    description: MCP adapter for Red Hat Ansible Automation Platform API — Inventories. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: red-hat-list-inventories
      description: Red Hat List Inventories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ansible-automation-platform-inventories.listinventories
      outputParameters:
      - type: object
        mapping: $.
    - name: red-hat-create-inventory
      description: Red Hat Create an Inventory
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ansible-automation-platform-inventories.createinventory
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.