Skip to main content
Glama
countaight

BusTime MCP

by countaight

get_detours

Check active bus detours to verify route stop or pattern data is current. Filter by route and direction to see relevant detours.

Instructions

Fetch active detours in the system. Optionally filter by route (rt) and, if rt is given, by direction. Check this before trusting a get_stops_for_route or get_patterns result is current, since detours can add/remove stops or shift pattern geometry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rtNoRoute designator to filter detours by, e.g. the 'rt' field from a get_routes() result.
directionNoDirection id to filter by (requires rt). Use the 'id' field from a get_directions(rt) result.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description bears full burden. It discloses that detours can add/remove stops or shift pattern geometry, which is valuable. However, it does not mention auth needs, rate limits, or other behavioral aspects. The output schema exists but is not described.

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 sentences, no wasted words. The main purpose is front-loaded, and the second sentence adds critical usage context. Very concise and well-structured.

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?

Given the output schema exists, the description doesn't need to explain returns. It adds important context about when to use the tool (before relying on other tools). However, it could mention any limitations or side effects.

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%, so baseline is 3. The description adds dependency between direction and rt, but the schema already states 'requires rt'. No additional parameter semantics beyond schema.

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?

The description clearly states the tool fetches active detours and optionally filters by route and direction. However, it does not explicitly differentiate from the sibling tool 'get_enhanced_detours', but the purpose is distinct enough.

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?

The description provides explicit guidance to check detours before trusting results from get_stops_for_route or get_patterns, highlighting why this tool is important. It does not mention when to use get_enhanced_detours instead, but the given guidance is strong.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/countaight/bustime-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server