Skip to main content
Glama

Look up a route

lookup_route
Read-onlyIdempotent

Find an Amtrak route by name or fragment and get its map name plus the train numbers currently assigned to that route.

Instructions

Look up an Amtrak route by name, such as Acela, Northeast Regional, or Lake Shore. Returns the map name and the train numbers currently on that route.

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": {
      "query": "<query>"
    },
    "name": "lookup_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesRoute name or fragment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real value by disclosing what comes back (map name plus current train numbers), which matters because there is no output schema. However, it does not say how ambiguity or a missing match is handled.

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 tight sentences with zero filler, front-loading the action and following with the return payload. Nothing is redundant or misplaced.

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?

For a simple single-parameter lookup with rich annotations and a stated return shape, this is close to complete. The remaining gap is behavior on partial matches or multiple results, which the word 'fragment' in the schema implies but the description never addresses.

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 coverage is 100% and the single 'query' parameter is already documented as 'Route name or fragment.' The description adds useful concrete example values but actually narrows the intent by saying 'by name' while the schema permits fragments, which could mislead slightly rather than clarify.

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

Purpose4/5

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

States a specific verb and resource ('Look up an Amtrak route by name') and even names the return payload (map name, train numbers), so the agent knows exactly what it does. It does not explicitly distinguish itself from the nearest sibling, lookup_station, leaving that separation to the resource noun alone.

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

Usage Guidelines3/5

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

Usage is only implied: the example route names (Acela, Northeast Regional, Lake Shore) suggest when the tool is applicable, but there is no explicit when-to-use, when-not-to-use, or referral to lookup_station / get_train_status for other lookup needs.

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