Skip to main content
Glama

get-station-code-by-names

Retrieve station codes for specific Chinese railway station names to prepare station_code parameters for API requests. Input one or more station names separated by | to fetch corresponding codes.

Instructions

通过具体的中文车站名查询其 station_code 和车站名。此接口主要用于在用户提供具体车站名作为出发地或到达地时,为接口准备 station_code 参数。

Input Schema

NameRequiredDescriptionDefault
stationNamesYes具体的中文车站名称,例如:"北京南", "上海虹桥"。若要查询多个站点,请用|分割,比如"北京南|上海虹桥"。

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "stationNames": { "description": "具体的中文车站名称,例如:\"北京南\", \"上海虹桥\"。若要查询多个站点,请用|分割,比如\"北京南|上海虹桥\"。", "type": "string" } }, "required": [ "stationNames" ], "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