Skip to main content
Glama

page_captcha_ocr

Recognize distorted-text CAPTCHA images locally and return the recognized text for filling the answer field.

Instructions

CAPTCHA OCR: classify the text of a normal image captcha (the distorted-text family) with the ddddocr model (CRNN+LSTM trained specifically on captcha text, 8210-char charset). 100% local — runs on onnxruntime inside the runtime. Takes the ref of the captcha element (or the whole viewport) and returns the recognized text. Feed it into the answer field and submit. Far stronger than generic OCR on captcha fonts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoRef of the captcha <img> element. Omit for the whole viewport.
page_idYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.3

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden. It discloses meaningful traits: 100% local execution via onnxruntime, model architecture, charset size, and how input is scoped (ref or entire viewport). It does not detail error or failure behavior, but the core operational transparency is strong.

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?

The description is compact and front-loaded, starting with the tool's purpose and then adding model detail, execution model, input behavior, and downstream usage. Every sentence adds value; the efficiency and 'stronger than generic OCR' note reinforces selection without padding.

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?

Given there is no output schema, the description still communicates the return value ('returns the recognized text') and the practical next step ('feed it into the answer field and submit'). It provides enough for an agent to invoke correctly, though it could briefly mention limitations or failure cases for unusual captcha types.

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 only 33%, so the description must compensate. It explains the most meaningful parameter, ref, including the omit-for-viewport behavior. However, it adds no meaning for the required session_id and page_id parameters, which remain undocumented in both schema and description.

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?

The description states a specific operation (OCR/classify text) and resource (normal image captcha, distorted-text family), and distinguishes the tool by naming the specialized ddddocr model and contrasting with generic OCR. This clearly separates it from siblings like page_ocr and captcha_solve.

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?

The description gives concrete usage context: use for normal distorted-text image captchas, feed the img ref or whole viewport, and pass the result into the answer field. It does not explicitly name sibling tools or exclusion cases, but the 'normal image captcha (distorted-text family)' phrasing provides a clear selection criterion.

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