Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

CMB Data MCP Server, organised by kind of data. Maps: Planck PR3 SMICA/Commander maps + masks (fetch_cmb_map, downloaded once and downgraded to nside<=1024; plot_cmb_map); measure_cmb_power_spectrum turns a map into YOUR OWN TT power spectrum (use the hm1 x hm2 cross). Summary statistics: public CMB bandpowers with covariances (Planck PR3, ACT DR6, SPT-3G D1/2018) and lensing bandpowers. Published results (COMPARISON ONLY, never a measurement or prior): published chains (Planck 2018, ACT DR6), the Planck best-fit theory, and compare_with_published_constraints. Build analyses on maps and bandpowers and compare with published results last. Start with list_cmb_datasets; list_cmb_skills for recipes (cmb-tour first, planck-map-to-power-spectrum for map -> power spectrum). Units: D_ell = ell(ell+1)C_ell/2pi in muK^2; lensing [L(L+1)]^2 C_L^phiphi/2pi. Tools that write files take an output_dir and return ArtifactResult; pass file paths between tools, never raw arrays. chi2 from Planck/SPT plotting products is diagonal-only (indicative); ACT DR6 and lensing use full covariances. Heavy tools (fetch_cmb_map, measure_cmb_power_spectrum, analyze_chain, compute_lcdm_theory_spectrum) can run on ALCF/NERSC via the hep-genesis IRI dispatch engine (set_dispatch / export_dispatch_pack); this server holds no facility credentials.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_cmb_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.

describe_cmb_datasetB

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

list_cmb_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.
load_cmb_skillA

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

fetch_cmb_spectrumA

Fetch one public CMB bandpower spectrum and write it as a tidy CSV.

Use this first for any spectrum task. Columns: ell, D_ell, err_lo, err_hi (+ ell_min,
ell_max when bins are known; + planck_best_fit for Planck binned). Units: D_ell =
ell(ell+1)C_ell/2pi in muK^2; PP is [L(L+1)]^2 C_L^phiphi/2pi (ACT/SPT C^kk converted).
If the dataset ships a covariance (ACT DR6, all lensing) it is saved as <stem>_cov.npy.
plot_cmb_spectraA

Plot D_ell bandpowers with error bars for one or more experiments + LCDM + residuals.

Use to reproduce the Planck 2018 TT/TE/EE figure (datasets=['planck_pr3']) or the
SPT-3G D1 / ACT DR6 / Planck overlay (Camphuis+25 Fig.1: ['planck_pr3','act_dr6','spt3g_d1'],
log_y=True for TT/EE). Residuals are D_ell - theory with the same errors.
compute_cmb_residualsA

chi2 of one experiment's bandpowers against an LCDM theory spectrum, plus residuals.

Uses the full covariance when the release has one (ACT DR6 TT/TE/EE block, all lensing
datasets, with Hartlap factors) and the bandpower windows when available; otherwise the
diagonal errors (Planck/SPT plotting products: chi2 is INDICATIVE, correlations ignored;
Planck unbinned uses the mean of the asymmetric errors). Reports chi2, N, PTE.
compute_lcdm_theory_spectrumA

Compute a lensed LCDM TT/TE/EE/BB + lensing-potential theory spectrum to CSV.

Model computation: with camb and YOUR parameters this is your own model for
fitting the bandpowers. Uses camb (optional dependency, lazily imported; or a facility
node via set_dispatch). Without camb and without params it falls back to the bundled
Planck 2018 published best-fit theory file (ell<=2508) - that is a published result
(comparison only), flagged in metadata.model_source; say so when reporting. Pass the CSV as theory_file to
plot_cmb_spectra / compute_cmb_residuals / plot_lensing_spectrum.
plot_lensing_spectrumA

Plot CMB lensing-potential bandpowers [L(L+1)]^2 C_L^phiphi/2pi for Planck/ACT/SPT.

Shows Planck PR3 (8<=L<=400), ACT DR6 baseline (40<=L<=763) and SPT-3G D1 GMV bandpowers
with the LCDM prediction, and reports each dataset's amplitude A_lens = best-fit scaling of
the theory (full covariance) with its error.
fetch_cmb_mapA

Fetch a Planck PR3 component-separated CMB MAP and its common mask, downgraded.

Use this to start any map-level analysis (own power spectrum, cutouts, cross-correlation).
The nside-2048 FITS is downloaded ONCE from IRSA with resumable parallel range requests
into the data cache, then ud_graded to `nside` (RING, Galactic, muK_CMB); the downgraded
map and mask are cached so later calls are instant. Planck PR3 SMICA/Commander beam: 5'
FWHM Gaussian. Returns the map/mask paths (pass to measure_cmb_power_spectrum /
plot_cmb_map), rms in the mask and fsky. Heavy (first call: minutes of download).
measure_cmb_power_spectrumA

Measure the CMB TT (optionally EE/TE/BB) power spectrum FROM A MAP (from map to power spectrum).

Use this for your own spectrum from Planck maps (instead of the released bandpowers).
Pseudo-C_ell via healpy anafast of the (apodised) masked map, divided by fsky = <w^2>,
the Gaussian beam^2 and the HEALPix pixel window^2; monopole/dipole removed. Binned in
Delta-ell = 30 bins like the PLA TT file; errors are Knox cosmic-variance only (no noise
term). Auto-spectra carry noise bias (SMICA: noticeable above ell ~ 1000), so pass the
hm1/hm2 pair for a cross-spectrum. Heavy, dispatchable (set_dispatch). Sanity: first
peak at ell ~ 220 with D_ell ~ 5700-5800 muK^2; within a few % of Planck TT at 30<ell<1500.
plot_cmb_mapA

Mollweide (Galactic) PNG of a HEALPix CMB map, with the mask greyed out.

Use after fetch_cmb_map to show the component-separated CMB map. Reports the pixel rms inside the mask.
fetch_cmb_chainA

[Published result - for comparison only] Published result, comparison only: download and extract ONE published MCMC chain (never the 11 GB grid).

Returns the getdist chain root path (pass to analyze_chain / plot_triangle) and the parameter list. First call downloads into the cache; later calls are instant.

analyze_chainA

[Published result - for comparison only] Published result, comparison only: getdist marginal statistics (mean, std, 68/95%) of a PUBLISHED chain.

Use only to compare against your own fit of maps / bandpowers; never feed these numbers into a fit as a measurement or prior.

Heavy: downloads/extracts the chain on first use. With set_dispatch('polaris'| 'perlmutter') it runs as one facility job (the node downloads the archive itself). Sanity check (Planck 2018): H0 67.36+-0.54, omegam 0.3153+-0.0073, sigma8 0.8111+-0.0060.

plot_triangleA

[Published result - for comparison only] Published result, comparison only: getdist triangle plot (68/95% contours) of published CMB chains.

Overlay planck_pr3 with act_dr6_lite to show the Planck-vs-ACT LCDM agreement.

compare_with_published_constraintsA

[Published result - for comparison only] Published result, comparison only: whisker plot of PUBLISHED H0, S8, Omega_m, n_s (sigma8) constraints.

Every entry is a published inference product (chains or tables) across CMB experiments and late-time probes - for the final "compare with published" step of an analysis.

Every point is either a getdist analysis of a public chain (marked 'chain') or a published table value with its citation. Reports the Gaussian tension of each entry vs the reference: (x - x_ref) / sqrt(s^2 + s_ref^2) - e.g. SH0ES vs Planck H0 ~ 4.9 sigma.

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.
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.
get_dispatchA

Report where THIS server's heavy tools currently execute.

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.

Prompts

Interactive templates invoked by user choice

NameDescription
cmb-experiment-comparisonPlanck vs ACT DR6 vs SPT-3G - overlay TT/TE/EE bandpowers (Camphuis+25 Fig. 1), chi2 of each experiment against one common LCDM theory to ell=6600, lensing amplitudes, and a chain-level triangle comparison
cmb-tourTour of the CMB Data server - Planck PR3 component-separated CMB map -> your own TT spectrum and released Planck/ACT/SPT bandpowers -> your own LCDM fit/chi2 -> compare with published chains (published results, for comparison only), with the numbers to expect
h0-s8-tension-whiskerPublished results (for comparison only) - build the H0 / S8 / Omega_m / n_s whisker plot across Planck, ACT, SPT-3G, CMB-SPA, SH0ES, DES Y3 and KiDS from public chains + cited tables and quantify the Hubble and S8 tensions in sigma
hpc-dispatch-handoffRun this server's heavy kernels (Planck map download + downgrade, pseudo-C_ell from maps, getdist chain analysis with on-node chain download, camb LCDM spectra) on ALCF Polaris or NERSC Perlmutter through the hep-genesis IRI engine - client-side pack export (hosted) or server-side set_dispatch (own machine)
planck-map-to-power-spectrumFrom map to power spectrum - download the Planck PR3 SMICA-noSZ half-mission maps + common mask, downgrade to nside 1024, plot the map, and measure the TT power spectrum yourself (pseudo-C_ell hm1 x hm2 cross, beam/pixel-window/fsky corrected), then validate it against the released Planck bandpowers
reproduce-planck-tt-spectrumReproduce the Planck 2018 TT (and TE/EE) power-spectrum figure with the best-fit LCDM curve and residual panel, check chi2 against the PLA best fit, and optionally recompute the theory with camb

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 20 tools

Disambiguation4/5

Tools are mostly cleanly separated by resource and action (fetch map vs fetch spectrum vs fetch chain; plot_map vs plot_spectra vs plot_lensing_spectrum). The closest pair is fetch_cmb_spectrum vs measure_cmb_power_spectrum (released bandpowers vs own pseudo-C_ell from a map), but the descriptions explicitly distinguish them. Infrastructure tools (dispatch, skills, discovery) are clearly bounded.

Naming Consistency5/5

Every tool follows snake_case verb_noun with a coherent cmb/lensing domain namespace (fetch_cmb_map, plot_cmb_spectra, compute_lcdm_theory_spectrum, compute_cmb_residuals). Even the infrastructure tools follow the same pattern (get_dispatch, set_dispatch, auth_status, export_dispatch_pack). No mixed conventions.

Tool Count4/5

20 tools is on the heavy side but the domain genuinely spans maps, spectra, lensing, chains, theory, and HPC dispatch, so most tools earn their place. A few infrastructure tools (list/load skills, export_dispatch_pack) inflate the count beyond core science operations. Slightly over-scoped but defensible.

Completeness4/5

Covers the full analysis lifecycle: discovery, map fetch, measured/released spectra, theory, residuals, lensing, chain analysis, triangle plots, and published-constraint comparison. Minor gaps exist (no explicit parameter-fitting tool despite references to fitting, no cache/artifact management or deletion), but agents can work around them with external code.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues