Skip to main content
Glama

cartaregistada.pt

Orçamento de cartas

orcamento
Read-onlyIdempotent

O preço de uma ou mais cartas em papel enviadas pelos CTT (os correios de Portugal) por esta conta, IVA e portes incluídos, e o dia em que saem para os CTT. Conta as páginas que lhe disseres: para uma carta num ficheiro, o orçamento certo é o do enviar_carta (ou enviar_lote) com confirmo_preco: false, que abre o ficheiro e conta as páginas. / Quote for one or more paper letters mailed through CTT (Portugal's postal service) from this account (VAT and postage included). For a letter in a file, use enviar_carta with confirmo_preco: false, which counts the pages.

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": {
      "tipo": "<tipo>"
    },
    "name": "orcamento"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoA lingua do texto da resposta (pt por omissao); o structuredContent nao muda. / Language of the text reply.pt
tipoYesO tipo de envio: registada_com_ar (com aviso de recepcao, a prova de entrega), registada_sem_ar, azul (prioritario, sem registo) ou normal (sem registo).
cartasNoQuantas cartas, quando e para varios destinatarios: devolve o total e o prazo do lote, que nao e o de uma carta so. 1 a 200.
paginasNoAs paginas (faces) da carta. Ate 10 incluidas; cada uma a mais tem preco.
urgenteNoSai para os CTT no dia util seguinte ao pagamento. So nas registadas.
ar_digitalNoA recepcao digital do aviso de recepcao, por email. So na registada_com_ar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cartas
      Added value: +{
      +  "default": 1,
      +  "description": "Quantas cartas, quando e para varios destinatarios: devolve o total e o prazo do lote, que nao e o de uma carta so. 1 a 200.",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds real behavioral context beyond them: prices include VAT and postage, a dispatch day is returned, and critically that this tool does NOT open files — it only counts the page number you supply. It stops short of describing batching/pagination or rounding 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?

Front-loaded with the core purpose, then the usage caveat; every sentence carries information. Slight verbosity from full Portuguese/English duplication, though the parallel text is defensible given the lang parameter.

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?

With no output schema, the description does the work of explaining returns (price, dispatch day, and per the schema, lot total and deadline). It is adequate for a read-only quoting tool; minor gaps remain around how the quote is expressed (per-item vs aggregate) when cartas > 1.

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 100%, so every parameter (lang, tipo, cartas, paginas, urgente, ar_digital with its tipo dependency) is already documented in the schema. The description's note that pages are 'counted as you tell it' reinforces the paginas semantics but adds little beyond the schema's own wording. Baseline 3 applies.

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?

Names a specific verb (quote/price) and resource (one or more paper letters via CTT), and states what the returned figure includes (IVA and postage) plus the dispatch day. An agent can distinguish this from enviar_carta/enviar_lote purely from the description.

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?

Explicitly routes the file case away from this tool: for a letter in a file the correct quote comes from enviar_carta (or enviar_lote) with confirmo_preco: false, which opens the file and counts pages. It names the alternatives and the exact flag that selects them, leaving nothing to inference.

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.