Skip to main content
Glama

Texto de um documento por página

documento_texto
Read-onlyIdempotent

Extract page-by-page text from PDFs or text files to locate passages and verify numbers, flagging pages without embedded text for image review; check column order on the page.

Instructions

Texto extraído página por página de um PDF (ou arquivo de texto), para localizar trechos e conferir números. Página sem texto próprio vem marcada (o carimbo de assinatura do PJe não conta): é escaneada, veja como imagem com documento_imagens (o MCP não faz OCR). O texto pode sair fora da ordem visual das colunas: confira sempre na página.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
arquivoYesCaminho do PDF ou do arquivo de texto.
paginasNoEx.: "1-3,7" (padrão: todas).
max_caracteresNoPadrão 60000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.16.0-mcp.14
    • addedInput schema / properties / arquivo / description
      Added value: +"Caminho do PDF ou do arquivo de texto."
  2. First observedv2.16.0-mcp.13

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, yet the description still adds non-obvious behavior: pages lacking own text are flagged, the PJe signature stamp does not count as text, and output order may not follow the visual column order. It does not mention that output can be truncated by max_caracteres (default 60000), a relevant behavioral caveat.

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

Conciseness5/5

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

Three tight sentences: purpose first, then the scan/alternative caveat, then the ordering warning. No filler; each sentence carries a distinct, actionable fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 still conveys the shape of the result (text per page, with a scanned-page marker) and the two failure modes an agent must handle (scanned pages, column misordering). Nothing essential for correct invocation is missing.

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% (arquivo, paginas, max_caracteres all documented in-schema), so the baseline is 3. The prose adds no per-parameter detail, only the caveat to verify text against the page.

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 concrete verb+resource with scope: extracted text page by page from a PDF (or text file). It also implicitly distinguishes itself from documento_imagens by routing scanned/no-text pages there, so an agent can separate the two without opening either schema.

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?

Gives the use case (locate excerpts, check numbers), an explicit exclusion (pages without their own text are scanned; the MCP does no OCR), and names the alternative tool (documento_imagens) for that case. When-to-use and when-not-to-use are both covered.

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