Skip to main content
Glama

Search stations

procurar_estacao
Read-onlyIdempotent

Find Portuguese CP train stations by name using accent-insensitive fuzzy search and return ranked station codes for other tools.

Instructions

Find CP stations by name (accent-insensitive, fuzzy). Returns a ranked list with CP station codes (94-xxxx) to use in other tools.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "procurar_estacao"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesStation name or part of it, e.g. 'Campanhã', 'sao bento', 'coimbra'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description still adds real behavioral detail beyond them: accent-insensitive fuzzy matching and a ranked result list containing CP codes. It does not cover empty-result behavior, ranking criteria, or truncation.

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?

Two tight sentences with no filler; the core capability is front-loaded and the downstream use of the returned codes follows naturally. Nothing needs to be added for compactness, though a clause on limit or empty results could have been folded in.

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?

There is no output schema, and the description does cover the return shape (ranked list plus CP station codes) sufficiently for a caller to chain into other tools. The remaining gap is the undocumented limit parameter and the no-match case, minor for a simple two-parameter lookup.

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 50%: the query parameter carries its own description, while limit (default 5, max 20) is documented only by schema constraints. The description adds meaning for query via accent-insensitivity and fuzzy partial matching, but says nothing about limit or how it interacts with ranking.

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?

States a specific verb and resource: find CP stations by name, with matching behavior (accent-insensitive, fuzzy). It also disambiguates from siblings implicitly by noting the output is station codes for use in other tools, making it the lookup entry point rather than a detail tool like info_estacao. It stops short of naming an explicit alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Returns ... CP station codes (94-xxxx) to use in other tools' implies this is the first call in a workflow, which is useful context. However, there is no explicit when-to-use/when-not guidance and no declared alternative for looking up details about a station already known.

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