Skip to main content
Glama
geo-sapiens

Coletum MCP Server

Official
by geo-sapiens

analisar_pdf_modelo

Extract page size, margins, font styles, text coordinates, colors, and embedded images from a client's existing PDF or paper photo to recreate its exact layout as a reusable Typst template.

Instructions

Analisa o PDF modelo do cliente para replicar o layout num template Typst.

Devolve JSON compacto (tamanho da página em mm, margens estimadas, linhas de texto com posição, fonte, tamanho, estilo e cor, cores dominantes do texto, das áreas preenchidas e das linhas, imagens embutidas com posição e tamanho) E as páginas renderizadas como imagem, para você ver o layout. As imagens embutidas são salvas em disco (candidatas a logo, com o caminho) para usar em gerar_pdf_modelo e salvar_modelo (arquivos). Foto do papel: só a imagem, sem texto extraído. Só lê o arquivo indicado. Não chama a API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caminhoYesCaminho local do PDF (ou foto PNG/JPG) que o cliente já usa e quer replicar.
paginasNoPáginas a analisar, começando em 1. Padrão: as primeiras, até 3 por chamada.
resolucaoNoPontos por polegada das imagens das páginas. Padrão 70 (leve); suba para ler letra miúda.
pasta_saidaNoPasta onde gravar. Padrão: COLETUM_PASTA_SAIDA ou Documentos/Coletum/saidas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false with destructiveHint=false, and the description explains why: embedded images are written to disk with their paths. It also discloses constraints beyond the annotations — 'Só lê o arquivo indicado', 'Não chama a API', and the special case that a paper photo yields only an image with no extracted text. It stops short of describing how rendered pages are persisted or output size limits.

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 purpose in the first sentence, then side effects and constraints. The long enumeration of returned JSON fields is verbose but earns its place because there is no output schema; it is structured and readable rather than padded.

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 and a file-writing side effect, the description carries the burden well: it describes the returned JSON structure, the rendered page images, disk-written image paths, and the read-only/no-API constraints. Minor gaps remain around rendered-page persistence and any size or rate limits.

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 the schema already documents caminho, paginas, resolucao and pasta_saida, including defaults and bounds. The description does not add parameter-level detail beyond the schema; the output-field enumeration is about returns, not inputs. 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?

States a specific verb (analisa), a specific resource (o PDF modelo do cliente) and the outcome (replicar o layout num template Typst). This clearly distinguishes it from siblings like gerar_pdf_modelo or salvar_modelo, which consume its output rather than produce the analysis.

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 clear context: it is used to replicate a client's existing layout, and it explicitly points to gerar_pdf_modelo and salvar_modelo as the tools that consume the saved image paths. It does not, however, give explicit when-not-to-use guidance versus neighbors such as mostrar_arquivo.

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