Skip to main content
Glama

Buscar ciudades

buscar_ciudades

Search Peruvian cities and terminals by name to obtain numeric IDs, enabling bus schedule queries.

Instructions

Busca ciudades/terminales de Perú en RedBus por nombre y devuelve su ID numérico. Necesario porque 'buscar_buses' funciona con IDs de ciudad. Devuelve también los terminales/áreas de cada ciudad.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textoYesNombre (o parte) de la ciudad a buscar, ej. 'Arequipa', 'Cusco', 'Lima'.
limiteNoMáximo de ciudades a devolver (por defecto 10).
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool returns numeric IDs and also terminals/areas for each city, which is adequate for a read-only search tool. However, it does not mention any potential side effects, authentication requirements, or rate limits, which could be relevant.

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 two sentences long, front-loaded with the core purpose and a necessary contextual note. Every sentence adds value, and there is no redundant or extraneous 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 the tool's simplicity (2 parameters, no output schema), the description is complete. It explains what the tool returns (ID and terminal/area info) and provides context with the sibling tool 'buscar_buses'. No additional details are necessary for an agent to use it effectively.

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?

The input schema has 100% coverage with descriptive parameter names and descriptions. The text description adds minimal additional meaning beyond the schema, mainly connecting the parameters to the overall purpose. Since schema coverage is high, a baseline score of 3 is appropriate.

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 clearly states the tool's purpose: search for cities/terminals in Peru by name and return numeric IDs. It explicitly distinguishes itself from the sibling tool 'buscar_buses' by explaining that the latter uses city IDs, making the purpose and necessity clear.

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 clear context for when to use this tool: before 'buscar_buses' because that tool uses city IDs. It does not explicitly mention when not to use it or alternatives like 'detalle_servicio', but the guidance is sufficient for an agent to understand the typical workflow.

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/paulxcz/redbus-mcp'

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