Use Database Query when you want the assistant to translate natural language into SQL over a configured database connection.Documentation Index
Fetch the complete documentation index at: https://docs.zylon.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An API token. See Backoffice Developer Console.
- A database connection string you can share with Zylon.
Requirements
- Tool spec:
{ "name": "database_query", "type": "database_query_v1" } tool_context: onesql_databasecontext withconnection_string
Basic request and response
This example validates a request that enables database query. For validation, it setstool_choice to none so the validator doesn’t try to connect.
POST /messages and set tool_choice to { \"type\": \"auto\" }.
Tips
- Use a read-only database user.
- Limit schemas to reduce inspection time.
Next steps
- Learn how messages return tool blocks: Messages