Skip to main content
Glama

plot_cmb_map

Plot a Mollweide Galactic PNG of a HEALPix CMB map, show masked pixels grey, and report the in-mask pixel RMS after fetching the map.

Instructions

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.

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>",
      "map_file": "<map_file>"
    },
    "name": "plot_cmb_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmaxNoColour scale +-vmax in muK.
fieldNo0 = I/T, 1 = Q, 2 = U.
titleNoPlot title (default from the file name).
map_fileYesHEALPix map FITS (from fetch_cmb_map).
mask_fileNoOptional mask: masked pixels shown grey.
output_dirYesDirectory for the PNG.
smooth_fwhm_arcminNoExtra Gaussian smoothing for display (0 = none).

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the projection (Mollweide/Galactic), the mask rendering behavior (masked pixels grey), and a side computation (pixel rms reported inside the mask), but says nothing about what file is written, whether an existing PNG is overwritten, or that the operation is read-only apart from the output artifact.

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?

Two short sentences, zero filler. The artifact is stated first and the workflow hint second, so the most decision-relevant information is front-loaded.

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?

With an output schema present, the description need not explain return values, and the 100%-described input schema covers the parameters. What remains thin is side-effect disclosure for a tool that writes a file to output_dir, but overall the definition gives an agent enough to invoke it correctly.

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 every parameter (vmax, field, title, map_file, mask_file, output_dir, smooth_fwhm_arcmin) is already documented in the schema, which sets the baseline at 3. The description only echoes the mask and rms behavior and adds no syntax, units, or defaults beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete output artifact — a Mollweide/Galactic-projection PNG of a HEALPix CMB map — and the 'Use after fetch_cmb_map' clause pins it to a stage in the workflow. It is clearly a rendering tool rather than a data-fetch or spectra tool, but it never explicitly contrasts itself with plotting siblings such as plot_cmb_spectra or plot_triangle.

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?

'Use after fetch_cmb_map to show the component-separated CMB map' gives an explicit precondition and sequence, which is exactly the guidance an agent needs to chain these calls. It stops short of stating when NOT to use it or which sibling to pick for other map views, so it is clear context without exclusions.

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