Skip to main content
Glama

Поиск поездов

train_search
Read-onlyIdempotent

Search and compare available trains by origin/destination numeric station codes and travel date; use train_calendar to verify station pairs when codes are unknown.

Instructions

Поиск поездов. origin/destination — ЧИСЛОВЫЕ коды станций банка (2000000 — Москва, 2004000 — Санкт-Петербург), date — YYYY-MM-DD.

Резолвера «название станции → код» у банка нет. Если кода не знаешь, проверить пару можно train_calendar(origin, destination): она скажет, какие даты вообще в продаже, и на неверной паре ответит пусто.

Купить билет через MCP нельзя: оплата уходит в webview, который headless не закрывается. Это поиск и сравнение.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "origin": "<origin>",
      "destination": "<destination>",
      "date": "<date>"
    },
    "name": "train_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
limitNo
adultsNo
originYes
childrenNo
destinationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/non-destructive, but the description adds behavior they cannot express: there is no name→code resolver, an incorrect pair fails silently with an empty response, and the buy flow is unreachable headless. These are exactly the operational traits an agent needs before invoking a search that can return nothing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: purpose, then required-parameter formats, then the code-resolution workaround, then the purchase limitation. Each sentence carries new information. The line breaks make it scannable, though the three concerns could be slightly more compactly ordered.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is unnecessary, and the description covers the hard parts: code format, the no-resolver gap, the empty-on-error behavior, and the no-purchase boundary. It falls short only on the optional adults/children/limit parameters, which are undocumented in schema and description alike.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, and it does so only for the three required ones: origin/destination as numeric bank station codes with two concrete examples, and date as YYYY-MM-DD. The remaining three parameters (limit, adults, children) get no mention anywhere, leaving half the surface undocumented. The partial compensation with 0% schema coverage justifies a 3, not higher.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line names a specific verb+resource ("Поиск поездов") and the closing line sharpens the scope to "поиск и сравнение" rather than booking. It is clearly distinguished from the sibling train_calendar, which the description explicitly casts as a code-validation/availability tool. An agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: use train_calendar(origin, destination) when the station code is unknown, because the wrong pair returns an empty result. It also states a hard when-not: tickets cannot be purchased through MCP because payment goes to a headless-incompatible webview. Both the alternative and the exclusion are spelled out, not inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.