Skip to main content
Glama

Text aus PDF auslesen

pdf_text

Extracts the text of a PDF (per page or merged), page count, title, author and creation date. Lets agents read invoices, contracts and reports sent as PDF. Scanned PDFs without a text layer return little text. PDF-Text-Extraktion. Preis $0.01 (x402).

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": {
      "datei": "<datei>"
    },
    "name": "pdf_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateiYesPDF als Base64
seiten_einzelnNoText je Seite

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose meaningful behavior: the return payload includes metadata beyond text, degraded results on scanned PDFs, and a $0.01 x402 payment requirement that affects whether the agent should call it. It omits error behavior for invalid Base64, size limits, and how merged page text is delimited.

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 operation and its outputs, then context, then the limitation and price. The sentence "PDF-Text-Extraktion." is a redundant German keyword restatement of the tool name and earns no place, and the mixed German/English phrasing is slightly choppy.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema and no annotations, the description does describe return content and the main failure mode. It still leaves gaps an agent would want: whether metadata fields are always present, what happens on a non-PDF or oversized upload, and how text is joined in merged mode.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns one point above baseline by clarifying that the default is merged text while "per page" is opt-in, a detail the schema's "Text je Seite" does not state. It adds no guidance on input size or Base64 encoding requirements.

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 and resource ("Extracts the text of a PDF") and enumerates what comes back: text per page or merged, page count, title, author, creation date. This is unambiguously distinct from sibling tools such as pdf_erzeugen, so an agent can select it without opening the schema.

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 usage context — reading invoices, contracts and reports delivered as PDF — plus a when-it-fails condition (scanned PDFs without a text layer). It stops short of naming an alternative for OCR or for other document types, so no explicit exclusions or routing are provided.

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.

Resources