naftiko: 1.0.0-alpha2 info: label: Pipedrive API v2 — ProjectFields description: 'Pipedrive API v2 — ProjectFields. 8 operations. Lead operation: Get all project fields. Self-contained Naftiko capability covering one Pipedrive business surface.' tags: - Pipedrive - ProjectFields created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY capability: consumes: - type: http namespace: v2-projectfields baseUri: https://api.pipedrive.com/api/v2 description: Pipedrive API v2 — ProjectFields business capability. Self-contained, no shared references. resources: - name: projectFields path: /projectFields operations: - name: getprojectfields method: GET description: Get all project fields outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: addprojectfield method: POST description: Create one project field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projectFields-field_code path: /projectFields/{field_code} operations: - name: getprojectfield method: GET description: Get one project 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: updateprojectfield method: PATCH description: Update one project 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: deleteprojectfield method: DELETE description: Delete one project 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: projectFields-field_code-options path: /projectFields/{field_code}/options operations: - name: addprojectfieldoptions method: POST description: Add project 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: deleteprojectfieldoptions method: DELETE description: Delete project 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: updateprojectfieldoptions method: PATCH description: Update project 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-projectfields-rest port: 8080 description: REST adapter for Pipedrive API v2 — ProjectFields. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projectfields name: projectfields description: REST surface for projectFields. operations: - method: GET name: getprojectfields description: Get all project fields call: v2-projectfields.getprojectfields with: limit: rest.limit cursor: rest.cursor outputParameters: - type: object mapping: $. - method: POST name: addprojectfield description: Create one project field call: v2-projectfields.addprojectfield with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projectfields/{field-code} name: projectfields-field-code description: REST surface for projectFields-field_code. operations: - method: GET name: getprojectfield description: Get one project field call: v2-projectfields.getprojectfield with: field_code: rest.field_code outputParameters: - type: object mapping: $. - method: PATCH name: updateprojectfield description: Update one project field call: v2-projectfields.updateprojectfield with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteprojectfield description: Delete one project field call: v2-projectfields.deleteprojectfield with: field_code: rest.field_code outputParameters: - type: object mapping: $. - path: /v1/projectfields/{field-code}/options name: projectfields-field-code-options description: REST surface for projectFields-field_code-options. operations: - method: POST name: addprojectfieldoptions description: Add project field options in bulk call: v2-projectfields.addprojectfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteprojectfieldoptions description: Delete project field options in bulk call: v2-projectfields.deleteprojectfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updateprojectfieldoptions description: Update project field options in bulk call: v2-projectfields.updateprojectfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: v2-projectfields-mcp port: 9090 transport: http description: MCP adapter for Pipedrive API v2 — ProjectFields. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-project-fields description: Get all project fields hints: readOnly: true destructive: false idempotent: true call: v2-projectfields.getprojectfields with: limit: tools.limit cursor: tools.cursor outputParameters: - type: object mapping: $. - name: create-one-project-field description: Create one project field hints: readOnly: false destructive: false idempotent: false call: v2-projectfields.addprojectfield with: body: tools.body outputParameters: - type: object mapping: $. - name: get-one-project-field description: Get one project field hints: readOnly: true destructive: false idempotent: true call: v2-projectfields.getprojectfield with: field_code: tools.field_code outputParameters: - type: object mapping: $. - name: update-one-project-field description: Update one project field hints: readOnly: false destructive: false idempotent: true call: v2-projectfields.updateprojectfield with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: delete-one-project-field description: Delete one project field hints: readOnly: false destructive: true idempotent: true call: v2-projectfields.deleteprojectfield with: field_code: tools.field_code outputParameters: - type: object mapping: $. - name: add-project-field-options-bulk description: Add project field options in bulk hints: readOnly: false destructive: false idempotent: false call: v2-projectfields.addprojectfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: delete-project-field-options-bulk description: Delete project field options in bulk hints: readOnly: false destructive: true idempotent: true call: v2-projectfields.deleteprojectfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: update-project-field-options-bulk description: Update project field options in bulk hints: readOnly: false destructive: false idempotent: true call: v2-projectfields.updateprojectfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $.