Skip to main content
Glama

plan_transfer

PAID (x402 exact/EVM, 1 USDC-cent per call). Re-plan a journey for a traveller already on a delayed train: per-stop transfer buffer, onward connections with arrival times, and one safe recommendation. Call it without payment to receive the PaymentRequired object; retry with the payment payload in params._meta['x402/payment'].

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": {
      "trip_id": "<trip_id>",
      "to": "<to>"
    },
    "name": "plan_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination station id from search_stations. Accepts `stop_id` (the stop_id field from search_stations) or `provider_stop_id` (the provider_stop_id field from search_stations). The eva field is NOT accepted.
trip_idYestrip_id from departures.
min_bufferNoMinimum transfer buffer in minutes.
manual_delayNoKnown delay in minutes, if the feed has none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / to / description
      Previous value: -"Destination stop_id from search_stations."New value: +"Destination station id from search_stations. Accepts `stop_id` (the stop_id field from search_stations) or `provider_stop_id` (the provider_stop_id field from search_stations). The eva field is NOT accepted."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With only readOnlyHint=false supplied, the description carries real weight: it discloses paid status, the x402 exact/EVM scheme, the price (1 USDC-cent per call), and the exact two-phase payment handshake including the params._meta['x402/payment'] key. That is well beyond what the single annotation conveys.

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

Conciseness5/5

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

Two dense sentences with the paywall and price front-loaded before the behavioral detail and the payment mechanics. No filler, and the retry instruction lands last where an agent acting on the failure path will read it.

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

Completeness5/5

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

For a four-parameter tool with no output schema, the description still enumerates the return shape (buffers, onward connections with arrival times, one recommendation) and covers the non-obvious payment protocol. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the four declared parameters are already documented and the baseline is 3. The description adds meaning by naming an undocumented parameter channel (params._meta['x402/payment']) and framing min_buffer as a per-stop transfer buffer, which the schema alone does not connect to the output.

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 description names a specific verb and resource ('Re-plan a journey') plus the concrete outputs (per-stop transfer buffer, onward connections, one safe recommendation). It also implicitly scopes against siblings by sourcing inputs from 'departures' and 'search_stations', so an agent knows this is neither of those.

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

Usage Guidelines4/5

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

It states the precise situation for use ('a traveller already on a delayed train') and gives actionable call sequencing: call first without payment, then retry with the payload. It stops short of explicit exclusions or a named alternative for the non-delay case, which keeps it at 4.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources