Pipedrive · Capability

Pipedrive API v2 — DealFields

Pipedrive API v2 — DealFields. 8 operations. Lead operation: Get all deal fields. Self-contained Naftiko capability covering one Pipedrive business surface.

Run with Naftiko PipedriveDealFields

What You Can Do

GET
Getdealfields — Get all deal fields
/v1/dealfields
POST
Adddealfield — Create one deal field
/v1/dealfields
GET
Getdealfield — Get one deal field
/v1/dealfields/{field-code}
PATCH
Updatedealfield — Update one deal field
/v1/dealfields/{field-code}
DELETE
Deletedealfield — Delete one deal field
/v1/dealfields/{field-code}
POST
Adddealfieldoptions — Add deal field options in bulk
/v1/dealfields/{field-code}/options
DELETE
Deletedealfieldoptions — Delete deal field options in bulk
/v1/dealfields/{field-code}/options
PATCH
Updatedealfieldoptions — Update deal field options in bulk
/v1/dealfields/{field-code}/options

MCP Tools

get-all-deal-fields

Get all deal fields

read-only idempotent
create-one-deal-field

Create one deal field

get-one-deal-field

Get one deal field

read-only idempotent
update-one-deal-field

Update one deal field

idempotent
delete-one-deal-field

Delete one deal field

idempotent
add-deal-field-options-bulk

Add deal field options in bulk

delete-deal-field-options-bulk

Delete deal field options in bulk

idempotent
update-deal-field-options-bulk

Update deal field options in bulk

idempotent

Capability Spec

v2-dealfields.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Pipedrive API v2 — DealFields
  description: 'Pipedrive API v2 — DealFields. 8 operations. Lead operation: Get all deal fields. Self-contained Naftiko capability
    covering one Pipedrive business surface.'
  tags:
  - Pipedrive
  - DealFields
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: v2-dealfields
    baseUri: https://api.pipedrive.com/api/v2
    description: Pipedrive API v2 — DealFields business capability. Self-contained, no shared references.
    resources:
    - name: dealFields
      path: /dealFields
      operations:
      - name: getdealfields
        method: GET
        description: Get all deal fields
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: include_fields
          in: query
          type: string
          description: Optional comma separated string array of additional data namespaces to include in response
        - name: limit
          in: query
          type: integer
          description: For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please
            note that a maximum value of 500 is allowed.
        - name: cursor
          in: query
          type: string
          description: For pagination, the marker (an opaque string value) representing the first item on the next page
      - name: adddealfield
        method: POST
        description: Create one deal field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: dealFields-field_code
      path: /dealFields/{field_code}
      operations:
      - name: getdealfield
        method: GET
        description: Get one deal field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: field_code
          in: path
          type: string
          description: The unique code identifying the field
          required: true
        - name: include_fields
          in: query
          type: string
          description: Optional comma separated string array of additional data namespaces to include in response
      - name: updatedealfield
        method: PATCH
        description: Update one deal field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: field_code
          in: path
          type: string
          description: The unique code identifying the field
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletedealfield
        method: DELETE
        description: Delete one deal field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: field_code
          in: path
          type: string
          description: The unique code identifying the field
          required: true
    - name: dealFields-field_code-options
      path: /dealFields/{field_code}/options
      operations:
      - name: adddealfieldoptions
        method: POST
        description: Add deal field options in bulk
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: field_code
          in: path
          type: string
          description: The unique code identifying the field
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletedealfieldoptions
        method: DELETE
        description: Delete deal field options in bulk
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: field_code
          in: path
          type: string
          description: The unique code identifying the field
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updatedealfieldoptions
        method: PATCH
        description: Update deal field options in bulk
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: field_code
          in: path
          type: string
          description: The unique code identifying the field
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.PIPEDRIVE_API_KEY}}'
  exposes:
  - type: rest
    namespace: v2-dealfields-rest
    port: 8080
    description: REST adapter for Pipedrive API v2 — DealFields. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/dealfields
      name: dealfields
      description: REST surface for dealFields.
      operations:
      - method: GET
        name: getdealfields
        description: Get all deal fields
        call: v2-dealfields.getdealfields
        with:
          include_fields: rest.include_fields
          limit: rest.limit
          cursor: rest.cursor
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: adddealfield
        description: Create one deal field
        call: v2-dealfields.adddealfield
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/dealfields/{field-code}
      name: dealfields-field-code
      description: REST surface for dealFields-field_code.
      operations:
      - method: GET
        name: getdealfield
        description: Get one deal field
        call: v2-dealfields.getdealfield
        with:
          field_code: rest.field_code
          include_fields: rest.include_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatedealfield
        description: Update one deal field
        call: v2-dealfields.updatedealfield
        with:
          field_code: rest.field_code
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedealfield
        description: Delete one deal field
        call: v2-dealfields.deletedealfield
        with:
          field_code: rest.field_code
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/dealfields/{field-code}/options
      name: dealfields-field-code-options
      description: REST surface for dealFields-field_code-options.
      operations:
      - method: POST
        name: adddealfieldoptions
        description: Add deal field options in bulk
        call: v2-dealfields.adddealfieldoptions
        with:
          field_code: rest.field_code
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedealfieldoptions
        description: Delete deal field options in bulk
        call: v2-dealfields.deletedealfieldoptions
        with:
          field_code: rest.field_code
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatedealfieldoptions
        description: Update deal field options in bulk
        call: v2-dealfields.updatedealfieldoptions
        with:
          field_code: rest.field_code
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: v2-dealfields-mcp
    port: 9090
    transport: http
    description: MCP adapter for Pipedrive API v2 — DealFields. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-all-deal-fields
      description: Get all deal fields
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v2-dealfields.getdealfields
      with:
        include_fields: tools.include_fields
        limit: tools.limit
        cursor: tools.cursor
      outputParameters:
      - type: object
        mapping: $.
    - name: create-one-deal-field
      description: Create one deal field
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v2-dealfields.adddealfield
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-one-deal-field
      description: Get one deal field
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v2-dealfields.getdealfield
      with:
        field_code: tools.field_code
        include_fields: tools.include_fields
      outputParameters:
      - type: object
        mapping: $.
    - name: update-one-deal-field
      description: Update one deal field
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v2-dealfields.updatedealfield
      with:
        field_code: tools.field_code
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-one-deal-field
      description: Delete one deal field
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: v2-dealfields.deletedealfield
      with:
        field_code: tools.field_code
      outputParameters:
      - type: object
        mapping: $.
    - name: add-deal-field-options-bulk
      description: Add deal field options in bulk
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v2-dealfields.adddealfieldoptions
      with:
        field_code: tools.field_code
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-deal-field-options-bulk
      description: Delete deal field options in bulk
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: v2-dealfields.deletedealfieldoptions
      with:
        field_code: tools.field_code
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-deal-field-options-bulk
      description: Update deal field options in bulk
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v2-dealfields.updatedealfieldoptions
      with:
        field_code: tools.field_code
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.