Skip to main content
Glama
Weak Lensing Surveys MCP Server

Weak Lensing Surveys MCP Server

compare_measured_with_published_xi

Compares your catalogue-measured shear correlation xi± against the published KiDS-1000 release per bin pair, validating the measurement and reporting chi², weighted-mean ratio, and amplitude.

Instructions

Overlay your own catalogue-measured xi+/- on the released KiDS-1000 xi+/- (both summary statistics) per bin pair.

Use after measure_shear_correlation to validate the measurement. The
release covers ~1006 deg^2 (777 deg^2 effective), a subset only a few,
so expect agreement within the subset's (much larger) errors plus
cosmic variance, not point-by-point. Reports chi2 of (measured -
released) using the measured errors only, per pair and in total, the
ratio of weighted means over 5-60 arcmin, and one amplitude
A = <measured / released shape> over all pairs at theta > 2' (A = 1
means the subset reproduces the release; A = 0 means no signal).

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": {
      "measured_xip_csv": "<measured_xip_csv>",
      "output_dir": "<output_dir>"
    },
    "name": "compare_measured_with_published_xi"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetNoRelease whose xi to compare with.kids_1000
statisticNoWhich xi.xip
output_dirYesDirectory where output files are written.
measured_xip_csvYes*_xip_measured.csv (or xim) from measure_shear_correlation.
subset_area_deg2NoEffective (unmasked) area of your subset; if given, also fit the amplitude with the RELEASE covariance (noise + cosmic variance) scaled by 777.4 deg^2 / area.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses that chi2 uses measured errors only, that the weighted-mean ratio spans 5-60 arcmin, that the amplitude A is computed over pairs at theta > 2', and it defines A = 1 and A = 0 so the numeric output is interpretable. It also flags the release footprint (~1006 deg^2, 777 deg^2 effective) and explains why point-by-point agreement should not be expected.

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?

Core operation is front-loaded in the first sentence and the caveats follow logically. The second sentence is long and slightly garbled ('a subset only a few, so expect agreement within the subset's (much larger) errors'), costing some clarity, but no sentence is 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?

Given that an output schema exists, the description needn't enumerate return values and mostly doesn't; it covers inputs, interpretation of the amplitude, and the statistical caveat. The one soft spot is the ambiguous phrasing about subset size/errors, though the area-scaling behavior of subset_area_deg2 is clarified in the schema.

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, but the description adds real meaning beyond the schema: it ties measured_xip_csv to its producer (measure_shear_correlation) and explains the effect of subset_area_deg2 (amplitude refit using release covariance scaled by 777.4 deg^2 / area). The dataset/statistic parameters are left entirely to the schema.

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 concrete verb ('Overlay'), both resources (the user's catalogue-measured xi+/- and the released KiDS-1000 xi+/-), and the granularity ('per bin pair'). It is immediately distinguishable from measure_shear_correlation, which produces the measurement this tool consumes.

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?

Gives explicit sequencing: 'Use after measure_shear_correlation to validate the measurement,' plus an expectation about what constitutes agreement (within subset errors plus cosmic variance, not point-by-point). It does not state when NOT to use it or contrast it with the other compare_* sibling, so it falls just short of full routing guidance.

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