Cortex Analyst Query
cortex_analyst_queryAnswers analytical questions by using AI_COMPLETE, optionally adding a semantic model path to the prompt so agents can query Snowflake data with model context.
Instructions
Answer an analytical question via AI_COMPLETE. Optionally prefixes the prompt with semantic_model_path. Does not call Cortex Analyst REST (POST /api/v2/cortex/analyst/message).
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": {
"question": "<question>"
},
"name": "cortex_analyst_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| semantic_model_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||