Skip to main content
Glama
Weak Lensing Surveys MCP Server

Weak Lensing Surveys MCP Server

plot_s8_om_contours

Overlays published 68%/95% Omega_m-S8 (or sigma8) contours to compare weak-lensing survey constraints and reproduce classic multi-survey S8-Omega_m figures.

Instructions

[Published result - for comparison only] Overlay published 68/95% Omega_m - S8 (or sigma8) contours (published result, for comparison only).

Use to reproduce the classic multi-survey S8-Om figure (DES Y3 Fig. 7 / Asgari+21 Fig. 5 style). Contours come from a weighted, smoothed 2D histogram (no getdist needed). The Planck S8 band is 0.832 +/- 0.013.

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": {
      "chain_csvs": "<chain_csvs>",
      "output_dir": "<output_dir>"
    },
    "name": "plot_s8_om_contours"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelsNoLegend labels (default: file stems).
y_paramNoy-axis parameter.S_8
chain_csvsYesChain CSVs from fetch_wl_chain.
output_dirYesDirectory where output files are written.
show_planckNoDraw the Planck 2018 S8 band.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the computation method (weighted, smoothed 2D histogram, no getdist needed) and a concrete reference value for the Planck S8 band (0.832 +/- 0.013). It does not state that files are written to output_dir, what files are produced, or whether fetch_wl_chain data must be present, leaving meaningful behavioral gaps for a plotting tool with no annotations.

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?

Content is front-loaded with the core action, then usage, then method. There is mild redundancy: 'published result, for comparison only' appears in the bracketed lead and again in the parenthetical, which slightly weakens an otherwise efficient definition.

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?

For a five-parameter plotting tool with full schema coverage and an output schema, the description covers purpose, motivating use case, computation method, and a reference constant. The main remaining gap is that it does not describe what output artifacts land in output_dir, but the output schema partly relieves that burden.

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 coverage is 100%, so all five parameters are already documented in the schema, including the S_8/sigma_8 enum and the show_planck toggle. The description reinforces the y-parameter choice ('S8 (or sigma8)') and the Planck band, but adds no format or constraint details beyond the schema; baseline 3 applies.

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 specific verb and resource — overlaying published 68/95% Omega_m–S8 (or sigma8) contours — and states the scope is 'published result, for comparison only.' It is clearly distinguishable from chain-analysis siblings by that 'published' qualifier, though it never names an alternative tool such as compare_s8_with_published.

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?

It gives a positive use case: 'Use to reproduce the classic multi-survey S8-Om figure (DES Y3 Fig. 7 / Asgari+21 Fig. 5 style).' However, there is no explicit when-not guidance and no pointer to which sibling to use when the user wants to plot their own chain contours instead of published ones.

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