Get schema
get_schemaGet every table of one connection with its columns (name, type, nullable, primary key), and the description and synonyms of each table and column where the team or the database has one. Call it before writing SQL for execute_query, export_query_results or save_query, so table and column names match the real database instead of being guessed; read the descriptions to pick the right table and units. Call get_context too for the team's notes for AI and business definitions. Read-only. On a large database the response is long; fetch it once per conversation and reuse it. Refused on an approved_queries connection.
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": {
"connectionId": "<connectionId>"
},
"name": "get_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | Yes | Connection id from list_connections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes |