Skip to main content
Glama

Odpt Resolve Station

odpt_resolve_station
Read-onlyIdempotent

Find a Japan train station by name, in English or Japanese ("Shinjuku" or "新宿"), and return its ODPT station id(s), operator, railway and coordinates, for looking up Japanese railway/metro stations (Tokyo Metro, JR East, Toei and other operators). ODPT has no name-search endpoint, so this fetches station master data for the given operator (or a short list of major Tokyo operators if none is given) and matches client-side, one station can have several ids, one per operator/railway that serves it. Use the returned station_id with odpt_station_timetable. Needs an ODPT developer consumer key via _apiKey; Pipeworx supplies one if omitted. Example: odpt_resolve_station({ query: "Shinjuku" }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "Hakusan",
      "operator": "Toei"
    },
    "name": "odpt_resolve_station"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches to return, 1-50. Default 10.
queryYesStation name in English or Japanese, e.g. "Shinjuku" or "新宿".
_apiKeyYesOptional: your own ODPT developer consumer key. Pipeworx supplies one if omitted.
operatorNoLimit to one operator, e.g. "Tokyo Metro", "JR East", "Toei", or an exact odpt.Operator id. Default: searches several major Tokyo operators.

Output Schema

NameRequiredDescriptionDefault
countNo
queryNo
sourceNo
stationsNo
data_as_ofNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description adds genuine context beyond them: the fetch-and-match-client-side implementation, the default operator set when none is supplied, the fact that one station may yield several ids (one per operator/railway), and the auth requirement with a Pipeworx fallback key. That is exactly the behavioral disclosure the annotations cannot carry.

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?

Front-loads the purpose, then the mechanism, then the sibling hand-off and example — a sensible ordering. It is dense as a single block paragraph with slightly redundant restatement of the operator default already in the schema, but almost every sentence adds usable information.

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?

The tool has an output schema, so return-value explanation is optional, yet the description still names the returned fields and the multi-id quirk. Auth, defaults, matching approach, and the downstream consumer are all covered, leaving nothing an agent needs in order to call it correctly.

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 are already documented; the description mainly restates the English/Japanese query and the operator default. It does add the useful hint that multiple ids per station explain multi-result returns, but it never clarifies matching semantics (exact vs. substring/fuzzy) for `query` or how `limit` interacts with client-side matching.

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?

Opens with a specific verb and resource ("Find a Japan train station by name") and states exactly what comes back: ODPT station id(s), operator, railway, coordinates. It also names the sibling it feeds into (odpt_station_timetable), so an agent can place it in the workflow without opening any schema.

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 clear when-to-use context ("for looking up Japanese railway/metro stations") plus the key operational caveat that ODPT has no name-search endpoint, which explains the cost/behavior of the call. It explicitly routes the output to odpt_station_timetable, and the example call plus the operator-default note remove most invocation ambiguity.

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.