Skip to main content
Glama

bus_line_info

Retrieve Carris Metropolitana bus line details—route ends, directions, municipalities, stop lists, and daily service status—to check where a line goes or if it serves a stop.

Instructions

Details of a Carris Metropolitana line: name, route ends, directions, municipalities.

Use for "where does line 4715 go?", "which bus goes from Cacilhas to Almada?", or to check whether a line passes a stop (include_stops=True). If line is not an exact line number it is treated as text (e.g. "Oriente Setubal") and the matching lines are listed instead. trips_today = 0 means the line does not run today (some lines are seasonal or weekday-only). Departure times past midnight are written "24:30", "25:10" (same service day).

Args: line: 4-digit line number ("4715") or free text matched against line names. include_stops: Also list every stop (id + name) in order for each direction.

Input Schema

NameRequiredDescriptionDefault
lineYes
include_stopsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it discloses the free-text fallback (non-exact input lists matching lines rather than erroring), explains that trips_today = 0 means the line does not run today, and warns about past-midnight times written as '24:30'. It doesn't cover behavior on zero matches or result-set size limits.

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?

Front-loaded with the core purpose and the returned fields, then usage examples, then a compact Args block. Every line carries information the agent would not otherwise have; nothing is filler.

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?

An output schema exists, so return values needn't be spelled out, and the description instead spends its budget on edge cases the schema can't express (seasonal/weekday-only lines, midnight rollover, free-text fallback). For a 2-parameter lookup tool this is complete.

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

Parameters5/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 compensate and does: 'line' is documented as either a 4-digit number or free text matched against line names, with the divergent behavior for each case, and 'include_stops' is documented as listing every stop id+name in order per direction. This adds meaning well beyond the bare string/boolean types in the schema.

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 opens with a specific verb+resource ('Details of a Carris Metropolitana line') and enumerates the concrete fields returned (name, route ends, directions, municipalities). The follow-up examples ('where does line 4715 go?') make it unmistakable versus siblings like bus_find_stops or bus_next_arrivals.

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 gives clear use cases and even routes an internal decision ('include_stops=True' to check whether a line passes a stop). What it lacks is an explicit exclusion naming the sibling to use instead for stop lookup or arrival times, so the agent must infer that boundary from the sibling names.

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