Skip to main content
Glama
clusters-mcp-server
by HEP-KE

fetch_cluster_wl_profiles

Fetch real Megacam weak-lensing tangential shear profiles and source-redshift distributions for 19 SPT-SZ clusters, providing CSV inputs for weak-lensing mass fitting.

Instructions

Fetch the measured Megacam weak-lensing tangential shear profiles of 19 SPT-SZ clusters (Dietrich+19).

These are the REAL observed reduced-shear profiles g_t(r) from the official SPT-SZ cluster
likelihood release (Bocquet+19), not synthetic data. One CSV per cluster (r_deg, gt, gt_err,
kbin, n_src, r_mpc) plus one source-redshift N(z) CSV per cluster (needed for Sigma_crit /
<beta>). Use fit_cluster_wl_mass to turn them into M500c/M200c; do not fit to bin means.

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

Input Schema

NameRequiredDescriptionDefault
datasetNoDataset key (currently only spt_sz).spt_sz
output_dirYesDirectory for WL shear profile CSVs.

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden. It discloses important behavioral context: these are real observed profiles rather than synthetic data, the output is one CSV per cluster plus a per-cluster N(z) CSV, and the column contents (r_deg, gt, gt_err, kbin, n_src, r_mpc). It does not cover file overwrite behavior or output size, which is why it does not earn a 5.

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?

The description is front-loaded with the purpose and provenance, then states usage guidance. The emphasis on REAL data and the column listing are slightly verbose but earn their place; no sentence is filler.

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?

The tool has an output schema, so return values need not be explained, yet the description helpfully lists the CSV columns. Given two parameters and no annotations, the description is complete enough to call the tool correctly, though it lacks details on auth or file-handling behavior.

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?

The schema has 100% description coverage, so a baseline of 3 applies. The description still adds meaning beyond the schema by explaining that the output directory receives one shear-profile CSV per cluster and a separate N(z) CSV per cluster, which clarifies what the output_dir parameter produces.

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 (Fetch) and resource (measured Megacam weak-lensing tangential shear profiles of 19 SPT-SZ clusters), and identifies the data provenance (Dietrich+19, Bocquet+19 likelihood release). It distinguishes the tool from fit_cluster_wl_mass by stating that this tool retrieves the real observed g_t(r) data rather than performing a fit.

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

Usage Guidelines5/5

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

The description explicitly routes the agent: 'Use fit_cluster_wl_mass to turn them into M500c/M200c; do not fit to bin means.' That names the alternative tool and states how the data may and may not be used, which is unusually complete guidance.

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