Skip to main content
Glama

Salvar PDF do boleto

inter_salvar_pdf_cobranca
Read-onlyIdempotent

Downloads a boleto PDF with barcode and Pix QR code for a charge, saves it to the configured folder, and returns the file path without overwriting existing files.

Instructions

Baixa o PDF do boleto (com código de barras e QR Code Pix) de uma cobrança e salva na pasta configurada (INTER_PDF_DIR, padrão ~/Downloads/inter-boletos). Devolve o caminho do arquivo, não o conteúdo. Nunca sobrescreve um arquivo existente. Use inter_listar_cobrancas para achar o código da cobrança. Exemplo: 'salva o boleto da cobrança X' -> codigo_solicitacao=''.

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_solicitacao": "<codigo_solicitacao>"
    },
    "name": "inter_salvar_pdf_cobranca"
  }
}

Input Schema

NameRequiredDescriptionDefault
codigo_solicitacaoYesCódigo da cobrança no Inter (codigoSolicitacao, UUID). Obtenha com inter_listar_cobrancas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses side effects the hints do not capture: the file lands in INTER_PDF_DIR (default ~/Downloads/inter-boletos), existing files are never overwritten, and the return value is a path rather than content. There is mild tension with readOnlyHint=true / idempotentHint=true since a local write occurs and the second-call behavior when a file already exists is unspecified, but the disclosure itself is unusually forthright.

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?

The action and destination are front-loaded in the first sentence, followed by return semantics, the no-overwrite rule, and the prerequisite in priority order. Dense but every sentence carries an actionable fact, not padding.

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 correctly compensates by stating the return is a file path in the configured directory rather than PDF content, plus the non-overwrite guarantee. The only real gap is what happens when the target file already exists (error versus returning the existing path), which matters given idempotentHint=true.

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 100% and the single parameter already carries a UUID pattern and a pointer to inter_listar_cobrancas, so the description's UUID example and lookup hint largely restate the schema. Baseline 3 applies; the natural-language example adds only marginal value.

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 states a specific verb pair ('Baixa o PDF' / 'salva') on a specific resource ('boletos de uma cobrança') and specifies the payload ('com código de barras e QR Code Pix'), which distinguishes it from the read-only siblings like inter_consultar_cobranca or inter_listar_cobrancas that return data rather than a file.

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?

It names the prerequisite path explicitly: 'Use inter_listar_cobrancas para achar o código da cobrança', and provides a natural-language-to-parameter example, so an agent knows how to obtain the required UUID. It lacks an explicit exclusion clause (e.g., 'do not use to read cobrança data — use inter_consultar_cobranca'), but the file-writing framing makes the boundary largely self-evident.

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