Skip to main content
Glama
Weak Lensing Surveys MCP Server

Weak Lensing Surveys MCP Server

compare_s8_with_published

Compare S8 constraints with published survey and Planck 2018 values, producing a whisker plot and per-entry tension in sigma to answer whether an S8 tension exists.

Instructions

[Published result - for comparison only] Compare S8 with published values: whisker plot vs Planck 2018 and tension in sigma (published result, for comparison only).

Use for 'is there an S8 tension' questions. Tension per entry is the Gaussian difference-in-means (S8_ref - S8) / sqrt(sigma^2 + sigma_ref^2), taking the survey error on the side facing the reference for asymmetric errors. This is the simple 1D estimate the papers quote as a first number (DES Y3 3x2pt ~2.3 sigma, KiDS-1000 ~3 sigma, KiDS-Legacy < 1 sigma); full-posterior metrics differ at the few-0.1 sigma level.

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

Input Schema

NameRequiredDescriptionDefault
output_dirYesDirectory where output files are written.
marginals_jsonNoOptional analyze_wl_chain JSONs to include (our own chain re-analysis).
reference_meanNoReference S8 (default Planck 2018).
reference_sigmaNoReference S8 1-sigma.
include_publishedNoAlso include the published headline S8 values (needed for HSC Y3, whose chains are credentialed).

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the output is a comparison artifact rather than a measurement, gives the exact tension estimator (Gaussian difference-in-means), and explains how asymmetric survey errors are handled. It also discloses the accuracy limitation — full-posterior metrics differ at the few-0.1 sigma level — plus representative published values. It omits that running it writes files to output_dir, a notable gap for a 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is front-loaded and the formula earns its place by explaining the metric. But the 'for comparison only' disclaimer is stated twice — once in brackets and again in parentheses at the end of the first sentence — which is redundant wording in a definition that is otherwise dense. The long parenthetical listing published sigma values is informative but competes with the operational guidance.

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 described, and the description instead covers the computation's meaning, its inputs' defaults, and its known precision limits — appropriate for a comparison tool with five parameters. The main missing element is any statement that the tool writes artifacts to output_dir, which matters because no annotations declare that write behavior.

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 including reference_mean (Planck 2018 default), reference_sigma, marginals_json, and include_published is already documented in the schema. The description corroborates the reference baseline and adds the asymmetric-error rule, but contributes little parameter-level meaning the schema does not already supply. Baseline 3 applies.

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?

The description names a specific verb (compare) and resource (S8 with published values), and specifies exactly what the output contains: a whisker plot against Planck 2018 and a tension in sigma. The bracketed scope marker 'Published result - for comparison only' separates it from sibling analysis tools such as plot_s8_om_contours or analyze_wl_chain, so an agent can identify it without opening the schema.

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?

It gives an explicit trigger: 'Use for "is there an S8 tension" questions.' The repeated 'for comparison only' framing signals that this is not a re-analysis path, which is real scope guidance. However, it never names a concrete alternative (e.g., when to prefer a full-posterior or chain-based comparison instead), so the boundary is implied rather than spelled out.

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