naftiko: 1.0.0-alpha2 info: label: Pipedrive API v1 — Tasks description: 'Pipedrive API v1 — Tasks. 5 operations. Lead operation: Get all tasks. Self-contained Naftiko capability covering one Pipedrive business surface.' tags: - Pipedrive - Tasks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY capability: consumes: - type: http namespace: v1-tasks baseUri: https://api.pipedrive.com/v1 description: Pipedrive API v1 — Tasks business capability. Self-contained, no shared references. resources: - name: tasks path: /tasks operations: - name: gettasks method: GET description: Get all tasks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cursor in: query type: string description: For pagination, the marker (an opaque string value) representing the first item on the next page - name: limit in: query type: integer description: For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. - name: assignee_id in: query type: integer description: If supplied, only tasks that are assigned to this user are returned - name: project_id in: query type: integer description: If supplied, only tasks that are assigned to this project are returned - name: parent_task_id in: query type: integer description: If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are r - name: done in: query type: number description: Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. - name: addtask method: POST description: Add a task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: tasks-id path: /tasks/{id} operations: - name: gettask method: GET description: Get details of a task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the task required: true - name: updatetask method: PUT description: Update a task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the task required: true - name: body in: body type: object description: Request body (JSON). required: false - name: deletetask method: DELETE description: Delete a task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the task required: true authentication: type: bearer token: '{{env.PIPEDRIVE_API_KEY}}' exposes: - type: rest namespace: v1-tasks-rest port: 8080 description: REST adapter for Pipedrive API v1 — Tasks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/tasks name: tasks description: REST surface for tasks. operations: - method: GET name: gettasks description: Get all tasks call: v1-tasks.gettasks with: cursor: rest.cursor limit: rest.limit assignee_id: rest.assignee_id project_id: rest.project_id parent_task_id: rest.parent_task_id done: rest.done outputParameters: - type: object mapping: $. - method: POST name: addtask description: Add a task call: v1-tasks.addtask with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/tasks/{id} name: tasks-id description: REST surface for tasks-id. operations: - method: GET name: gettask description: Get details of a task call: v1-tasks.gettask with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updatetask description: Update a task call: v1-tasks.updatetask with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletetask description: Delete a task call: v1-tasks.deletetask with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: v1-tasks-mcp port: 9090 transport: http description: MCP adapter for Pipedrive API v1 — Tasks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-tasks description: Get all tasks hints: readOnly: true destructive: false idempotent: true call: v1-tasks.gettasks with: cursor: tools.cursor limit: tools.limit assignee_id: tools.assignee_id project_id: tools.project_id parent_task_id: tools.parent_task_id done: tools.done outputParameters: - type: object mapping: $. - name: add-task description: Add a task hints: readOnly: false destructive: false idempotent: false call: v1-tasks.addtask with: body: tools.body outputParameters: - type: object mapping: $. - name: get-details-task description: Get details of a task hints: readOnly: true destructive: false idempotent: true call: v1-tasks.gettask with: id: tools.id outputParameters: - type: object mapping: $. - name: update-task description: Update a task hints: readOnly: false destructive: false idempotent: true call: v1-tasks.updatetask with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-task description: Delete a task hints: readOnly: false destructive: true idempotent: true call: v1-tasks.deletetask with: id: tools.id outputParameters: - type: object mapping: $.