Skip to main content
Glama

get-station-code-of-citys

Retrieve station codes for Chinese cities by inputting city names. Use this tool to prepare station_code parameters when city names are provided as departure or arrival locations.

Instructions

通过中文城市名查询代表该城市的 station_code。此接口主要用于在用户提供城市名作为出发地或到达地时,为接口准备 station_code 参数。

Input Schema

NameRequiredDescriptionDefault
citysYes要查询的城市,比如"北京"。若要查询多个城市,请用|分割,比如"北京|上海"。

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "citys": { "description": "要查询的城市,比如\"北京\"。若要查询多个城市,请用|分割,比如\"北京|上海\"。", "type": "string" } }, "required": [ "citys" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/freestylefly/12306-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server