naftiko: 1.0.0-alpha2 info: label: Pinecone Data Plane API — Vector Operations description: 'Pinecone Data Plane API — Vector Operations. 10 operations. Lead operation: Get index stats. Self-contained Naftiko capability covering one Pinecone business surface.' tags: - Pinecone - Vector Operations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PINECONE_API_KEY: PINECONE_API_KEY capability: consumes: - type: http namespace: db-data-vector-operations baseUri: https://{index_host} description: Pinecone Data Plane API — Vector Operations business capability. Self-contained, no shared references. resources: - name: describe_index_stats path: /describe_index_stats operations: - name: describeindexstats method: POST description: Get index stats outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: body in: body type: object description: Request body (JSON). required: true - name: query path: /query operations: - name: queryvectors method: POST description: Search with a vector outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: body in: body type: object description: Request body (JSON). required: true - name: records-namespaces-namespace-search path: /records/namespaces/{namespace}/search operations: - name: searchrecordsnamespace method: POST description: Search with text outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: namespace in: path type: string description: The namespace to search. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: records-namespaces-namespace-upsert path: /records/namespaces/{namespace}/upsert operations: - name: upsertrecordsnamespace method: POST description: Upsert text outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: namespace in: path type: string description: The namespace to upsert records into. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: vectors-delete path: /vectors/delete operations: - name: deletevectors method: POST description: Delete vectors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: body in: body type: object description: Request body (JSON). required: true - name: vectors-fetch path: /vectors/fetch operations: - name: fetchvectors method: GET description: Fetch vectors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: ids in: query type: array description: The vector IDs to fetch. Does not accept values containing spaces. required: true - name: namespace in: query type: string description: The namespace to fetch vectors from. If not provided, the default namespace is used. - name: vectors-fetch_by_metadata path: /vectors/fetch_by_metadata operations: - name: fetchvectorsbymetadata method: POST description: Fetch vectors by metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: body in: body type: object description: Request body (JSON). required: true - name: vectors-list path: /vectors/list operations: - name: listvectors method: GET description: List vector IDs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: prefix in: query type: string description: The vector IDs to fetch. Does not accept values containing spaces. - name: limit in: query type: integer description: Max number of IDs to return per page. - name: paginationToken in: query type: string description: Pagination token to continue a previous listing operation. - name: namespace in: query type: string description: The namespace to list vectors from. If not provided, the default namespace is used. - name: vectors-update path: /vectors/update operations: - name: updatevector method: POST description: Update a vector outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: body in: body type: object description: Request body (JSON). required: true - name: vectors-upsert path: /vectors/upsert operations: - name: upsertvectors method: POST description: Upsert vectors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Pinecone-Api-Version in: header type: string description: Required date-based version header required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Api-Key value: '{{env.PINECONE_API_KEY}}' placement: header exposes: - type: rest namespace: db-data-vector-operations-rest port: 8080 description: REST adapter for Pinecone Data Plane API — Vector Operations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/describe-index-stats name: describe-index-stats description: REST surface for describe_index_stats. operations: - method: POST name: describeindexstats description: Get index stats call: db-data-vector-operations.describeindexstats with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/query name: query description: REST surface for query. operations: - method: POST name: queryvectors description: Search with a vector call: db-data-vector-operations.queryvectors with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/records/namespaces/{namespace}/search name: records-namespaces-namespace-search description: REST surface for records-namespaces-namespace-search. operations: - method: POST name: searchrecordsnamespace description: Search with text call: db-data-vector-operations.searchrecordsnamespace with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version namespace: rest.namespace body: rest.body outputParameters: - type: object mapping: $. - path: /v1/records/namespaces/{namespace}/upsert name: records-namespaces-namespace-upsert description: REST surface for records-namespaces-namespace-upsert. operations: - method: POST name: upsertrecordsnamespace description: Upsert text call: db-data-vector-operations.upsertrecordsnamespace with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version namespace: rest.namespace body: rest.body outputParameters: - type: object mapping: $. - path: /v1/vectors/delete name: vectors-delete description: REST surface for vectors-delete. operations: - method: POST name: deletevectors description: Delete vectors call: db-data-vector-operations.deletevectors with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/vectors/fetch name: vectors-fetch description: REST surface for vectors-fetch. operations: - method: GET name: fetchvectors description: Fetch vectors call: db-data-vector-operations.fetchvectors with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version ids: rest.ids namespace: rest.namespace outputParameters: - type: object mapping: $. - path: /v1/vectors/fetch-by-metadata name: vectors-fetch-by-metadata description: REST surface for vectors-fetch_by_metadata. operations: - method: POST name: fetchvectorsbymetadata description: Fetch vectors by metadata call: db-data-vector-operations.fetchvectorsbymetadata with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/vectors/list name: vectors-list description: REST surface for vectors-list. operations: - method: GET name: listvectors description: List vector IDs call: db-data-vector-operations.listvectors with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version prefix: rest.prefix limit: rest.limit paginationToken: rest.paginationToken namespace: rest.namespace outputParameters: - type: object mapping: $. - path: /v1/vectors/update name: vectors-update description: REST surface for vectors-update. operations: - method: POST name: updatevector description: Update a vector call: db-data-vector-operations.updatevector with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/vectors/upsert name: vectors-upsert description: REST surface for vectors-upsert. operations: - method: POST name: upsertvectors description: Upsert vectors call: db-data-vector-operations.upsertvectors with: X-Pinecone-Api-Version: rest.X-Pinecone-Api-Version body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: db-data-vector-operations-mcp port: 9090 transport: http description: MCP adapter for Pinecone Data Plane API — Vector Operations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-index-stats description: Get index stats hints: readOnly: true destructive: false idempotent: false call: db-data-vector-operations.describeindexstats with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version body: tools.body outputParameters: - type: object mapping: $. - name: search-vector description: Search with a vector hints: readOnly: true destructive: false idempotent: false call: db-data-vector-operations.queryvectors with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version body: tools.body outputParameters: - type: object mapping: $. - name: search-text description: Search with text hints: readOnly: true destructive: false idempotent: false call: db-data-vector-operations.searchrecordsnamespace with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version namespace: tools.namespace body: tools.body outputParameters: - type: object mapping: $. - name: upsert-text description: Upsert text hints: readOnly: false destructive: false idempotent: false call: db-data-vector-operations.upsertrecordsnamespace with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version namespace: tools.namespace body: tools.body outputParameters: - type: object mapping: $. - name: delete-vectors description: Delete vectors hints: readOnly: false destructive: false idempotent: false call: db-data-vector-operations.deletevectors with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version body: tools.body outputParameters: - type: object mapping: $. - name: fetch-vectors description: Fetch vectors hints: readOnly: true destructive: false idempotent: true call: db-data-vector-operations.fetchvectors with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version ids: tools.ids namespace: tools.namespace outputParameters: - type: object mapping: $. - name: fetch-vectors-metadata description: Fetch vectors by metadata hints: readOnly: true destructive: false idempotent: false call: db-data-vector-operations.fetchvectorsbymetadata with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version body: tools.body outputParameters: - type: object mapping: $. - name: list-vector-ids description: List vector IDs hints: readOnly: true destructive: false idempotent: true call: db-data-vector-operations.listvectors with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version prefix: tools.prefix limit: tools.limit paginationToken: tools.paginationToken namespace: tools.namespace outputParameters: - type: object mapping: $. - name: update-vector description: Update a vector hints: readOnly: false destructive: false idempotent: false call: db-data-vector-operations.updatevector with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version body: tools.body outputParameters: - type: object mapping: $. - name: upsert-vectors description: Upsert vectors hints: readOnly: false destructive: false idempotent: false call: db-data-vector-operations.upsertvectors with: X-Pinecone-Api-Version: tools.X-Pinecone-Api-Version body: tools.body outputParameters: - type: object mapping: $.