Skip to main content
Glama

catalog_stars

List Gaia catalogue stars for a plate-solved view—image x/y, RA/Dec, G, BP-RP, in-frame check, and saturation—for annotation or photometric calibration.

Instructions

List catalogue stars over a plate-solved view from PixInsight's local Gaia database: one Gaia search centred on the image, with a radius reaching its corners (plus margin_fraction), down to mag_limit. Per star: image x, y, RA, Dec, G, BP-RP where the catalogue has them, whether it falls inside the frame, and for in-frame stars the peak luminance in a 5x5 box (with saturated = peak >= saturation_level when that is given). data_release omitted: releases are asked get-info in the order DR3/SP, DR3, EDR3, DR2 and the earliest of them that reports valid is searched; a failed search is reported, not retried on another release. supplement adds stars the catalogue lacks (marked with their name); a Gaia star within merge_px of one is replaced by it. Sorted by G, brightest at the top. The full list is written to a JSON file under /agentic/scratch/catalog; the reply carries it inline up to 200 stars.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
view_idYesPlate-solved view
merge_pxNoDistance in pixels within which a Gaia star is replaced by a supplement star (default 3)
mag_limitYesFaintest G magnitude listed
supplementNoStars to add: [{ra, dec, mag, name}] in degrees and catalogue-band magnitude
data_releaseNoGaia data release to search; omitted, the earliest valid one in the order DR3/SP, DR3, EDR3, DR2
margin_fractionNoExtra search radius as a fraction of the centre-to-corner radius (default 0.05)
saturation_levelNoPeak luminance at or above which an in-frame star is flagged saturated; omitted, no flag

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.4.1

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations to lean on, the description carries the full behavioral burden and does so well: it discloses the data-release fallback order and that failed searches are reported rather than retried, the supplement-merge behavior with merge_px replacement, the saturated flagging rule, the G-sorted order, and the 200-star inline limit with full output written to a scratch JSON file. Failure semantics and side effects are unusually explicit.

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?

The purpose and search scope are front-loaded, and despite being a single dense paragraph, each clause conveys distinct information (search geometry, returned fields, release fallback, supplements, ordering, output destination). It is long but justified by the tool's complexity, with only minor packing of multiple ideas per sentence.

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

Completeness5/5

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

For a 7-parameter tool with a nested supplement array and no output schema, the description fully compensates by enumerating the returned per-star fields (x, y, RA, Dec, G, BP-RP, in-frame status, peak luminance, saturation) and the file/inline output behavior. An agent has everything needed to invoke and interpret the call correctly.

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

Parameters4/5

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

Schema coverage is already 100%, so the schema documents each parameter, but the description adds real semantic value beyond it: it clarifies that margin_fraction extends the center-to-corner radius, that merge_px governs replacement of a Gaia star by a supplement star, that saturation_level drives the saturated flag, and that an omitted data_release triggers an ordered fallback. This meaningfully enriches several parameters.

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?

The description names a specific verb and resource ('List catalogue stars over a plate-solved view from PixInsight's local Gaia database') and specifies the exact scope (one Gaia search centered on the image with a corner-reaching radius). This is clearly distinguishable from siblings like measure_stars or measure_star_layer, which measure detected stars rather than querying a Gaia catalogue.

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

Usage Guidelines3/5

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

Usage is implied through the precondition that the view must be plate-solved, but the description never states when to prefer this over alternatives such as measure_stars or run_plate_solve workflows. No explicit exclusions or alternative routing are given, leaving the agent to infer the use case from context.

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