SQL · Schema
SQL Query
JSON Schema representing a SQL query request as used by SQL-over-HTTP APIs and database connectivity tools
ANSI StandardData ManagementDatabaseISO StandardQuery LanguageRelational DatabaseSQL
Properties
| Name | Type | Description |
|---|---|---|
| sql | string | The SQL statement to execute |
| parameters | array | Ordered list of parameter values for parameterized queries (? placeholders or $1, $2, etc.) |
| namedParameters | object | Named parameter key/value pairs for named placeholder queries (:name or @name style) |
| maxRows | integer | Maximum number of rows to return from a SELECT query |
| timeout | integer | Query execution timeout in milliseconds |
| database | string | Target database or schema name when the connection supports multiple |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12",
"$id": "https://www.iso.org/schemas/sql-query",
"title": "SQL Query",
"description": "JSON Schema representing a SQL query request as used by SQL-over-HTTP APIs and database connectivity tools",
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "The SQL statement to execute",
"example": "SELECT id, name, email FROM users WHERE active = true ORDER BY name LIMIT 100"
},
"parameters": {
"type": "array",
"description": "Ordered list of parameter values for parameterized queries (? placeholders or $1, $2, etc.)",
"items": {
"oneOf": [
{ "type": "string" },
{ "type": "number" },
{ "type": "boolean" },
{ "type": "null" }
]
},
"example": [true, 100]
},
"namedParameters": {
"type": "object",
"description": "Named parameter key/value pairs for named placeholder queries (:name or @name style)",
"additionalProperties": {
"oneOf": [
{ "type": "string" },
{ "type": "number" },
{ "type": "boolean" },
{ "type": "null" }
]
},
"example": { "active": true, "limit": 100 }
},
"maxRows": {
"type": "integer",
"description": "Maximum number of rows to return from a SELECT query",
"minimum": 1,
"example": 1000
},
"timeout": {
"type": "integer",
"description": "Query execution timeout in milliseconds",
"minimum": 0,
"example": 30000
},
"database": {
"type": "string",
"description": "Target database or schema name when the connection supports multiple",
"example": "production"
}
},
"required": ["sql"]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sql-query"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.