Skip to main content
Glama

uncertain_words

Lists OCR words with low confidence or conflicting readings, least sure first, so you can verify them against page images and correct errors before trusting extracted text.

Instructions

Words the OCR read with low confidence (below max_confidence, default 0.9: the words of the gold set that were really wrong sat at about 0.83) or flagged as differing readings (scan-vlm-ctc), least sure first: page, word, confidence, other_reading if there is a second one, and box [x0,y0,x1,y1] in pixels of the page image (page_size: width and height per page). Check these against the image of the page, do not trust them blindly, and tell the human what you corrected. limit 1 to 100, max_confidence 0 to 1. Needs a finished job.

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": "uncertain_words"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo1 to 100: most words returned
pagesNolike 3 or 1-5: only these pages
job_idYesfrom submit_job
max_confidenceNo0 to 1: list words below this confidence

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, the description carries the full burden and does substantial work: it discloses ordering (least confident first), the default threshold and the empirical basis for it (~0.83 on the gold set), the coordinate system for boxes, and that page_size applies per page. It does not state the read-only nature explicitly or say anything about output volume beyond the limit, so it is strong but not complete.

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?

All the content is useful, but it is delivered as one sprawling sentence with nested parentheses (the gold-set aside and the per-page size note), which makes it hard to scan. Purpose is front-loaded, yet the structure would benefit from splitting the return-field list and the verification instruction into separate sentences.

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, and the description compensates by enumerating return fields, their ordering, and the coordinate format. The prerequisite (finished job) and the verification obligation are both stated. Only a note on response size or interaction with other pending jobs is missing.

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 meaning beyond the schema: it explains why max_confidence defaults to 0.9 by citing the ~0.83 confidence of genuinely wrong gold-set words, which helps an agent decide whether to widen the net. The limit range is merely restated, but the threshold rationale earns the bump.

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 states precisely what the tool returns: words OCR read below a confidence threshold, plus words flagged as differing readings by scan-vlm-ctc, ordered least-sure-first. It names the returned fields (page, word, confidence, other_reading, box) so an agent knows the resource exactly. It never contrasts itself with the closest sibling (get_result), so it falls short of a 5.

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 gives clear operating context: it 'Needs a finished job' (a prerequisite), and instructs the agent to verify each word against the page image rather than trusting the output, then report corrections to the human. That is real when/how-to-use guidance. It stops short of naming alternatives such as get_result for a full transcript.

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