Revert · Capability

Revert Unified API — CRM Deals

Revert Unified API — CRM Deals. 4 operations. Lead operation: List CRM Deals. Self-contained Naftiko capability covering one Revert business surface.

Run with Naftiko RevertCRM Deals

What You Can Do

GET
Getcrmdeals — List CRM Deals
/v1/crm/deals
POST
Createcrmdeal — Create CRM Deal
/v1/crm/deals
GET
Getcrmdeal — Get CRM Deal
/v1/crm/deals/{id}
PATCH
Updatecrmdeal — Update CRM Deal
/v1/crm/deals/{id}

MCP Tools

list-crm-deals

List CRM Deals

read-only idempotent
create-crm-deal

Create CRM Deal

get-crm-deal

Get CRM Deal

read-only idempotent
update-crm-deal

Update CRM Deal

idempotent

Capability Spec

unified-crm-deals.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Revert Unified API — CRM Deals
  description: 'Revert Unified API — CRM Deals. 4 operations. Lead operation: List CRM Deals. Self-contained Naftiko capability
    covering one Revert business surface.'
  tags:
  - Revert
  - CRM Deals
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    REVERT_API_KEY: REVERT_API_KEY
capability:
  consumes:
  - type: http
    namespace: unified-crm-deals
    baseUri: https://api.revert.dev
    description: Revert Unified API — CRM Deals business capability. Self-contained, no shared references.
    resources:
    - name: crm-deals
      path: /crm/deals
      operations:
      - name: getcrmdeals
        method: GET
        description: List CRM Deals
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcrmdeal
        method: POST
        description: Create CRM Deal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: crm-deals-id
      path: /crm/deals/{id}
      operations:
      - name: getcrmdeal
        method: GET
        description: Get CRM Deal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: updatecrmdeal
        method: PATCH
        description: Update CRM Deal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: x-revert-api-token
      value: '{{env.REVERT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: unified-crm-deals-rest
    port: 8080
    description: REST adapter for Revert Unified API — CRM Deals. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/crm/deals
      name: crm-deals
      description: REST surface for crm-deals.
      operations:
      - method: GET
        name: getcrmdeals
        description: List CRM Deals
        call: unified-crm-deals.getcrmdeals
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcrmdeal
        description: Create CRM Deal
        call: unified-crm-deals.createcrmdeal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crm/deals/{id}
      name: crm-deals-id
      description: REST surface for crm-deals-id.
      operations:
      - method: GET
        name: getcrmdeal
        description: Get CRM Deal
        call: unified-crm-deals.getcrmdeal
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecrmdeal
        description: Update CRM Deal
        call: unified-crm-deals.updatecrmdeal
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: unified-crm-deals-mcp
    port: 9090
    transport: http
    description: MCP adapter for Revert Unified API — CRM Deals. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-crm-deals
      description: List CRM Deals
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-crm-deals.getcrmdeals
      outputParameters:
      - type: object
        mapping: $.
    - name: create-crm-deal
      description: Create CRM Deal
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: unified-crm-deals.createcrmdeal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-crm-deal
      description: Get CRM Deal
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-crm-deals.getcrmdeal
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-crm-deal
      description: Update CRM Deal
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: unified-crm-deals.updatecrmdeal
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.