Chaos Mesh · Capability

Chaos Mesh Dashboard API — Workflows

Chaos Mesh Dashboard API — Workflows. 5 operations. Lead operation: Chaos Mesh List workflows. Self-contained Naftiko capability covering one Chaos Mesh business surface.

Run with Naftiko Chaos MeshWorkflows

What You Can Do

GET
Listworkflows — Chaos Mesh List workflows
/v1/api/workflows
POST
Createworkflow — Chaos Mesh Create a workflow
/v1/api/workflows
GET
Getworkflow — Chaos Mesh Get a workflow
/v1/api/workflows/{uid}
PUT
Updateworkflow — Chaos Mesh Update a workflow
/v1/api/workflows/{uid}
DELETE
Deleteworkflow — Chaos Mesh Delete a workflow
/v1/api/workflows/{uid}

MCP Tools

chaos-mesh-list-workflows

Chaos Mesh List workflows

read-only idempotent
chaos-mesh-create-workflow

Chaos Mesh Create a workflow

chaos-mesh-get-workflow

Chaos Mesh Get a workflow

read-only idempotent
chaos-mesh-update-workflow

Chaos Mesh Update a workflow

idempotent
chaos-mesh-delete-workflow

Chaos Mesh Delete a workflow

idempotent

Capability Spec

dashboard-workflows-2.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Chaos Mesh Dashboard API — Workflows
  description: 'Chaos Mesh Dashboard API — Workflows. 5 operations. Lead operation: Chaos Mesh List workflows. Self-contained
    Naftiko capability covering one Chaos Mesh business surface.'
  tags:
  - Chaos Mesh
  - Workflows
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHAOS_MESH_API_KEY: CHAOS_MESH_API_KEY
capability:
  consumes:
  - type: http
    namespace: dashboard-workflows-2
    baseUri: http://{dashboardHost}:{dashboardPort}
    description: Chaos Mesh Dashboard API — Workflows business capability. Self-contained, no shared references.
    resources:
    - name: api-workflows
      path: /api/workflows
      operations:
      - name: listworkflows
        method: GET
        description: Chaos Mesh List workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createworkflow
        method: POST
        description: Chaos Mesh Create a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-workflows-uid
      path: /api/workflows/{uid}
      operations:
      - name: getworkflow
        method: GET
        description: Chaos Mesh Get a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateworkflow
        method: PUT
        description: Chaos Mesh Update a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteworkflow
        method: DELETE
        description: Chaos Mesh Delete a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CHAOS_MESH_API_KEY}}'
  exposes:
  - type: rest
    namespace: dashboard-workflows-2-rest
    port: 8080
    description: REST adapter for Chaos Mesh Dashboard API — Workflows. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/workflows
      name: api-workflows
      description: REST surface for api-workflows.
      operations:
      - method: GET
        name: listworkflows
        description: Chaos Mesh List workflows
        call: dashboard-workflows-2.listworkflows
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createworkflow
        description: Chaos Mesh Create a workflow
        call: dashboard-workflows-2.createworkflow
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/{uid}
      name: api-workflows-uid
      description: REST surface for api-workflows-uid.
      operations:
      - method: GET
        name: getworkflow
        description: Chaos Mesh Get a workflow
        call: dashboard-workflows-2.getworkflow
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateworkflow
        description: Chaos Mesh Update a workflow
        call: dashboard-workflows-2.updateworkflow
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteworkflow
        description: Chaos Mesh Delete a workflow
        call: dashboard-workflows-2.deleteworkflow
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: dashboard-workflows-2-mcp
    port: 9090
    transport: http
    description: MCP adapter for Chaos Mesh Dashboard API — Workflows. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: chaos-mesh-list-workflows
      description: Chaos Mesh List workflows
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dashboard-workflows-2.listworkflows
      outputParameters:
      - type: object
        mapping: $.
    - name: chaos-mesh-create-workflow
      description: Chaos Mesh Create a workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: dashboard-workflows-2.createworkflow
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: chaos-mesh-get-workflow
      description: Chaos Mesh Get a workflow
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dashboard-workflows-2.getworkflow
      outputParameters:
      - type: object
        mapping: $.
    - name: chaos-mesh-update-workflow
      description: Chaos Mesh Update a workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: dashboard-workflows-2.updateworkflow
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: chaos-mesh-delete-workflow
      description: Chaos Mesh Delete a workflow
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: dashboard-workflows-2.deleteworkflow
      outputParameters:
      - type: object
        mapping: $.