Skip to main content
Glama

viajes_cancelados

Read-only

Find canceled or added TransMilenio trips by route, date, system, and departure hour; view daily totals and routes ranked by cancellation rate.

Instructions

Viajes que TransMilenio marca como cancelados o añadidos frente a su horario.

Sin ruta: total del día, por sistema y las rutas con más (o menos, orden="menos") porcentaje de viajes cancelados. Con ruta: detalle por hora y, si es hoy, las horas de salida canceladas. fecha: "hoy" (sale del feed en vivo, sin historial), "ayer" o "2026-11-10" (de lo guardado). desde_hora/hasta_hora: franja por hora de salida. Sirve para "¿qué rutas cancelaron más viajes hoy?" o "¿cuántos viajes del C25 se cayeron?".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "viajes_cancelados"
  }
}

Input Schema

NameRequiredDescriptionDefault
rutaNo
fechaNo
ordenNomas
limiteNo
sistemaNo
desde_horaNo
hasta_horaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description is not burdened with the safety profile; instead it adds real behavioral context: `fecha="hoy"` reads the live feed and has no history, while "ayer" or an explicit date comes from stored data. It also discloses what each mode returns (day totals, top/bottom cancellation percentages, hourly detail, cancelled departure hours when today), though it says nothing about empty-result or error behavior.

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

Conciseness4/5

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

Purpose is front-loaded in sentence one, then behavior is organized by parameter branch in a readable sequence. Dense but every clause carries information; the quoted example questions are slightly redundant with the preceding explanation but still earn their place as usage anchors.

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

Completeness3/5

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

With no output schema, the description does a decent job describing the two response shapes and the live-vs-stored date distinction. However, for a 7-parameter tool it omits `limite` (result cap) and `sistema` (filter vs grouping), which an agent would need to call it correctly in edge cases.

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 description coverage is 0% across 7 parameters, so the description must carry the load. It clarifies `ruta`, `fecha` (accepted literal and date format "2026-11-10"), `orden` (implying `menos` as the inverse of the default), and the `desde_hora`/`hasta_hora` departure-hour window, but leaves `limite` and `sistema` entirely undefined and never states `orden`'s default value.

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 first sentence names a specific resource and verb-equivalent (trips TransMilenio flags as cancelled or added versus schedule), and the following sentences spell out two distinct modes (without `ruta` = day totals by system and route ranking; with `ruta` = hourly detail). An agent can tell what it returns, though no sibling tool is named to contrast against.

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?

Usage is anchored with concrete example questions ("¿qué rutas cancelaron más viajes hoy?", "¿cuántos viajes del C25 se cayeron?") that map directly to the with/without-`ruta` branches. It does not explicitly exclude alternatives such as `ranking_rutas` or `historial_ruta`, so selection against siblings still requires inference.

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