Skip to main content
Glama
Weak Lensing Surveys MCP Server

Weak Lensing Surveys MCP Server

weak-lensing-mcp-server

MCP server ("Weak Lensing Surveys MCP Server", tool prefix wl) for public weak-lensing data: the KiDS-1000 gold shear catalogue (read as sky/tile/bin subsets), the data vectors, n(z) and covariances of DES Y3, KiDS-1000, KiDS-Legacy and HSC Y3 (summary statistics), and their published chains / S8 values (published results, for comparison only). DES Y6: published chains are public and served; the Y6 2pt data vectors / covariance are not yet public (placeholder hook). A CAMB-based theory tool predicts xi+- with optional baryonic suppression. It is part of the cosmo-*-mcp family, built from cosmo-mcp-template.

Data products

Analyses are built on catalogs and summary statistics. Published results are for comparison only and are never fed in as data or as a prior.

dataset

Catalogs

Summary statistics (+ cov)

Published results (comparison only)

access

kids_1000

gold WL shear catalogue, 21,262,011 galaxies / 1006 deg^2 (Giblin+21): ra, dec, e1, e2, weight, z_B, mag, SNR, PSF e

xi+-, COSEBIs, band powers, SOM n(z), cov

MultiNest chains (xipm / COSEBIs / bp)

catalogue: 17.7 GB FITS read by HTTP Range as subsets (tile, N/S patch, RA-Dec box, tomo bin, row limit); release tarball 17 MB

des_y3

Metacal shape catalogue public but 312 GB HDF5 with no subset service: not fetched

xi+-, gamma_t, w(theta), n(z), cov

~30 chains

download (28 MB FITS)

kids_legacy

shear catalogue not publicly linked (2026-11-04)

xi+-, COSEBIs E/B, band powers E/B, n(z), cov

Nautilus chains

download (131 MB)

hsc_y3

shape catalogue needs an HSC-SSP account (HTTP 401)

real xi+-, Fourier C_ell, n(z), cov

chains (credentialed)

download (CSL mirror)

des_y6

-

not yet public (placeholder: fetch_wl_datavector returns a notice)

Nautilus / emcee chains: 1x2pt, 2x2pt, 3x2pt LCDM/wCDM, + CMB/BAO/SN/clusters

chains: download (2.5-390 MB; 4.5 GB wCDM only with allow_large)

(all)

published S8 table (PUBLISHED_S8), Planck 2018 S8

built in

Catalogue notes: the KiDS-1000 catalogue rows are interleaved across tiles in short runs, so a bundled index (data/kids1000_gold_tile_runs.npz, 0.6 MB, 96,741 runs over 988 tiles; rebuild with scripts/build_kids1000_tile_index.py) maps each tile to its row ranges. A tile costs ~17 MB of remote reads (all 51 columns), and the slim 13-column subset is cached per tile under kids_1000/shearcat_tiles/. DES Y3 shape catalogues: desdr-server.ncsa.illinois.edu/despublic/y3a2_files/y3kp_cats/DESY3_metacal_v03-004.h5 (312,037,859,376 bytes; see des.ncsa.illinois.edu/releases/y3a2/Y3key-catalogs). These are practical only on a facility (h5py + the 27 GB index catalogue), so the server raises a clear error.

Related MCP server: spectra-mcp-server

Datasets

key

products

access

source (verified 2026-11-04)

des_y3

xi+-, gamma_t, w(theta), n(z) source+lens, 1000x1000 cov; ~30 chains

download (28 MB FITS, 5-50 MB chains)

desdr-server.ncsa.illinois.edu/despublic/y3a2_files/{datavectors,chains}/

des_y6

13 published chains (fetch_des_y6_chain); 2pt data vectors not yet public

download

desdr-server.ncsa.illinois.edu/despublic/y6a2_files/y6_key/chains_release/ (verified 2026-11-12)

kids_1000

shear catalogue; xi+-, COSEBIs, band powers, n(z), cov; MultiNest chains

catalogue: Range-read subsets of the 17.7 GB FITS (kids.strw.leidenuniv.nl/DR4/data_files/KiDS_DR4.1_ugriZYJHKs_SOM_gold_WL_cat.fits); release: 17 MB tarball

kids.strw.leidenuniv.nl/DR4/data_files/KiDS1000_cosmic_shear_data_release.tgz

kids_legacy

xi+-, COSEBIs E/B, band powers E/B, n(z), cov; Nautilus chains

download (131 MB tarball)

kids.strw.leidenuniv.nl/sci_data/KiDS_Legacy_cosmic_shear_data_release.tar.gz

hsc_y3

real-space xi+- (Li+23), Fourier C_ell SACC (Dalal+23), n(z), cov

download (CosmoSIS standard library mirror); chains credentialed

raw.githubusercontent.com/cosmosis-developers/cosmosis-standard-library/main/likelihood/hsc_cosmic_shear/

Notes: the KiDS server's TLS chain fails with some Python default CA stores, so downloads use a certifi-backed opener inside tools/datavectors/io.py. The HSC portal (hsc-release.mtk.nao.ac.jp) returns HTTP 401 without HSC-SSP credentials. HSC chains therefore raise an error with manual-download steps. Save the chain as ~/.cache/cosmo-mcp/weak-lensing-mcp-server/hsc_y3/<chain>.txt and the tools pick it up. Only the 0.6 MB KiDS-1000 tile index is bundled; the cache is ~/.cache/cosmo-mcp/weak-lensing-mcp-server ($COSMO_MCP_DATA).

Tools

Shear catalogue (tools/catalogs):

  • fetch_shear_catalog(output_dir, tiles | patch | ra_range/dec_range, tomo_bins, max_tiles, max_rows) (heavy) - KiDS-1000 gold catalogue subset -> slim FITS

  • plot_shear_catalog - e1/e2, weight, z_B histograms + sky footprint; sigma_e, n_eff, c-terms

  • measure_shear_correlation (heavy, dispatchable kernel catalogs.kernels.shear_correlation, treecorr) - from shear catalogue to xi+/xi- per bin pair, weights, m-correction, c-term removal; CSV in the fetch_wl_datavector layout. compute_bmodes=True adds aperture-mass E/B modes <M_ap^2>, <M_x^2> (treecorr calculateMapSq) to a CSV and reports chi2(<M_x^2> = 0); max_galaxies_per_bin subsamples

  • measure_nz_from_catalog - from shear catalogue to a weighted z_B histogram per bin, overlaid on the released SOM n(z)

Summary statistics (data vectors):

  • compare_measured_with_published_xi - your measured xi vs the released KiDS-1000 xi per bin pair (chi2, ratio)

  • fetch_wl_datavector(dataset, statistic) - tidy CSV (bin1, bin2, angbin, x, value, error) + covariance .npy

  • plot_shear_correlation - xi+ / xi- triangle of bin pairs (DES/KiDS paper style)

  • plot_redshift_distributions - n(z) per tomographic bin, multi-survey

  • plot_covariance - correlation matrix, PD check, condition number

  • compute_signal_to_noise - sqrt(d^T C^-1 d) with cross-covariance

  • predict_shear_correlation (tools/theory, needs camb: extra [theory]) - GG-only xi+/xi- per bin pair at your theta for a served n(z) (kids_1000, kids_legacy, des_y3, hsc_y3) or your own n(z) file, cosmology (Om, Ob, h, ns, sigma8 or S8, mnu), CAMB halofit P(k) + Limber + J0/J4 quadrature; optional baryon_file (hydroemu-mcp-server P(k) ratio CSV or k, z, ratio) multiplied into P(k), output adds DMO columns and xi ratios; compare_dataset fits A = data / theory

Published results (for comparison only):

  • fetch_des_y6_chain(output_dir, chain) - DES Y6 published chain (default fiducial 3x2pt LCDM, 370 MB) -> weighted mean/std/68% for Om, sigma8, S8 (+ w, wa), JSON + slim CSV + Om-S8 contour

  • fetch_wl_chain - published chain -> slim CSV (weight, Om, sigma8, S8, h0, w)

  • analyze_wl_chain (heavy, dispatchable kernel chains.kernels.chain_marginals) - marginals, mode/HPD

  • plot_s8_om_contours - multi-survey 68/95% contours with Planck band

  • compare_s8_with_published - S8 whisker plot vs Planck 2018 (0.832 +/- 0.013) and tension in sigma

  • meta: list_wl_datasets, describe_wl_dataset, list_wl_skills, load_wl_skill; dispatch tools from the template

Skills: wl-tour, measure-kids1000-xi-from-catalogue (shear catalogue to xi+-), s8-tension-across-surveys (published results, for comparison only), reproduce-des-y3-shear-figure, wl-datavector-inspection, hpc-dispatch-handoff.

Sanity numbers, from shear catalogue to xi+- (this server, KiDS-1000 catalogue subsets)

Subset: KiDS-North RA 170-190, Dec -2..+2 = 79 tiles, 1,714,314 galaxies (~64 deg^2 unmasked); 790 MB of Range reads, ~6 min.

quantity

this server

literature / release

sigma_e per component

0.265

~0.27 (Giblin+21)

n_eff (occupied area)

5.1 arcmin^-2

6.2 (Giblin+21, unmasked area)

mean z_B per bin (catalogue)

0.22 / 0.41 / 0.61 / 0.80 / 1.02

SOM n(z) means 0.26 / 0.40 / 0.56 / 0.79 / 0.98

xi+ (4-5) at 13.5 arcmin

1.2e-5 +/- 0.8e-5 (jackknife, 40 patches)

release 1.8e-5 +/- 0.2e-5 at 12.3 arcmin

amplitude A = measured / released xi+ (theta > 2', release cov x 777.4/63.9)

0.86 +/- 0.18, chi2 = 82.2/105

1

same for xi-

0.86 +/- 0.19, chi2 = 114.1/105

1

treecorr time, 15 pairs x 9 bins, 40 jackknife patches

243 s (4-core laptop)

-

KiDS-1000 catalogue QA measured vs released xi+ catalogue z_B vs SOM n(z)

Sanity numbers, published results (from the public chains, for comparison only)

These S8 values are the surveys' own inference, used for comparison only.

chain

S8 (mean +/- std)

paper

DES Y6 3x2pt LCDM (fiducial)

0.7888 +/- 0.0112 (Om 0.325 +/- 0.023, sigma8 0.759 +/- 0.033)

0.789 +/- 0.012 (Om 0.333 +0.023/-0.028)

DES Y6 cosmic shear (1x2pt)

0.783 +/- 0.017 (Om 0.321 +/- 0.041)

-

DES Y6 3x2pt + CMB

0.811 +/- 0.008 (Om 0.312 +/- 0.008)

-

DES Y3 3x2pt LCDM

0.776 +/- 0.018

0.776 +/- 0.017

KiDS-1000 COSEBIs

0.751 +/- 0.022 (mode 0.760, max-post 0.760)

0.759 +0.024/-0.021 (MAP, PJ-HPD)

KiDS-Legacy COSEBIs

0.814 +/- 0.019

0.813 +/- 0.018 (mean)

HSC Y3 real space

credentialed chain - published value used

0.769 +0.031/-0.034

Sanity numbers, theory (predict_shear_correlation vs served xi+, 0.5-75 arcmin, diagonal errors)

GG-only prediction (no intrinsic alignments), so A = data / theory slightly below 1 is expected.

n(z) + data

cosmology

A

KiDS-1000

Om 0.27, S8 0.76

0.892 +/- 0.025

DES Y3

Om 0.29, S8 0.78

0.945 +/- 0.013

DES Y3

Planck: Om 0.315, S8 0.832

0.809 +/- 0.011

B-mode null test (KiDS-1000, 6 tiles around RA 170.5, Dec 0.5, bins 3-5, 60k galaxies per bin max): chi2(<M_x^2>=0) = 23.2 / 32, PTE 0.87.

DES Y3 xi+- S8 vs Planck S8-Om

Install / run

uv venv --python 3.12 .venv && uv pip install --python .venv/bin/python -e ".[dev,theory]"
.venv/bin/python -m mcp_server --transport stdio            # or ./run_server.sh
.venv/bin/python -m mcp_server --transport streamable-http   # port 8013

treecorr>=5.0.1 is a core dependency (5.0.1 is the last release with a macOS x86_64 wheel; newer ones build from source). Optional extras: theory (camb, for predict_shear_correlation; pyccl is not used because its macOS wheels need libomp), getdist (not required; contours use a weighted smoothed histogram). sacc is a core dependency (HSC Fourier C_ell + n(z)). Tests: MPLBACKEND=Agg .venv/bin/python -m pytest -q (-m "not network" offline).

Available Tools

24 tools
analyze_wl_chainA

[Published result - for comparison only] Marginal S8, Omega_m, sigma8 (h, w) of a PUBLISHED chain (published result, for comparison only).

Use to quote a survey's parameter constraints. Reports mean +/- std, median with 16/84% quantiles, 95% intervals, and the marginal mode with 68% HPD (KiDS papers quote MAP/mode + PJ-HPD; DES quotes mean +/- std). Heavy: downloads tens of MB; with set_dispatch it runs the chains.kernels.chain_marginals kernel on the facility instead. Sanity: des_y3 3x2pt_lcdm S8 = 0.776 +/- 0.017.

Inputs: chain (required), dataset (required), output_dir (required). Returns: Uniform result contract returned by every tool.

auth_statusA

Report the facility sign-in state THIS server sees for its own HPC dispatch (ALCF and NERSC).

Call this before set_dispatch to a remote site, or when one of this
server's remote calls fails with an auth error. It says nothing about
the facility servers' own tokens - ask those servers directly. Sign-in
happens outside this server (hep-genesis auth CLIs or the desktop app's
HPC panel); tokens are re-read on every call.

Inputs: no named parameters. Returns: result

compare_measured_with_published_xiA

Overlay your own catalogue-measured xi+/- on the released KiDS-1000 xi+/- (both summary statistics) per bin pair.

Use after measure_shear_correlation to validate the measurement. The
release covers ~1006 deg^2 (777 deg^2 effective), a subset only a few,
so expect agreement within the subset's (much larger) errors plus
cosmic variance, not point-by-point. Reports chi2 of (measured -
released) using the measured errors only, per pair and in total, the
ratio of weighted means over 5-60 arcmin, and one amplitude
A = <measured / released shape> over all pairs at theta > 2' (A = 1
means the subset reproduces the release; A = 0 means no signal).

Inputs: output_dir (required), measured_xip_csv (required), dataset, statistic, +1 more. Returns: Uniform result contract returned by every tool.

compare_s8_with_publishedA

[Published result - for comparison only] Compare S8 with published values: whisker plot vs Planck 2018 and tension in sigma (published result, for comparison only).

Use for 'is there an S8 tension' questions. Tension per entry is the Gaussian difference-in-means (S8_ref - S8) / sqrt(sigma^2 + sigma_ref^2), taking the survey error on the side facing the reference for asymmetric errors. This is the simple 1D estimate the papers quote as a first number (DES Y3 3x2pt ~2.3 sigma, KiDS-1000 ~3 sigma, KiDS-Legacy < 1 sigma); full-posterior metrics differ at the few-0.1 sigma level.

Inputs: output_dir (required), marginals_json, reference_mean, reference_sigma, +1 more. Returns: Uniform result contract returned by every tool.

compute_signal_to_noiseA

S/N = sqrt(d^T C^-1 d) of the published data vector, using its full covariance.

Use for 'how significant is the detection' questions. Statistics listed together are combined with their cross-covariance (they must live in the same file, e.g. xip+xim, or all four DES 3x2pt blocks). No scale cuts are applied (DES files are uncut), so this is the raw measurement S/N. Writes a CSV summary.

Inputs: datasets (required), output_dir (required), statistics (required). Returns: Uniform result contract returned by every tool.

describe_wl_datasetA

Full description of one dataset: products, units, conventions, URLs, citation.

Inputs: name (required). Returns: Uniform result contract returned by every tool.

export_dispatch_packA

Hand THIS server's compute kernels to the client for HPC runs.

Returns the ``tools/`` package as in-band text files plus a manifest of
kernel entry points (dotted function path, args shape, node-side
pip_deps, walltime hint). The CLIENT - which holds the facility tokens,
Globus endpoint, project and workdir - stages and submits the kernels
with ITS OWN credentials (e.g. the hep-genesis facility servers'
run_pack_kernel tool). Nothing credential-shaped or project-shaped is
needed on, or returned by, this server.

Clients that recognise the ``dispatch_pack`` key should save the files
locally and NOT echo their contents into the conversation.

Inputs: no named parameters.

fetch_des_y6_chainA

[Published result - for comparison only] DES Y6 published chain: download, weighted Om / sigma8 / S8 (w0, wa) summaries, contour (published result, for comparison only).

Use for 'what does DES Y6 find' or to put your own analysis next to the DES Y6 posterior. Files come from the public DES Y6 chains_release (desdr-server.ncsa.illinois.edu/despublic/y6a2_files/y6_key/chains_release/) and are cached. Column names are read from the CosmoSIS header; Nautilus chains are weighted by exp(log_weight), csislike combined chains by their 'weights' column; non-finite / zero weights are dropped. Reports weighted mean, std and 16/50/84% quantiles. Writes a summary JSON, a slim chain CSV (weight, omega_m, sigma_8, S_8, ...; feeds plot_s8_om_contours / compare_s8_with_published) and optionally a PNG. Sanity (fiducial 3x2pt_lcdm): S8 = 0.789 +/- 0.012, Om = 0.333 +0.023/-0.028 (paper, arXiv:2601.14559); chain mean S8 = 0.789 +/- 0.011, Om = 0.325 +/- 0.023, sigma8 = 0.759 +/- 0.033.

Inputs: output_dir (required), plot, chain, max_rows, +1 more. Returns: Uniform result contract returned by every tool.

fetch_shear_catalogA

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.

Inputs: output_dir (required), patch, tiles, dataset, +5 more. Returns: Uniform result contract returned by every tool.

fetch_wl_chainA

[Published result - for comparison only] Download a published MCMC/nested-sampling chain and write a slim CSV (published result, for comparison only).

Use before analyze_wl_chain / plot_s8_om_contours. The CSV holds weight, omega_m, sigma_8, S_8 (derived as sigma_8 sqrt(Om/0.3) where the chain lacks it or has NaN) and h0 / w when present. DES chains are 5-50 MB each; KiDS chains come from the release tarball. HSC Y3 chains need HSC-SSP credentials (clear error + manual-download path).

Inputs: chain (required), dataset (required), output_dir (required), max_rows. Returns: Uniform result contract returned by every tool.

fetch_wl_datavectorA

Download one published 2pt statistic and write a tidy CSV.

Use this first for any data-vector question. Columns: bin1, bin2
(tomographic bin pair, 1-based; for gammat bin1=lens, bin2=source),
angbin, x (theta in arcmin, COSEBI mode n, or ell - see x_name),
value, error (sqrt of the covariance diagonal). Also writes the
statistic's covariance sub-matrix as .npy for plot_covariance /
compute_signal_to_noise. Data vectors are the published ones (scale
cuts NOT applied: DES/KiDS files are the full measured vectors; the HSC real-space
file is the CosmoSIS-library one, wider than the Li+23 analysis cuts).
KiDS downloads a 50-130 MB release tarball on first use. des_y6 returns
a not-yet-public notice (available=False, no files) until DES releases
the Y6 2pt products.

Inputs: dataset (required), statistic (required), output_dir (required). Returns: Uniform result contract returned by every tool.

get_dispatchA

Report where THIS server's heavy tools currently execute.

Inputs: no named parameters. Returns: result

list_wl_datasetsA

List the public datasets this server exposes. Call this first.

Products are grouped as catalogs (object-level data), summary statistics (measurements with covariance) and published results (chains / parameter constraints, for comparison only). Build analyses on catalogs and summary statistics. Each entry also gives access (bundled vs downloaded on first use) and which tools read it.

Inputs: kind. Returns: Uniform result contract returned by every tool.

list_wl_skillsA

List this server's skills: named multi-tool recipes.

A skill is procedural know-how - which tools to chain, in which order,
with what parameters, and how to sanity-check and report. When a task
matches one, load it with the load-skill tool and follow it.

Inputs: no named parameters. Returns: Uniform result contract returned by every tool.

load_wl_skillA

Load the full instructions of one of this server's skills and follow them.

Inputs: name (required). Returns: Uniform result contract returned by every tool.

measure_nz_from_catalogA

Weighted photo-z histogram n(z) per tomographic bin from a shear catalogue.

Use for 'what redshifts does my subset probe'. This is the naive
lensfit-weighted z_B histogram; by construction each bin is confined
to its z_B edges and lacks the outlier tails that the released,
SOM-calibrated n(z) (Hildebrandt+21, Wright+20) has - so its mean z
sits below the calibrated one for the high bins. Treat the release
n(z) as the analysis-grade product; this tool shows the selection.

Inputs: output_dir (required), catalog_fits (required), dz, z_column, +1 more. Returns: Uniform result contract returned by every tool.

measure_shear_correlationA

Measure xi+(theta) and xi-(theta) per tomographic bin pair from a shear catalogue (optional B-mode test).

Use to turn fetch_shear_catalog output into your own cosmic-shear
data vector. Weighted treecorr GG correlation with per-bin additive
c-term removal and multiplicative-bias correction xi / ((1+m_i)(1+m_j)).
Output CSV has the fetch_wl_datavector layout (bin1, bin2, angbin, x,
value, error) for xip and xim, so plot_shear_correlation and
compare_measured_with_published_xi read it directly. Errors are
shape noise (or jackknife with npatch) and do not include cosmic
variance; a few deg^2 subset gives a noisy, not unbiased-in-area,
estimate vs the 1006 deg^2 release. Sanity: theta*xi+ ~ 1e-4 x
(1-5) arcmin at 10 arcmin for z~0.5-1 pairs (Asgari+21 Fig. 1).
compute_bmodes=True adds *_mapsq_bmodes.csv (bin1, bin2, R_arcmin, mapsq,
mapsq_err, mxsq, mxsq_err, mapmx) and reports chi2(<M_x^2> = 0) per
pair and total (diagonal errors; shape noise only) - a B-mode null
test: PTE > ~0.05 means no detected B modes.
Heavy: with set_dispatch it runs catalogs.kernels.shear_correlation on the facility.

Inputs: output_dir (required), catalog_fits (required), nbins, npatch, +9 more. Returns: Uniform result contract returned by every tool.

plot_covarianceA

Plot the correlation matrix r_ij = C_ij / sqrt(C_ii C_jj) of a data vector.

Use to inspect off-diagonal structure (strong positive correlation
between neighbouring angular bins and across bin pairs at large theta
is expected for cosmic shear).

Inputs: cov_npy (required), output_dir (required), title. Returns: Uniform result contract returned by every tool.

plot_redshift_distributionsA

Plot n(z) per tomographic bin (one panel per dataset) and write them to CSV.

Use to inspect or compare redshift distributions across surveys.
Curves are normalised to unit integral; the metadata reports each
bin's mean redshift (sanity: DES Y3 sources ~0.34, 0.52, 0.74, 0.96;
KiDS-1000 ~0.26..0.93; HSC Y3 ~0.44..1.3).

Inputs: datasets (required), output_dir (required), sample. Returns: Uniform result contract returned by every tool.

plot_s8_om_contoursA

[Published result - for comparison only] Overlay published 68/95% Omega_m - S8 (or sigma8) contours (published result, for comparison only).

Use to reproduce the classic multi-survey S8-Om figure (DES Y3 Fig. 7 / Asgari+21 Fig. 5 style). Contours come from a weighted, smoothed 2D histogram (no getdist needed). The Planck S8 band is 0.832 +/- 0.013.

Inputs: chain_csvs (required), output_dir (required), labels, y_param, +1 more. Returns: Uniform result contract returned by every tool.

plot_shear_catalogA

QA plots of a shear catalogue: e1/e2 and weight histograms, z_B, and the sky footprint.

Use right after fetch_shear_catalog to check what was downloaded.
Reports weighted mean e1/e2 (the additive c-terms, ~1e-4..1e-3 for
KiDS), the per-component weighted ellipticity dispersion sigma_e
(~0.27 for KiDS-1000, Giblin+21), the effective number density
n_eff = (sum w)^2 / sum w^2 / area (Heymans+12; ~6-7 arcmin^-2 for
the KiDS-1000 gold sample) and per-bin counts.

Inputs: output_dir (required), catalog_fits (required). Returns: Uniform result contract returned by every tool.

plot_shear_correlationA

Triangle-of-bin-pairs plot of xi_+ (upper) and xi_- (lower), as in Amon+22 Fig. 1 / Asgari+21.

Use after fetch_wl_datavector. Each panel is one tomographic bin pair
(i,j); points carry the diagonal-covariance error bars. Works for any
statistic CSV (COSEBIs, band powers, C_ell) - then only the upper
triangle is drawn and x is log-scaled when it spans > 1 decade.

Inputs: xip_csv (required), output_dir (required), label, xim_csv, +1 more. Returns: Uniform result contract returned by every tool.

predict_shear_correlationA

Predict cosmic-shear xi+(theta), xi-(theta) per tomographic bin pair (CAMB halofit + Limber + Hankel), optional baryons.

Pure GG lensing signal: no intrinsic alignments, shear bias, or photo-z
shifts. P_NL(k,z) from CAMB (halofit, normalised to sigma8);
C_ell by the Limber approximation (k = (ell+1/2)/chi) in flat
cosmology; xi+- by dense Bessel J0/J4 quadrature to ell = 1e5. With
baryon_file the ratio S(k[,z]) multiplies P(k) (S -> 1 below the
tabulated k, held at its last value above), and the output also gives
the DMO prediction and the ratio xi_baryon / xi_dmo. Writes
theory_xipm.csv (bin1, bin2, theta_arcmin, xip, xim[, xip_dmo, xim_dmo,
ratio_xip, ratio_xim]) and, with plot, a triangle figure. Needs camb
(pip install camb). ~5-15 s. Validation: KiDS-1000 n(z), Om=0.27,
S8=0.76 -> served KiDS-1000 xi+ / theory = 0.90 +/- 0.03 (0.5-75
arcmin; the remaining deficit is mostly intrinsic alignments, absent
here).

Inputs: output_dir (required), h, Ob, Om, +11 more. Returns: Uniform result contract returned by every tool.

set_dispatchA

Set where THIS server's heavy tools execute: 'local' (this machine), 'polaris' (ALCF) or 'perlmutter' (NERSC).

Affects only this server's heavy (dispatchable) tools - never other
servers' dispatch state. Remote sites run each heavy call as one facility
job (staging + queue + walltime: minutes, not seconds) and need facility
sign-in - check with auth_status first. Light tools (listing, plotting,
small reads) always run locally. Optional artifact_dir sets where
produced files are fetched back to. Returns the active configuration.

Inputs: site (required), artifact_dir. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 24 tools

    Disambiguation4/5

    Most tools target distinct resources and actions, and descriptions clearly separate catalogue-level work from published data-vector, chain, and theory workflows. There is minor overlap around published-result tools, especially fetch_des_y6_chain versus fetch_wl_chain/analyze_wl_chain/plot_s8_om_contours, and catalogue-fetching versus data-vector-fetching could still confuse a careless agent.

    Naming Consistency4/5

    The set overwhelmingly uses snake_case verb_noun names such as fetch_shear_catalog, measure_shear_correlation, plot_covariance, and compare_s8_with_published. Minor deviations include inconsistent wl_ prefixes and the noun-first auth_status, but the naming remains readable and predictable.

    Tool Count3/5

    With 24 tools, the surface is heavy for a single server, though the breadth reflects several real subdomains: catalogue access, measurement, published products, plotting, theory, and HPC dispatch. Some consolidation could reduce overlap, especially in published-chain and comparison tools.

    Completeness4/5

    The tool set covers the main weak-lensing lifecycle: dataset discovery, catalogue fetching, QA, correlation measurement, n(z), published data vectors and chains, covariance/S/N plotting, theory prediction, comparison, and HPC dispatch. Minor gaps remain, such as catalogue-measured covariance generation and more explicit scale-cut handling, but agents can mostly work around them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes HACC cosmological hydrodynamic simulation emulators (GSMF, HMF, cluster profiles, P(k) suppression) as MCP tools, allowing LLM agents to predict observables and generate comparison plots.
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables LLM agents to access and analyze cosmological power spectrum data, including running CLASS model computations, retrieving eBOSS DR14 Lyman-α forest observations, and generating comparison plots, all through natural language interactions.
      -