naftiko: 1.0.0-alpha2 info: label: Cortex Search REST API — cortex-search-service description: 'Cortex Search REST API — cortex-search-service. 6 operations. Lead operation: List Cortex Search Services. Self-contained Naftiko capability covering one Snowflake business surface.' tags: - Snowflake - cortex-search-service created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNOWFLAKE_API_KEY: SNOWFLAKE_API_KEY capability: consumes: - type: http namespace: cortex-search-service-cortex-search-service-2 baseUri: '' description: Cortex Search REST API — cortex-search-service business capability. Self-contained, no shared references. resources: - name: api-v2-databases-database-schemas-schema-cortex-search-services path: /api/v2/databases/{database}/schemas/{schema}/cortex-search-services operations: - name: listcortexsearchservices method: GET description: List Cortex Search Services outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcortexsearchservice method: POST description: Create a Cortex Search Service outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-databases-database-schemas-schema-cortex-search-services-name path: /api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name} operations: - name: fetchcortexsearchservice method: GET description: Fetch a Cortex Search Service. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-databases-database-schemas-schema-cortex-search-services-name}:resume path: /api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name}:resume operations: - name: resumecortexsearchservice method: POST description: Resume the Cortex Search Service outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-databases-database-schemas-schema-cortex-search-services-name}:suspend path: /api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name}:suspend operations: - name: suspendcortexsearchservice method: POST description: Suspend a Cortex Search Service. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-databases-database-schemas-schema-cortex-search-services-service_name}:qu path: /api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{service_name}:query operations: - name: querycortexsearchservice method: POST description: Query a Cortex Search Service. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: service_name in: path type: string description: The name of the Cortex Search Service. required: true - name: body in: body type: object description: Request body (JSON). required: false exposes: - type: rest namespace: cortex-search-service-cortex-search-service-2-rest port: 8080 description: REST adapter for Cortex Search REST API — cortex-search-service. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/databases/{database}/schemas/{schema}/cortex-search-services name: api-v2-databases-database-schemas-schema-cortex-search-services description: REST surface for api-v2-databases-database-schemas-schema-cortex-search-services. operations: - method: GET name: listcortexsearchservices description: List Cortex Search Services call: cortex-search-service-cortex-search-service-2.listcortexsearchservices outputParameters: - type: object mapping: $. - method: POST name: createcortexsearchservice description: Create a Cortex Search Service call: cortex-search-service-cortex-search-service-2.createcortexsearchservice with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name} name: api-v2-databases-database-schemas-schema-cortex-search-services-name description: REST surface for api-v2-databases-database-schemas-schema-cortex-search-services-name. operations: - method: GET name: fetchcortexsearchservice description: Fetch a Cortex Search Service. call: cortex-search-service-cortex-search-service-2.fetchcortexsearchservice outputParameters: - type: object mapping: $. - path: /v1/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/name-resume name: api-v2-databases-database-schemas-schema-cortex-search-services-name-resume description: REST surface for api-v2-databases-database-schemas-schema-cortex-search-services-name}:resume. operations: - method: POST name: resumecortexsearchservice description: Resume the Cortex Search Service call: cortex-search-service-cortex-search-service-2.resumecortexsearchservice outputParameters: - type: object mapping: $. - path: /v1/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/name-suspend name: api-v2-databases-database-schemas-schema-cortex-search-services-name-suspend description: REST surface for api-v2-databases-database-schemas-schema-cortex-search-services-name}:suspend. operations: - method: POST name: suspendcortexsearchservice description: Suspend a Cortex Search Service. call: cortex-search-service-cortex-search-service-2.suspendcortexsearchservice outputParameters: - type: object mapping: $. - path: /v1/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/service-name-query name: api-v2-databases-database-schemas-schema-cortex-search-services-service-name-qu description: REST surface for api-v2-databases-database-schemas-schema-cortex-search-services-service_name}:qu. operations: - method: POST name: querycortexsearchservice description: Query a Cortex Search Service. call: cortex-search-service-cortex-search-service-2.querycortexsearchservice with: service_name: rest.service_name body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cortex-search-service-cortex-search-service-2-mcp port: 9090 transport: http description: MCP adapter for Cortex Search REST API — cortex-search-service. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-cortex-search-services description: List Cortex Search Services hints: readOnly: true destructive: false idempotent: true call: cortex-search-service-cortex-search-service-2.listcortexsearchservices outputParameters: - type: object mapping: $. - name: create-cortex-search-service description: Create a Cortex Search Service hints: readOnly: true destructive: false idempotent: false call: cortex-search-service-cortex-search-service-2.createcortexsearchservice with: body: tools.body outputParameters: - type: object mapping: $. - name: fetch-cortex-search-service description: Fetch a Cortex Search Service. hints: readOnly: true destructive: false idempotent: true call: cortex-search-service-cortex-search-service-2.fetchcortexsearchservice outputParameters: - type: object mapping: $. - name: resume-cortex-search-service description: Resume the Cortex Search Service hints: readOnly: true destructive: false idempotent: false call: cortex-search-service-cortex-search-service-2.resumecortexsearchservice outputParameters: - type: object mapping: $. - name: suspend-cortex-search-service description: Suspend a Cortex Search Service. hints: readOnly: true destructive: false idempotent: false call: cortex-search-service-cortex-search-service-2.suspendcortexsearchservice outputParameters: - type: object mapping: $. - name: query-cortex-search-service description: Query a Cortex Search Service. hints: readOnly: true destructive: false idempotent: false call: cortex-search-service-cortex-search-service-2.querycortexsearchservice with: service_name: tools.service_name body: tools.body outputParameters: - type: object mapping: $.