Skip to main content
Glama

Gachi Data API — Japan Station & Accessibility Data

get_municipality_context

Read-onlyIdempotent

Official Japanese government data for any municipality, one call — housing vacancy (2003–2023), nearest-station ridership trend, hazard categories, land prices, livability counts. No scores, no judgment — official values only. Accepts a 5-digit municipality code (13104) or an exact name (Shinjuku-ku / 新宿区).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNoOptional comma-separated subset: vacancy,ridership,population,hazard,land_price,livability.
name_or_codeYes5-digit 全国地方公共団体コード (e.g. 13104) or exact municipality name (Shinjuku-ku / 新宿区).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hazardNoHazard categories.
vacancyNoHousing-vacancy counts (2003–2023).
ridershipNoNearest-station ridership trend.
land_priceNoPublished land prices near the centroid.
livabilityNoLivability counts.
populationNoPopulation / future estimate.
attributionNoData source(s), license and provenance — an object, or an array of sources.
municipalityNoResolved municipality + code.
hazard_disclaimerNoHazard usage disclaimer.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnlyHint, idempotentHint, and destructiveHint. The description adds behavioral context beyond these: it promises 'official values only' with no judgment, indicates a single aggregated call ('one call'), and specifies a data range for vacancy. It does not discuss rate limits or pagination, but the output schema covers return structure.

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 concise sentences, each serving a distinct purpose: scope/data categories, behavioral promise, and input format. No filler or redundancy, with key facts front-loaded.

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?

Given an output schema exists and annotations cover safety, the description fully supports tool selection and invocation. It covers what the tool offers, how to specify the municipality, the optional fields concept, and the raw-data nature, making it complete for correct usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are well-described. The description adds useful semantic context by explaining what the data fields mean (e.g., vacancy years 2003–2023, nearest-station ridership trend) and gives input examples, although the examples duplicate the schema description. This enriches parameter understanding beyond the schema.

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 clearly states it provides official Japanese government data for municipalities, listing specific data categories (vacancy, ridership, hazard, land price, livability). It distinguishes itself from sibling station/toilet tools by focusing on municipality-level official data, and the 'No scores, no judgment' note clarifies its non-analytical nature.

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 description gives strong context for when to use it: for official municipal data on multiple topics. It does not explicitly mention alternatives or when not to use it (e.g., for station-specific alerts), but the scope is clear enough given the sibling list.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.3/5.0
Disambiguation3/5

Several tools overlap in function: get_active_alerts and get_station_alerts both return the same JMA alerts but with different input types, and get_municipality_context and get_station_context provide identical municipality data. However, the descriptions clarify the input differences, and other tools like get_toilet_by_city vs get_toilet_by_station are distinct enough.

Naming Consistency4/5

Most tools follow a consistent 'get_<noun>' pattern (get_active_alerts, get_municipality_context), but 'ping' and 'station_search' deviate from this convention. Still, the naming is largely predictable and readable.

Tool Count5/5

With 10 tools, the server is well-scoped for its purpose of station and accessibility data. Each tool serves a distinct function within the domain, and the count is within the ideal 3-15 range.

Completeness4/5

The tool surface covers the core workflows: discovery (station_search), station details (context, hazard, toilet), live alerts, and train status. Minor gaps exist such as the lack of a direct station info tool or the mention of 'search_ramen' which is not actually provided, but these are not critical.