naftiko: 1.0.0-alpha2 info: label: SharePoint REST API — Search description: 'SharePoint REST API — Search. 1 operations. Lead operation: SharePoint Search Query. Self-contained Naftiko capability covering one Sharepoint business surface.' tags: - Sharepoint - Search created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SHAREPOINT_API_KEY: SHAREPOINT_API_KEY capability: consumes: - type: http namespace: rest-search baseUri: https://{site_url}/_api description: SharePoint REST API — Search business capability. Self-contained, no shared references. resources: - name: search-query path: /search/query operations: - name: searchquery method: GET description: SharePoint Search Query outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: querytext in: query type: string description: Search query text. required: true - name: selectproperties in: query type: string description: Properties to return. - name: rowlimit in: query type: integer description: Maximum results. authentication: type: bearer token: '{{env.SHAREPOINT_API_KEY}}' exposes: - type: rest namespace: rest-search-rest port: 8080 description: REST adapter for SharePoint REST API — Search. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/search/query name: search-query description: REST surface for search-query. operations: - method: GET name: searchquery description: SharePoint Search Query call: rest-search.searchquery with: querytext: rest.querytext selectproperties: rest.selectproperties rowlimit: rest.rowlimit outputParameters: - type: object mapping: $. - type: mcp namespace: rest-search-mcp port: 9090 transport: http description: MCP adapter for SharePoint REST API — Search. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sharepoint-search-query description: SharePoint Search Query hints: readOnly: true destructive: false idempotent: true call: rest-search.searchquery with: querytext: tools.querytext selectproperties: tools.selectproperties rowlimit: tools.rowlimit outputParameters: - type: object mapping: $.