Skip to main content
Glama

Baixar etiqueta (Correios)

get_label_pdf

Get a fresh download link for the PDF of an already-created Correios pré-postagem by its id. Use it when generate_label's link reason was label_pdf_timeout and you want a new link to hand the merchant/customer, or to re-check status later. Requires the store's own authenticated Correios contract.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceIdNoMerchant/store id. Ignored on authenticated servers (the merchant comes from the API key); used only on local/unauthenticated servers.
prepostagemIdYesCorreios pré-postagem id, as returned by generate_label in the `prepostagemId` field.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoWhy the PDF wasn't returned.
statusNoCorreios status/business message, when the label isn't printable.
actionUrlNoWhen set (e.g. reason=subscription_required), send the merchant here to finish setup.
labelPdfUrlNoClickable link to download the label PDF — share this with the merchant/customer in chat.
prepostagemIdNoThe pré-postagem id the PDF belongs to.
labelPdfBase64NoBase64-encoded label PDF, once ready.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
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 usefully discloses the auth requirement (store's own authenticated Correios contract) and that a fresh link is produced, but says nothing about link expiry, idempotency, or how it differs behaviorally from recover_label_pdf.

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?

Three sentences, purpose front-loaded, then the usage trigger, then the prerequisite. Minimal waste, though the second sentence is slightly circuitous in phrasing.

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 an output schema present, return values need no explanation, and schema coverage is full. What remains missing is behavioral edge detail (link lifetime) and disambiguation from recover_label_pdf, but the core is complete.

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 both parameters are already documented in the schema. The description only echoes 'by its id', adding no syntax, format, or sourcing detail beyond what the schema provides. Baseline 3 applies.

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 (get a fresh download link) plus the exact resource (PDF of a Correios pré-postagem) and how it's keyed (by id). It references generate_label but does not distinguish itself from the similarly named sibling recover_label_pdf, which appears to overlap.

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?

Gives an explicit trigger: use when generate_label's link reason was label_pdf_timeout to obtain a new link or re-check status. This is clear context, but it does not state when NOT to use it or name recover_label_pdf as an alternative for the same need.

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.