Cortex Create Search Service
cortex_create_search_serviceCreate a Cortex Search service from read-only SQL, specifying search columns, attributes, warehouse, and target lag to enable indexed search over Snowflake data.
Instructions
Create a Cortex Search service. The AS query must be read-only SQL. https://docs.snowflake.com/en/sql-reference/sql/create-cortex-search
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service_name": "<service_name>",
"search_column": "<search_column>",
"attributes": "<attributes>",
"warehouse": "<warehouse>",
"target_lag": "<target_lag>",
"query": "<query>"
},
"name": "cortex_create_search_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| database | No | Quote names that aren't all uppercase, exactly as list tools return them. | |
| warehouse | Yes | Quote names that aren't all uppercase, exactly as list tools return them. | |
| attributes | Yes | ||
| target_lag | Yes | ||
| schema_name | No | Quote names that aren't all uppercase, exactly as list tools return them. | |
| service_name | Yes | Quote names that aren't all uppercase, exactly as list tools return them. | |
| if_not_exists | No | ||
| search_column | Yes | Quote names that aren't all uppercase, exactly as list tools return them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||