Skip to main content
Glama

estat_correlation

Calculates Pearson correlations between indicators across multiple municipalities and interprets each relationship (strong, moderate, weak, or none), showing all pairs to reduce bias.

Instructions

【自治体分析】複数自治体データの指標間相関分析。ピアソン相関係数・解釈(強い/中程度/弱い/無相関)を算出。恣意性排除のため全ペアを表示

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": {
      "data": "<data>",
      "metricKeys": "<metricKeys>"
    },
    "name": "estat_correlation"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes自治体データ配列(各行に指標値を含む)
metricKeysYes相関を計算する指標キーの配列(例: ["aging_rate","fiscal_strength_index"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 must carry the behavioral burden, and it does disclose return content (Pearson coefficients with strong/moderate/weak/none interpretation) and a notable trait: all pairs are reported rather than a filtered subset, to avoid arbitrariness. It omits whether the tool fetches e-Stat data or computes purely from the passed-in array, minimum sample size, and null handling — meaningful gaps for a statistics tool.

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?

Three compact sentences, front-loaded with a bracketed domain tag followed by purpose, output, and the rationale for showing all pairs. No filler, though the tag and '恣意性排除' rationale are the only elaboration.

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?

No output schema exists, so the description usefully explains what is returned: coefficients plus qualitative interpretation for every pair. Missing only input preconditions (minimum municipality count, that metricKeys must appear in each data object) which the schema does not cover either.

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 both parameters are documented in-schema with examples, and the baseline of 3 applies. The description adds only that the analysis is 'between indicators', which does not elaborate metricKeys syntax or the requirement that keys exist as properties of each data row.

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: correlation analysis between indicators (指標間相関分析) across multiple municipalities, computing Pearson coefficients. It is clearly distinguishable from estat_compare_municipalities and estat_time_series, though it never explicitly names an alternative.

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?

Usage is only implied by '複数自治体データ' (multiple municipalities' data), telling the agent nothing explicit about when this is preferable to estat_compare_municipalities or estat_data. No prerequisites or exclusions are stated.

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

Deploy Server

Other Tools