Skip to main content
Glama

analyze_chain

Compute mean, standard deviation, and 68/95% marginal statistics from published CMB chains to compare against your own fit.

Instructions

[Published result - for comparison only] Published result, comparison only: getdist marginal statistics (mean, std, 68/95%) of a PUBLISHED chain.

Use only to compare against your own fit of maps / bandpowers; never feed these numbers into a fit as a measurement or prior.

Heavy: downloads/extracts the chain on first use. With set_dispatch('polaris'| 'perlmutter') it runs as one facility job (the node downloads the archive itself). Sanity check (Planck 2018): H0 67.36+-0.54, omegam 0.3153+-0.0073, sigma8 0.8111+-0.0060.

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

Input Schema

NameRequiredDescriptionDefault
chainNoWhich public chain.planck_pr3
paramsNoShort names: H0, omegam, sigma8, S8, ns, ombh2, omch2, tau, logA, theta.
output_dirYesDirectory for chain_stats JSON/CSV.
ignore_rowsNoBurn-in fraction; default per chain (Planck 0: pre-removed; ACT 0.3).

Output Schema

NameRequiredDescriptionDefault
filesYes
statusYes
messageYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 well: it discloses that the call is 'Heavy', downloads/extracts the chain on first use, and can run as a single facility job under set_dispatch. It also supplies sanity-check reference values so the agent can validate output. It stops short of covering permissions, caching after first use, or failure modes on download, which keeps it from 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 critical warning and the comparison-only scope are front-loaded, and the cost/sanity-check sentences each carry real information. There is minor redundancy in '[Published result - for comparison only] Published result, comparison only:', which repeats the same constraint twice.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a heavy, file-producing tool with a rich output schema, the description covers scope, misuse risk, execution cost, dispatch routing, and a concrete numeric sanity check. Since an output schema exists, the absence of return-value explanation is not a gap.

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 the chain enum, the param short names, and the per-chain burn-in defaults are already documented in the schema. The description adds no parameter-level detail beyond what structured fields provide, so the 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 and resource: getdist marginal statistics (mean, std, 68/95% intervals) of a PUBLISHED chain. The bracketed '[Published result - for comparison only]' tag and the explicit 'PUBLISHED chain' framing separate it from the fitting/measurement siblings, so an agent can tell what class of operation this is 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 Guidelines5/5

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

It states both the intended use ('Use only to compare against your own fit of maps / bandpowers') and an explicit prohibition ('never feed these numbers into a fit as a measurement or prior'), which is the crucial when-not guidance. It also flags the set_dispatch alternative path for remote execution, so the agent knows how to route the call.

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