Skip to main content
Glama

resas_population_pyramid

Compare population pyramids for a Japanese prefecture or municipality across two years. Deprecated: RESAS API ended 2025-03-24; use estat_search for census data instead.

Instructions

【RESAS】⚠️ DEPRECATED: RESAS APIは2025-03-24に提供終了。代替: estat_search(国勢調査・統計コード00200521)を使用すること

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": {
      "prefCode": "<prefCode>",
      "cityCode": "<cityCode>",
      "yearLeft": "<yearLeft>",
      "yearRight": "<yearRight>"
    },
    "name": "resas_population_pyramid"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityCodeYes市区町村コード
prefCodeYes都道府県コード
yearLeftYes比較年(左)
yearRightYes比較年(右)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 disclosure burden and delivers the single most important behavioral fact: calls against the RESAS API behind this tool will not succeed because the service ended. It does not say what failure looks like (error vs. empty result), but the deprecation plus dated retirement is substantive context no annotation provides.

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?

A single sentence that leads with the DEPRECATED warning, then the retirement date, then the migration target. Zero filler; the most decision-relevant token comes first.

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?

For a retired, four-parameter, no-output-schema tool, warning plus replacement is sufficient for an agent to act correctly. Minor gap: no indication of whether the tool still returns historical data or fails outright.

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%, with Japanese descriptions for prefCode, cityCode, yearLeft and yearRight already documenting each parameter. The description adds nothing about parameters, but for a deprecated tool the baseline 3 is appropriate since the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never says in words what the tool returns or does — the population-pyramid function is only inferable from the tool name and the RESAS tag. What it does state precisely is its lifecycle status (deprecated, API ended 2025-03-24), which lets an agent distinguish it from live siblings like resas_population. Purpose is conveyed by naming, not by description.

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?

Gives an explicit when-not-to-use (the underlying API was retired on a stated date) and names the exact replacement, estat_search, plus the statistic code (00200521) to use there. This is the most actionable routing instruction a deprecated tool can carry.

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