Skip to main content
Glama
clusters-mcp-server
by HEP-KE

fetch_cluster_catalog

Downloads and harmonizes a selected galaxy-cluster catalogue, applies redshift, mass, SNR, or richness cuts, and writes a CSV path that other catalogue tools use.

Instructions

Download one cluster catalogue (first use only) and write a harmonised CSV with cuts applied.

Use this first: every other catalogue tool takes the CSV path it writes.
Columns: name, ra, dec [deg], z, z_err, M500 [1e14 Msun, M500c], M500_err_lo,
M500_err_hi, snr (survey-native statistic), survey, dataset. NaN = missing.
des_y6_wazp (optical) has M500 = NaN everywhere and extra columns richness,
richness_err (NGALS), z_spec, in_cosmo, cover_frac; cut on richness, not mass.

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>",
      "dataset": "<dataset>"
    },
    "name": "fetch_cluster_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
z_maxNoMaximum redshift.
z_minNoMinimum redshift (drops entries without z).
datasetYesCatalogue key: psz2, spt_sz, sptpol_100d, spt_ecs, spt3g_5yr, act_dr6, erass1, erass1_cosmo, des_y6_wazp (optical, richness instead of mass) (see list_clusters_datasets).
snr_minNoMinimum native detection statistic (xi / SNR / EXT_LIKE).
m500_maxNoMaximum M500c in 1e14 Msun.
m500_minNoMinimum M500c in 1e14 Msun.
output_dirYesDirectory for output files (created if missing).
require_massNoKeep only entries with an M500 estimate.
richness_maxNoOptical catalogues only: maximum richness.
richness_minNoOptical catalogues only (des_y6_wazp): minimum richness NGALS (Benoist+25 use >=25 for a clean sample).
in_cosmo_onlyNodes_y6_wazp only: keep IN_COSMO clusters (z below the local ZMAX depth, homogeneous richness) - use for counts.
include_membersNodes_y6_wazp only: also download the members FITS (1.05 GB, 13.1M rows) and write the members of the selected clusters (ID_CLUSTER, RA, DEC, ZPHOT, PMEM, MAG_*) to a second CSV. Slow on first use.
require_redshiftNoKeep only entries with a redshift.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full disclosure burden and does well: it reveals that a download happens only on first use, that files are written to disk, the exact output columns and units, and NaN semantics for missing values. It omits whether an existing CSV is reused or overwritten, and any auth/network prerequisites.

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

Conciseness5/5

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

Front-loaded with the action and the prerequisite warning, then a compact column contract, then dataset-specific caveats. Telegraphic style with no wasted sentences; the column list earns its space by defining the downstream interface.

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?

For a 13-parameter tool with disk side effects, the description covers output location, schema, and dataset quirks; an output schema exists so return values need no explanation. The remaining gap is behavior on repeat invocation and any permission or size caveats for the base download.

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 documents every cut parameter in detail. The description reinforces the one non-obvious selection rule (for des_y6_wazp, filter on richness because M500 is NaN everywhere), but otherwise adds little parameter meaning beyond what the schema states.

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 states a specific verb and resource ("Download one cluster catalogue ... write a harmonised CSV with cuts applied") and immediately distinguishes its role from siblings: "Use this first: every other catalogue tool takes the CSV path it writes." An agent can identify both the action and this tool's position in the workflow without opening any 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?

Sequencing guidance is explicit and front-loaded ("Use this first"), and it explains why: downstream catalogue tools consume the CSV path. It also gives conditional usage guidance for a specific dataset ("cut on richness, not mass"). It stops short of naming when-not to use it or an alternative for already-downloaded catalogues.

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