Rootly · Capability

Rootly API — Workflows

Rootly API — Workflows. 4 operations. Lead operation: List workflows. Self-contained Naftiko capability covering one Rootly business surface.

Run with Naftiko RootlyWorkflows

What You Can Do

GET
Get — List workflows
/v1/workflows
POST
Post — Create workflow
/v1/workflows
GET
Get — Get workflow
/v1/workflows/{id}
PATCH
Patch — Update workflow
/v1/workflows/{id}

MCP Tools

list-workflows

List workflows

read-only idempotent
create-workflow

Create workflow

get-workflow

Get workflow

read-only idempotent
update-workflow

Update workflow

idempotent

Capability Spec

rootly-workflows.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Rootly API — Workflows
  description: 'Rootly API — Workflows. 4 operations. Lead operation: List workflows. Self-contained Naftiko capability covering
    one Rootly business surface.'
  tags:
  - Rootly
  - Workflows
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ROOTLY_API_KEY: ROOTLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: rootly-workflows
    baseUri: https://api.rootly.com/v1
    description: Rootly API — Workflows business capability. Self-contained, no shared references.
    resources:
    - name: workflows
      path: /workflows
      operations:
      - name: get
        method: GET
        description: List workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: workflows-id
      path: /workflows/{id}
      operations:
      - name: get
        method: GET
        description: Get workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: patch
        method: PATCH
        description: Update workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.ROOTLY_API_KEY}}'
  exposes:
  - type: rest
    namespace: rootly-workflows-rest
    port: 8080
    description: REST adapter for Rootly API — Workflows. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/workflows
      name: workflows
      description: REST surface for workflows.
      operations:
      - method: GET
        name: get
        description: List workflows
        call: rootly-workflows.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create workflow
        call: rootly-workflows.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workflows/{id}
      name: workflows-id
      description: REST surface for workflows-id.
      operations:
      - method: GET
        name: get
        description: Get workflow
        call: rootly-workflows.get
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: Update workflow
        call: rootly-workflows.patch
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rootly-workflows-mcp
    port: 9090
    transport: http
    description: MCP adapter for Rootly API — Workflows. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-workflows
      description: List workflows
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rootly-workflows.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-workflow
      description: Create workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rootly-workflows.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-workflow
      description: Get workflow
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rootly-workflows.get
      outputParameters:
      - type: object
        mapping: $.
    - name: update-workflow
      description: Update workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rootly-workflows.patch
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.