Skip to main content
Glama

bus_service_alerts

Check Carris Metropolitana bus service alerts by line or stop to identify detours, works, strikes, or unserved stops before recommending a trip.

Instructions

Service alerts (detours, works, strikes, stops not served) for Carris Metropolitana.

Use before recommending a trip, or when the user asks "is line X disrupted?". Filter by line and/or stop; with no filter, returns all current alerts (there are often ~100). Alerts are mostly published in Portuguese only.

Args: line_id: 4-digit line number, e.g. "4407". stop_id: 6-digit stop id, e.g. "160584". include_upcoming: Also return alerts that start in the future (default True). language: Preferred language ("pt" or "en"); falls back to what exists. limit: Max alerts to return (default 20, max 100).

Input Schema

NameRequiredDescriptionDefault
limitNo
line_idNo
stop_idNo
languageNopt
include_upcomingNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It usefully discloses the likely volume (~100 alerts with no filter), that alerts are mostly Portuguese-only, and how defaults behave, though it does not discuss update frequency or source reliability.

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?

The description is front-loaded with purpose and usage, then presents parameters in a compact, scannable block. Every sentence and parameter note adds actionable information.

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?

Given there is an output schema, the description need not explain return values. It covers all five parameters, their formats/defaults, the no-filter behavior, language limitation, and when to invoke the tool, leaving no material gap for correct invocation.

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 it does: line_id is described as a 4-digit line number with an example, stop_id as a 6-digit stop id with an example, include_upcoming and language defaults are explained, and limit is given a default and maximum.

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 states a specific resource and scope: service alerts for Carris Metropolitana, including the kinds of disruptions covered. It clearly distinguishes this tool from sibling bus tools such as bus_next_arrivals, bus_line_info, and bus_find_stops.

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?

It gives explicit usage guidance: use before recommending a trip, or when the user asks whether a line is disrupted. It also explains that filtering by line and/or stop is optional and that no filter returns all current alerts.

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