Schema
Get relevant schema for an intent
Returns only the slice of schema relevant to a stated goal — ideal for keeping an AI agent's context small on large databases. Feed the result straight into a SQL-generation prompt. Available to API keys with the read scope.
get/schema/context
Request
- Base URL: https://saturnsql.com/api
- URL: https://saturnsql.com/api/schema/context
- Auth: one of:
- HTTP bearer
- HTTP bearer
Query parameters
connection_idstring required
Connection to inspect
intentstring
Natural-language description of what you want to query
tablesstring
Comma-separated allowlist of tables
current_sqlstring
SQL already being drafted, used to rank relevance
Response
Relevant schema
Changes
No recorded changes to this operation across all 1 revision of this API.