Skip to main content
Glama

fetch_cmb_map

Download and downgrade a Planck PR3 component-separated CMB map and common mask, caching the FITS files for map-level analysis such as power spectra, cutouts, and cross-correlations.

Instructions

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

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

Input Schema

NameRequiredDescriptionDefault
maskNoPlanck PR3 common mask (201 MB at nside 2048).common_int
nsideNoOutput HEALPix nside after ud_grade from 2048 (1024 keeps ell<~2000; 512 ell<~1000; 256 for quick looks).
splitNofull mission, or half-mission hm1 / hm2 (for noise-free cross-spectra; smica_nosz halves are 201 MB each).full
componentNosmica_nosz (T only, 403 MB download, default), smica (I/Q/U, 2.0 GB) or commander (I/Q/U, 1.6 GB).smica_nosz
output_dirYesDirectory for the downgraded map/mask FITS + JSON.
polarizationNoAlso keep Q/U (smica / commander only).

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 entire behavioral burden and does so: it discloses the one-time IRSA download with resumable parallel range requests, caching of both downgraded map and mask, the ud_grade convention (RING, Galactic, muK_CMB), the 5' FWHM Gaussian beam, returned quantities (paths, rms in mask, fsky), and an explicit cost warning ('first call: minutes of download').

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 verb and resource, then usage, then mechanics, then return values and cost. The middle sentences are dense with parentheticals (RING, Galactic, muK_CMB; beam spec) but each carries real information, so only minor tightening is possible.

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 heavy download-and-downgrade tool with six parameters, the description covers cost, caching, coordinate/frame conventions, beam resolution, and what is returned and where to pass it. An output schema exists, so no further return-value explanation is needed.

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% with enums on four parameters, so the schema already explains mask, nside, split, component, polarization and output_dir thoroughly. The description adds pipeline context (ud_grade from nside-2048, what gets cached) but no additional parameter-level semantics 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?

States a specific verb (fetch) and a precisely qualified resource (Planck PR3 component-separated CMB map plus common mask, downgraded), which clearly separates it from fetch_cmb_chain and fetch_cmb_spectrum, which retrieve different data products.

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?

Explicitly says to use it 'to start any map-level analysis (own power spectrum, cutouts, cross-correlation)' and routes the returned paths onward to measure_cmb_power_spectrum / plot_cmb_map. It does not state when-not to use it or contrast against the other fetch_* tools, so it falls short of full alternative routing.

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