Skip to main content
Glama
Weak Lensing Surveys MCP Server

Weak Lensing Surveys MCP Server

fetch_shear_catalog

Download a targeted subset of the KiDS-1000 gold weak-lensing shear catalogue as a slim FITS, cut by sky region, tomographic bins, and row limit for catalogue-level analysis.

Instructions

Download a SUBSET of the KiDS-1000 gold weak-lensing shear catalogue as a slim FITS.

Use this first for any catalogue-level / measure-it-yourself question.
The 17.7 GB, 21.3M-galaxy file is never downloaded whole: whole tiles
are read with HTTP Range requests using the bundled tile->row index,
then cut to the RA/Dec box, tomographic bins and row limit. Columns:
ra, dec, e1, e2 (raw lensfit ellipticities, NOT m-corrected), weight,
z_b (BPZ photo-z) + z_b_min/max, mag_r, snr, psf_e1/2, tomo_bin, tile.
Tiles are cached per tile in the data cache, so repeats are free.
Pick a contiguous block (ra_range/dec_range) for correlation work.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "output_dir": "<output_dir>"
    },
    "name": "fetch_shear_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchNoKiDS-North (equatorial, RA 128-238) or KiDS-South (Dec ~ -31, RA 330-55).
tilesNoExplicit KiDS tile names, e.g. ['KIDS_180p0_m0p5'] (1x1 deg each; names encode the centre RA/Dec).
datasetNoSurvey. Only kids_1000 has a publicly downloadable catalogue; the others raise with the reason.kids_1000
max_rowsNoStop once this many galaxies pass the cuts.
ra_rangeNo[ra_min, ra_max] deg; ra_min > ra_max wraps through 0.
dec_rangeNo[dec_min, dec_max] deg.
max_tilesNoCap on tiles read (~18 MB of the remote file and ~10-40 s per tile).
tomo_binsNoKeep only these KiDS-1000 tomographic bins (1-5: z_B edges 0.1,0.3,0.5,0.7,0.9,1.2).
output_dirYesDirectory where output files are written.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: the 17.7 GB file is never downloaded whole, whole tiles are read via HTTP Range requests against a bundled tile->row index, tiles are cached so repeats are free, and only kids_1000 is downloadable. The 'raw lensfit ellipticities, NOT m-corrected' caveat is exactly the kind of behavioral detail an agent needs before using the values.

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 one-sentence purpose, followed by ordering guidance and then mechanics; no filler prose. Minor redundancy: the column list overlaps with the existing output schema, and the ~18 MB / 10-40 s per-tile cost restates the max_tiles schema description.

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 9-parameter tool with no annotations, the description supplies the download strategy, cost model, caching behavior, and selection guidance an agent needs, while the output schema covers return values. Nothing essential to calling it correctly is missing.

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% and every parameter is documented in the schema itself, so the baseline is 3. The description reinforces the ra_range/dec_range pattern ('pick a contiguous block') but adds no syntax or constraint detail beyond the schema, and its column listing describes output rather than parameter meaning.

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 ('Download a SUBSET of the KiDS-1000 gold weak-lensing shear catalogue as a slim FITS') and makes the scope explicit ('SUBSET', 'slim FITS'), which separates it cleanly from the sibling plotting/measurement tools. An agent can tell what it produces without opening the schema.

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?

'Use this first for any catalogue-level / measure-it-yourself question' gives a clear routing rule, and 'Pick a contiguous block (ra_range/dec_range) for correlation work' gives a usage pattern. It stops short of naming an explicit alternative or exclusion (e.g. when to prefer measure_nz_from_catalog), so it is clear context rather than a full when/when-not statement.

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