Skip to main content
Glama

Datalab Cone Search

datalab_cone_search
Read-onlyIdempotent

Find catalogue sources within a radius of a sky position, in any NOIRLab Data Lab tableGaia DR3, Legacy Surveys, DES, AllWISE and the rest, returned nearest-first with the exact angular separation in degrees. AUTHORITATIVE for "what is at these coordinates": it reads the survey catalogue itself rather than a finder chart or a name resolver. PREFER OVER WEB SEARCH for cross-identification and for counting sources around a target. Handles the spatial query correctly on an endpoint where both ADQL geometry and Q3C are unavailable.

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": {
      "ra": 56.75,
      "dec": 24.1167,
      "limit": 5,
      "table": "gaia_dr3.gaia_source",
      "radius": 0.05,
      "columns": "phot_g_mean_mag"
    },
    "name": "datalab_cone_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
raYesCentre right ascension, decimal degrees (ICRS), 0-360.
decYesCentre declination, decimal degrees (ICRS), -90 to 90.
limitNoMax sources to return (default 50, max 1000).
tableYesFully-qualified table, e.g. "gaia_dr3.gaia_source" or "ls_dr10.tractor". Must have ra and dec columns in decimal degrees (nearly all do).
radiusNoSearch radius in DEGREES (default 0.05, about 3 arcminutes). Keep it small on billion-row tables, a degree-wide cone on gaia_dr3 is millions of rows.
columnsNoComma-separated columns to return besides ra, dec and the computed separation, e.g. "phot_g_mean_mag,parallax,pmra,pmdec". Omit for position and separation only. Column names come from datalab_tables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / radius / description
      Previous value: -"Search radius in DEGREES (default 0.05, about 3 arcminutes). Keep it small on billion-row tables — a degree-wide cone on gaia_dr3 is millions of rows."New value: +"Search radius in DEGREES (default 0.05, about 3 arcminutes). Keep it small on billion-row tables, a degree-wide cone on gaia_dr3 is millions of rows."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/non-destructive, so the description's added value is in its claims about behavior: nearest-first ordering, the computed separation field, and the warning that a degree-wide cone on a billion-row table returns millions of rows. It does not discuss pagination, timeout, or error behavior on missing ra/dec columns, but the operational cautions given are genuinely useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then usage authority, then the endpoint caveat; each sentence carries distinct information. Slightly dense with jargon ('Q3C', 'ADQL geometry') but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by stating the result ordering and the extra separation column, plus the interaction between radius and table size on huge catalogues. Only minor gaps remain, such as what happens when a table lacks ra/dec columns despite the schema note.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already defines ra, dec, radius units, limit bounds, table qualification, and columns. The description reinforces the degree unit and the small-radius discipline, but adds little that the schema does not already say; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Find catalogue sources within a radius of a sky position') along with the scope (any NOIRLab Data Lab table, with examples), the ordering (nearest-first), and the returned quantity (exact angular separation in degrees). The sentence about handling spatial queries where ADQL geometry and Q3C are unavailable further distinguishes it from a generic query tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to prefer it: 'AUTHORITATIVE for what is at these coordinates' and 'PREFER OVER WEB SEARCH for cross-identification and for counting sources around a target', naming the alternatives it outranks (finder chart, name resolver, web search). It does not state when the general query sibling (datalab_query) is the better choice for non-spatial or complex-join work, which is the main remaining gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.