New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

get-tickets

查询12306余票信息。

SERVER12306 Ticket Search Server SOURCEDeniseLewis200081/rail
Low RISK CLASS
Category Read
Parameters 70 required
Recommended Allowedsee the rule below
Registry record Grade A, identity unverified Pull the record →

This record as markdown: /tools/deniselewis200081-rail/get-tickets.md

What get-tickets does on 12306 Ticket Search Server

AI agents call get-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.

ParameterTypeRequiredDescription
date string 查询日期,格式为 "yyyy-MM-dd"。如果用户提供的是相对日期(如“明天”),请务必先调用 `get-current-date` 接口获取当前日期,并计算出目标日期。
sortFlag string 排序方式,默认为空,即不排序。仅支持单一标识。可选标志:[startTime(出发时间从早到晚), arriveTime(抵达时间从早到晚), duration(历时从短到长)]
toStation string 到达地的 `station_code` 。必须是通过 `get-station-code-by-names` 或 `get-station-code-of-citys` 接口查询得到的编码,严禁直接使用中文地名。
limitedNum number 返回的余票数量限制,默认为0,即不限制。
fromStation string 出发地的 `station_code` 。必须是通过 `get-station-code-by-names` 或 `get-station-code-of-citys` 接口查询得到的编码,严禁直接使用中文地名。
sortReverse boolean 是否逆向排序结果,默认为false。仅在设置了sortFlag时生效。
trainFilterFlags string 车次筛选条件,默认为空,即不筛选。支持多个标志同时筛选。例如用户说“高铁票”,则应使用 "G"。可选标志:[G(高铁/城际),D(动车),Z(直达特快),T(特快),K(快速),O(其他),F(复兴号),S(智能动车组)]

Parameters from the server's own tool schema.

Why get-tickets is rated Low

The tool performs a simple data retrieval operation—querying train ticket availability from the 12306 system. It has no side effects, does not modify data, and does not execute code or trigger financial transactions. This is a straightforward Read category tool with low severity due to the benign nature of accessing public ticket information.

From the tool's definition Tool name is 'get-tickets' and description states '查询12306余票信息' (query 12306 ticket availability information). This is a read-only query operation that retrieves ticket information without modifying, deleting, or executing external operations.

Questions about get-tickets

What does the get-tickets tool do? +

查询12306余票信息。. It is categorised as a Read tool in the 12306 Ticket Search Server MCP Server, which means it retrieves data without modifying state.

What parameters does get-tickets accept? +

get-tickets accepts 7 parameters: date, sortFlag, toStation, limitedNum, fromStation, sortReverse, trainFilterFlags. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on get-tickets? +

Register the 12306 Ticket Search Server MCP server in PolicyLayer and add a rule for get-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.

What risk level is get-tickets? +

get-tickets is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit get-tickets? +

Yes. Add a rate_limit block to the get-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.

How do I block get-tickets completely? +

Set action: deny in the PolicyLayer policy for get-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.

What MCP server provides get-tickets? +

get-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.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of 12306 Ticket Search Server's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.