Skip to main content
Glama

estat_session_init

Initialize an analysis session by running a preflight on selected municipality codes to check mergers, verify metric availability, and suggest recommended codes before analysis.

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

Input Schema

NameRequiredDescriptionDefault
codesYes分析対象の市区町村コード配列(5桁)
yearsNo分析対象年リスト(例: [2000,2005,2010,2015,2020])
granularityNo取得粒度(デフォルト: municipality)
requestedMetricsNo利用したい指標IDリスト(例: ["population","revpar","establishments_accom"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the composite behavior (three checks executed in one call) and implies a read-only preflight, which is useful. It does not state permission requirements, cost/latency implications of a batch preflight, or whether the 'recommended code proposal' has any side effects or persistence, leaving meaningful gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses: a bracketed category tag, the core action with its bundled sub-operations, and the preflight recommendation. Nothing is redundant and the key usage directive is front-loaded.

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 composite preflight with four parameters and no output schema, the description should clarify what the agent receives back (merger findings, availability verdicts, suggested codes) since no structured return definition exists. It explains what runs but not what is returned or how to interpret it, so it is adequate but incomplete for the tool's complexity.

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 all four parameters (codes, years, granularity, requestedMetrics) are already documented in the schema, establishing the baseline of 3. The description only implicitly links the merger check to `codes` and availability checking to `requestedMetrics`; it adds no format, constraint, or interaction detail beyond the schema.

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 operation (analysis session initialization) and enumerates its three sub-functions: merger check, indicator availability, and recommended code proposal. This distinguishes it from the narrower siblings estat_merger_check and estat_check_availability by framing it as a bundled preflight. It stops short of 5 because 'session initialization' is a metaphor rather than a concrete explanation of what state or output is produced.

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?

The final clause '分析前に必ず実行推奨' gives explicit timing guidance: run this before analysis. That is clear context for invocation. However, it does not state exclusions (e.g., when it is unnecessary or when the individual estat_merger_check / estat_check_availability tools should be used instead), so it is strong but not fully comparative.

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