Gaia Adql Query
gaia_adql_queryRun a read-only ADQL (SQL-like) query against the ESA Gaia archive, the full DR3 catalogue plus its cross-match and variability tables, for questions a cone search cannot express: colour-magnitude cuts, proper-motion selections, cluster membership, cross-matches to 2MASS/SDSS/Hipparcos. Only SELECT is permitted and results are capped at 2,000 rows. Main table: gaiadr3.gaia_source.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"limit": 5,
"query": "SELECT source_id, ra, dec, parallax, phot_g_mean_mag FROM gaiadr3.gaia_source WHERE parallax > 200 ORDER BY phot_g_mean_mag ASC"
},
"name": "gaia_adql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Row cap applied on top of any TOP in the query (default 100, max 2000). | |
| query | Yes | An ADQL SELECT statement, e.g. "SELECT TOP 10 source_id, ra, dec, phot_g_mean_mag FROM gaiadr3.gaia_source WHERE parallax > 100 ORDER BY phot_g_mean_mag ASC". Geometry uses CONTAINS(POINT('ICRS', ra, dec), CIRCLE('ICRS', ra0, dec0, radius_deg)) = 1. |