get_request_detail
Retrieve full query text and execution metrics for a completed query by its distributed statement ID, drawing from queryinsights.exec_requests_history.
Instructions
Look up a completed query from queryinsights.exec_requests_history.
Uses distributed_statement_id to retrieve full query text and execution metrics after the query completes.
Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. dist_statement_id: The GUID identifying the distributed statement to look up.
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": {
"workspace": "<workspace>",
"item": "<item>",
"dist_statement_id": "<dist_statement_id>"
},
"name": "get_request_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| workspace | Yes | ||
| dist_statement_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |