query_train_tickets
查询中国大陆12306火车票余票信息。参数from_city出发城市/车站中文名,to_city到达城市/车站中文名,date出发日期格式YYYY-MM-DD;留空默认明天。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| to_city | Yes | ||
| from_city | Yes |
查询中国大陆12306火车票余票信息。参数from_city出发城市/车站中文名,to_city到达城市/车站中文名,date出发日期格式YYYY-MM-DD;留空默认明天。
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| to_city | Yes | ||
| from_city | Yes |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full behavioral burden. It discloses useful traits: Chinese-name city/station parameters, YYYY-MM-DD date format, and the blank-date-defaults-to-tomorrow behavior. However, it does not disclose the response/return format, prerequisites, or edge behavior when no tickets are available.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single dense sentence that front-loads the purpose and packs all parameter semantics into the remaining clauses with no filler. Every clause earns its place, though splitting purpose from parameter documentation would improve scannability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple flat 3-parameter tool with no annotations and no output schema, the description covers everything needed to invoke it correctly: purpose, all parameter meanings, format, and default behavior. The main gaps are the unstated return format and the unstated relationship with search_station, which are minor relative to how complete the invocation-critical information is.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the schema itself provides zero meaning for the parameters. The description fully compensates by documenting all three: from_city and to_city as Chinese departure/arrival city or station names, and date with explicit format plus default behavior. This is exactly the compensation a 0%-coverage schema requires.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource — '查询中国大陆12306火车票余票信息' (query remaining-ticket information for China mainland 12306 trains). It is immediately distinct from the sibling search_station, which handles station lookup rather than ticket availability.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use or when-not-to-use guidance is given. The relationship to search_station — e.g., whether exact station names must be resolved via that tool first — is never addressed, so usage context is only implied by the tool's purpose.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.
The two tools serve clearly distinct purposes: one queries ticket availability, the other searches for station names. No overlap in functionality.
Both tool names follow a consistent verb_noun pattern ('query_train_tickets', 'search_station'), which is predictable and easy to understand.
With only two tools, the set is minimal but appropriate for a focused ticket-querying server. It sits just below the typical 3-15 range but is not excessively sparse.
The server covers the core querying workflow (searching stations and querying tickets) but lacks booking or management features. For a query-only service, it is mostly complete, though additional actions like train schedules could be expected.