Pipedrive · Capability

Pipedrive API v1 — Stages

Pipedrive API v1 — Stages. 1 operations. Lead operation: Get deals in a stage. Self-contained Naftiko capability covering one Pipedrive business surface.

Run with Naftiko PipedriveStages

What You Can Do

GET
Getstagedeals — Get deals in a stage
/v1/stages/{id}/deals

MCP Tools

get-deals-stage

Get deals in a stage

read-only idempotent

Capability Spec

v1-stages.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Pipedrive API v1 — Stages
  description: 'Pipedrive API v1 — Stages. 1 operations. Lead operation: Get deals in a stage. Self-contained Naftiko capability
    covering one Pipedrive business surface.'
  tags:
  - Pipedrive
  - Stages
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: v1-stages
    baseUri: https://api.pipedrive.com/v1
    description: Pipedrive API v1 — Stages business capability. Self-contained, no shared references.
    resources:
    - name: stages-id-deals
      path: /stages/{id}/deals
      operations:
      - name: getstagedeals
        method: GET
        description: Get deals in a stage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the stage
          required: true
        - name: filter_id
          in: query
          type: integer
          description: If supplied, only deals matching the given filter will be returned
        - name: user_id
          in: query
          type: integer
          description: 'If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned.
            If omitted, deals owned by the authorized user will be '
        - name: everyone
          in: query
          type: number
          description: If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will
            be returned
        - name: start
          in: query
          type: integer
          description: Pagination start
        - name: limit
          in: query
          type: integer
          description: Items shown per page
    authentication:
      type: bearer
      token: '{{env.PIPEDRIVE_API_KEY}}'
  exposes:
  - type: rest
    namespace: v1-stages-rest
    port: 8080
    description: REST adapter for Pipedrive API v1 — Stages. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/stages/{id}/deals
      name: stages-id-deals
      description: REST surface for stages-id-deals.
      operations:
      - method: GET
        name: getstagedeals
        description: Get deals in a stage
        call: v1-stages.getstagedeals
        with:
          id: rest.id
          filter_id: rest.filter_id
          user_id: rest.user_id
          everyone: rest.everyone
          start: rest.start
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: v1-stages-mcp
    port: 9090
    transport: http
    description: MCP adapter for Pipedrive API v1 — Stages. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-deals-stage
      description: Get deals in a stage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-stages.getstagedeals
      with:
        id: tools.id
        filter_id: tools.filter_id
        user_id: tools.user_id
        everyone: tools.everyone
        start: tools.start
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.