Skip to main content
Glama

get_result

Retrieves finished OCR job results as a file with path, size, and confidence checks, or returns selected page text or matching lines directly in chat without writing a file.

Instructions

Result of a finished job. Default: write it to a file and return path, size and check: words, mean confidence and uncertain words per page, notes such as probably several columns. The content stays out of the chat. pages ('3', '1-5') returns those pages' text here, search the matching lines with page numbers; neither writes a file. The file goes to ocr-results next to the document by default; pdf is searchable. Results expire after about 24 hours. In the json: confidence is 0 to 1, box is [x0,y0,x1,y1] in pixels of the page image (page width, height). verified (per word) is true only where a second reader confirmed it (scan-vlm-ctc@2); safe_ok (per page) is always false today. Judge by confidence.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNolike 3 or 1-5 or 2,4,7-9: return the text of these pages here, no file
formatNojson (default), text, md, hocr or pdf; file output only
job_idYesfrom submit_job
searchNoreturn the lines containing this text with page numbers, no file
out_dirNofolder for the file; not allowed if the human set OCR_OUT_DIR
source_pathNooriginal document, needed for pdf after a restart of this server

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses that the default writes a file (a side effect on a read-shaped tool), that content stays out of chat, the default output location (ocr-results next to the document), that pdf output is searchable, and that results expire in about 24 hours. It also flags known limitations in the data (verified only where a second reader confirmed, safe_ok always false today). It omits what happens if the job is not finished or has failed.

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

Conciseness3/5

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

The default behavior is front-loaded, and most sentences carry information (file location, expiry, field semantics). However, the text is a dense run-on broken by mid-sentence line wraps, and the clauses 'return path, size and check: words, mean confidence...' are awkward to parse. A cleaner separation of modes versus payload-field notes would improve scannability without losing content.

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?

There is no output schema, so the description must explain returns, and it does for both the file mode (path, size, checks) and the inline json (confidence scale, box format, verified, safe_ok). Expiry and default output location are covered. The main gap is error/failure behavior when the job has not finished successfully.

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, but the description adds real meaning beyond the schema: pages accepts forms like '3' or '1-5' and returns text inline, search returns matching lines with page numbers, and neither writes a file. It also explains that the json payload carries confidence 0-1 and box coordinates in page-image pixels, and that default output is json while pdf is searchable. source_path is not elaborated in the description, though the schema covers it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Result of a finished job' and immediately makes clear this retrieves OCR output with two modes (write file, or return text/lines inline). A verb is absent from the lead sentence, but the subsequent sentences make the retrieval action unambiguous. It does not name sibling tools such as job_status or uncertain_words, so an agent gets no explicit routing signal.

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 clearly states the default behavior (write a file and return path/size/checks) and the two alternatives: pages returns that text in chat and search returns matching lines, with 'neither writes a file' clarifying the trade-off. It also warns results expire after ~24 hours, implying the tool must be called promptly after completion. It stops short of stating prerequisites such as 'job must be finished' or how this differs from sibling tools.

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