Skip to main content
Glama

plot_lensing_spectrum

Plots CMB lensing-potential bandpowers for Planck, ACT, and SPT against the LCDM prediction and reports each dataset's lensing amplitude A_lens with its error.

Instructions

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.

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": "plot_lensing_spectrum"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetsNoExperiments with lensing bandpowers.
output_dirYesDirectory for the PNG.
theory_fileNoTheory CSV; default = Planck 2018 best fit PP.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations the description must carry the behavioral burden, and it does disclose a lot: which datasets and their L ranges, that a LCDM theory curve is overlaid, that amplitudes are fit with full covariance, and that the theory defaults to the Planck 2018 best fit. It does not state that a PNG is written into output_dir or whether the amplitudes are returned versus printed.

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?

Two sentences, front-loaded with the quantity and scope, then the concrete contents and outputs. Dense but every clause carries information; the only slack is the heavy notation in the opening sentence, which is necessary precision rather than padding.

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?

An output schema exists, so return values need not be spelled out, yet the description still says the A_lens amplitudes and errors are reported. For a 3-parameter plotting tool this is close to complete; the missing piece is a note that the call requires data access and produces a file on disk.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds genuinely new meaning by tying each 'datasets' enum value to its multipole range (Planck PR3 8<=L<=400, ACT DR6 40<=L<=763, SPT-3G D1 GMV), and by explaining that 'theory_file' supplies the theory used for both the curve and the A_lens fit.

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 (Plot) plus the exact physical quantity being plotted (lensing-potential bandpowers [L(L+1)]^2 C_L^phiphi/2pi) and names the three experiments covered. This clearly separates it from generic siblings like plot_cmb_spectra or plot_triangle, which plot different quantities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the content: you reach for this when you want lensing bandpowers with per-dataset A_lens amplitudes. However, it never says when to prefer it over plot_cmb_spectra or when not to use it (e.g. if no lensing data is cached), so an agent gets context but no explicit routing rule.

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