get-interline-tickets
查询12306中转余票信息。尚且只支持查询前十条。
This record as markdown: /tools/deniselewis200081-rail/get-interline-tickets.md
What get-interline-tickets does on 12306 Ticket Search Server
AI agents call get-interline-tickets to retrieve information from 12306 Ticket Search Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | — | 查询日期,格式为 "yyyy-MM-dd"。如果用户提供的是相对日期(如“明天”),请务必先调用 `get-current-date` 接口获取当前日期,并计算出目标日期。 |
showWZ | boolean | — | 是否显示无座车,默认不显示无座车。 |
sortFlag | string | — | 排序方式,默认为空,即不排序。仅支持单一标识。可选标志:[startTime(出发时间从早到晚), arriveTime(抵达时间从早到晚), duration(历时从短到长)] |
toStation | string | — | 出发地的 `station_code` 。必须是通过 `get-station-code-by-names` 或 `get-station-code-of-citys` 接口查询得到的编码,严禁直接使用中文地名。 |
limitedNum | number | — | 返回的中转余票数量限制,默认为10。 |
fromStation | string | — | 出发地的 `station_code` 。必须是通过 `get-station-code-by-names` 或 `get-station-code-of-citys` 接口查询得到的编码,严禁直接使用中文地名。 |
sortReverse | boolean | — | 是否逆向排序结果,默认为false。仅在设置了sortFlag时生效。 |
middleStation | string | — | 中转地的 `station_code` ,可选。必须是通过 `get-station-code-by-names` 或 `get-station-code-of-citys` 接口查询得到的编码,严禁直接使用中文地名。 |
trainFilterFlags | string | — | 车次筛选条件,默认为空。从以下标志中选取多个条件组合[G(高铁/城际),D(动车),Z(直达特快),T(特快),K(快速),O(其他),F(复兴号),S(智能动车组)] |
Parameters from the server's own tool schema.
Why get-interline-tickets is rated Low
This tool performs a passive data retrieval operation—querying transfer ticket availability from the 12306 railway system. It has no side effects on the system or data. Even if an AI agent misuses it by making excessive queries, the blast radius is minimal (rate limiting, temporary blocks). No financial transactions, data modifications, deletions, or code execution are involved.
From the tool's definition Tool name 'get-interline-tickets' and description '查询12306中转余票信息。尚且只支持查询前十条' (Query 12306 transfer ticket availability information.
Attacks that exploit this kind of access
The rule that runs get-interline-tickets safely
PolicyLayer is an MCP gateway: it sits between your AI agents and 12306 Ticket Search Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For get-interline-tickets, this is the rule to start with:
get-interline-tickets is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect 12306 Ticket Search Server, apply this rule, and every get-interline-tickets call is checked against it from then on.
Questions about get-interline-tickets
查询12306中转余票信息。尚且只支持查询前十条。. It is categorised as a Read tool in the 12306 Ticket Search Server MCP Server, which means it retrieves data without modifying state.
get-interline-tickets accepts 9 parameters: date, showWZ, sortFlag, toStation, limitedNum, fromStation, sortReverse, middleStation, trainFilterFlags. The full parameter table on this page comes from the server's own tool schema.
Register the 12306 Ticket Search Server MCP server in PolicyLayer and add a rule for get-interline-tickets: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches 12306 Ticket Search Server. Nothing to install.
get-interline-tickets is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the get-interline-tickets rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for get-interline-tickets. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
get-interline-tickets is provided by the 12306 Ticket Search Server MCP server (DeniseLewis200081/rail). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on 12306 Ticket Search Server, and thousands of servers like it.
This server
Across the catalogue