Skip to main content
Glama
Weak Lensing Surveys MCP Server

Weak Lensing Surveys MCP Server

fetch_des_y6_chain

Download DES Y6 published chains and compute weighted Om, sigma8, and S8 summaries plus contour plots for comparing your analysis with DES Y6 posteriors.

Instructions

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

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_des_y6_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
plotNoAlso write an Omega_m - S8 68/95% contour PNG.
chainNoDES Y6 chain key: 3x2pt_lcdm (FIDUCIAL, 370 MB), 1x2pt_lcdm (cosmic shear, 15 MB), 1x2pt_nla_lcdm, 2x2pt_lcdm, 3x2pt_linbias_lcdm, 3x2pt_fixmnu_lcdm, 3x2pt_wcdm, cmb_lcdm, 3x2pt_cmb_lcdm (2.5 MB), 3x2pt_bao_sn_clusters_lcdm, 3x2pt_cmb_wcdm, 3x2pt_bao_bbn_lcdm, 3x2pt_nonlin_wcdm (4.5 GB).3x2pt_lcdm
max_rowsNoCap on rows in the slim CSV (highest-weight kept).
output_dirYesDirectory where output files are written.
allow_largeNoPermit the 4.5 GB 3x2pt_nonlin_wcdm download.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose a lot: source URL, caching, CosmoSIS header column parsing, weighting by exp(log_weight) for Nautilus vs the 'weights' column for csislike chains, dropping of non-finite/zero weights, and the reported statistics. What it omits is the cost/risk profile that matters most here: no statement of download size or duration for the default chain, no note on what happens on cache miss or partial failure, and no warning that the 4.5 GB chain is gated behind allow_large (that only appears in the schema).

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?

Dense and information-rich with little filler, and the core purpose is front-loaded in the first clause. The '[Published result - for comparison only]' tag is repeated verbatim at the end of the first paragraph, which is pure redundancy and the main thing that could be cut.

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?

An output schema exists, yet the description still tells the agent what is written (summary JSON, slim chain CSV, optional PNG) and what the numbers should look like against the paper, which is exactly the sanity anchor needed for a fetch-and-summarize tool. Combined with the weighting and caching notes, nothing an agent needs in order to call 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 the enum documents every chain key with sizes, so the schema already does the heavy lifting and the baseline is 3. The description adds only indirect parameter context: it identifies 3x2pt_lcdm as the fiducial default and supplies the sanity values that let an agent verify it picked the right chain, plus names the slim-CSV columns that feed plot_s8_om_contours / compare_s8_with_published.

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?

Names a specific verb+resource (fetch/download the DES Y6 published chain) and immediately scopes it as a 'published result - for comparison only', which separates it from the sibling fetch_wl_chain / analyze_wl_chain style tools that work on the user's own data. It also enumerates exactly what is produced: weighted Om/sigma8/S8 (w0, wa) summaries plus a contour.

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?

Gives an explicit use case: "Use for 'what does DES Y6 find' or to put your own analysis next to the DES Y6 posterior." The repeated 'for comparison only' tag functions as an implicit exclusion (not for your own chains), but no sibling alternative is named for the own-data case and no prerequisite is stated beyond output_dir.

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