Skip to main content
Glama

Localidade de um código postal

localidade_do_codigo_postal
Read-onlyIdempotent

A localidade e o concelho de um código postal português, para preencher o destinatário. Sem confirmação, usa a localidade que a pessoa indicar. / Town for a Portuguese postal code.

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": {
      "codigo_postal": "<codigo_postal>"
    },
    "name": "localidade_do_codigo_postal"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoA lingua do texto da resposta (pt por omissao); o structuredContent nao muda. / Language of the text reply.pt
codigo_postalYesO codigo postal, no formato 0000-000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 adds the useful fallback behavior when the result is unconfirmed, but omits the important lookup outcome: what is returned for an unknown or malformed postal code, or whether exactly one locality can be assumed.

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

Conciseness3/5

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

The Portuguese side is tight and front-loaded: purpose, use, then fallback rule. The appended English fragment 'Town for a Portuguese postal code' is partial and asymmetric (missing concelho and the fallback rule), so part of the text does not fully earn its place.

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?

For a simple two-parameter read-only lookup with full schema coverage and annotations, the description supplies purpose and a fallback rule, which is close to sufficient. The remaining gap is the non-happy path (unresolvable code, response shape), which is a modest deficiency for this complexity level.

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?

Both parameters are fully documented in the schema (format pattern 0000-000 and lang enum noting structuredContent is unchanged), so the schema does the heavy lifting. The description says nothing about the parameters beyond the implicit postal-code concept, giving no added meaning over structured data.

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/resource pair: 'A localidade e o concelho de um código postal português', plus the downstream use ('para preencher o destinatário'), so the agent knows this resolves a postal code into town plus municipality for address filling. It is clearly distinct from sibling tools like enviar_carta or guardar_contacto, though the English half is reduced to 'Town for a Portuguese postal code' and drops the concelho.

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?

'para preencher o destinatário' implies the calling context, and 'Sem confirmação, usa a localidade que a pessoa indicar' supplies a useful fallback rule so the agent does not invent a town name. However, no explicit when-not-to-use or named alternative is given, and it never says what to do when the postal code does not resolve.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources