Skip to main content
Glama

texterkennung

texterkennung

Extract text from images or PDFs lacking a text layer using OCR. Generate a new text file with source metadata while preserving the original.

Instructions

SCHREIBT IN DIE AKTE. Texterkennung (OCR) für ein Foto oder eine PDF ohne Textschicht, über das freiwillige Zusatzprogramm tesseract auf diesem Rechner. Legt den erkannten Text als neue Textdatei unter 07 Recherche/Texterkennung an (eigene D-Kennung, Verweis auf das Original, Kopf mit Quelle, Prüfsumme, Programm, Sprache, Datum und Warnhinweis) und vermerkt beim Original den Textstand „OCR-erkannt“, wenn dort noch keiner steht. Das Original bleibt unverändert, nichts wird überschrieben. Erkannter Text ist eine Ableitung: Zahlen, Daten, Fristen, Beträge und Namen am Original prüfen. Nur mit bestaetigt=true nach Rückfrage beim Nutzer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fallYes
spracheNotesseract-Sprachkürzel, Standard deu; mehrere mit +, etwa deu+eng
dokumentYesD-Kennung eines Fotos oder einer PDF ohne Textschicht
bestaetigtNoNur true, wenn der Nutzer genau diesen Aufruf mit diesen Parametern ausdrücklich bestätigt hat. Ohne true wird nichts geändert; die Antwort enthält dann die Rückfrage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses exactly what is created (new text file with D-Kennung, source reference, header with checksum, program, language, date, warning), where it lands (07 Recherche/Texterkennung), that the original is never modified or overwritten, and that a text-status marker is set on the original. It also warns that OCR output is a derivation whose numbers, dates, deadlines and amounts must be verified at the original.

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?

A single dense paragraph that front-loads the critical mutation warning ('SCHREIBT IN DIE AKTE') and then flows through preconditions, side effects, and verification caveats. Lengthy, but nearly every clause carries operative information.

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?

For a mutation tool with no output schema, the description covers preconditions, confirmation gate, artifacts produced, original-file preservation, and downstream verification duties. An agent has everything needed to call it safely.

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 75%, so most parameters are documented structurally. The description adds meaning beyond the schema for bestaetigt (an explicit user-confirmation gate) and for dokument (must be a photo or text-layer-less PDF), though it never explains the fall parameter.

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: performs OCR on a photo or text-layer-less PDF via tesseract, and writes the result into the case file as a new text file. It also implicitly distinguishes itself from the sibling dokument_text (which reads existing text) by requiring a document *without* a text layer.

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?

Clearly states the precondition for use (photo or PDF without a text layer) and the hard gate: only with bestaetigt=true after asking the user. It does not name a sibling alternative explicitly, so it falls just short of the top mark.

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