te_query_sql
Execute SQL queries against project-specific ThinkingEngine event and user tables via WebSocket, returning the results.
Instructions
Execute a SQL query via WebSocket and return results
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": {
"projectId": "<projectId>",
"sql": "<sql>"
},
"name": "te_query_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query string. Tables: ta.v_event_{projectId}, ta.v_user_{projectId} | |
| host | No | TE system host (e.g. ta.thinkingdata.cn). Defaults to TE_HOST env var. | |
| projectId | Yes | Project ID |