Skip to main content
Glama

estat_compare_municipalities

Compare multiple municipalities by fetching SSDS data and automatically calculating composition ratios, per-capita rates, and rankings for side-by-side analysis.

Instructions

【e-Stat/SSDS】複数自治体のSSDSデータを取得し派生指標(構成比・人口あたり率・ランキング)を自動計算。自治体間の横並び比較に最適

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": {
      "codes": "<codes>",
      "indicators": "<indicators>"
    },
    "name": "estat_compare_municipalities"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo取得年(例: "2020")。省略時は最新データ
codesYes市区町村コード配列(5桁、例: ["35211","14382","10426"])
tableIdNoSSDSテーブルID(例: "0000020101")。省略時は指標コードから自動判定
indicatorsYesSSDS指標コード配列(例: ["A1101","C2108","C210847","D2201"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that derived indicators are auto-calculated, which goes beyond the schema, but omits authentication needs, rate limits, error behavior, and return structure for a multi-entity aggregation 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?

A single, front-loaded sentence with the platform tag first and purpose second; no wasted wording, though it could be slightly expanded for behavioral gaps without harming density.

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

Completeness3/5

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

For a four-parameter aggregation tool with no output schema and no annotations, the description names the computed indicators but leaves the return shape, ranking semantics, and failure handling unstated, limiting an agent's ability to predict output.

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 schema already documents all four parameters (year, codes, tableId, indicators) with examples. The description adds no additional parameter-level meaning, so the baseline of 3 applies.

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?

States a specific verb and resource: fetch SSDS data for multiple municipalities and auto-compute derived indicators (composition ratio, per-capita rate, ranking). The purpose is distinct from a single-dataset fetch, but it does not explicitly name a sibling to differentiate against.

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?

'最適 for side-by-side municipal comparison' implies the use case clearly, but gives no explicit when-not conditions, prerequisites (e.g., valid SSDS indicator codes), or named alternative tools for other scenarios.

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