ask_data_analyst
Pose a question about a knowledge cluster to a data analyst agent and receive answers via executed SQL queries. Supports session continuity and retries for empty results.
Instructions
Ask the Data Analyst agent a question about a knowledge cluster.
question must be the user's question VERBATIM - do not rephrase or elaborate it. The
cluster's metadata and instructions supply the context the agent needs.
execute_query mirrors the UI's "Run SQL" toggle and defaults to true, which is almost always what is wanted: a question about data wants an answer, not a query. Only pass false when the user explicitly asks for the SQL without running it. Each attempt takes roughly 40-60s. Pass session_id to continue a conversation.
When executing, an empty result is retried up to max_attempts times, because the same question intermittently produces SQL that returns no rows. If every attempt comes back empty the result carries an execution_warning - an empty result is indistinguishable from a failed execution on this platform, so do not tell the user "there is no data".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| session_id | No | ||
| max_attempts | No | ||
| execute_query | No | ||
| knowledge_cluster_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||