Skip to main content
Glama

Read text

snipaya_read_text
Read-only

Extract text from images with on-device OCR, returning lines in reading order with bounding rectangles. Limit results by rectangle or image ID for targeted reading.

Instructions

Recognize text (on-device OCR) in the images and return the lines in reading order with their rects. Limit it with rect and/or imageId. Rects use the relativeTo space when set.

Input Schema

NameRequiredDescriptionDefault
rectNoA rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo.
tabIdNoTarget tab id. Defaults to the active tab.
imageIdNoOnly read this image.
relativeToNoImage id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false. The description adds useful behavioral context: OCR runs on-device, returns lines in reading order with rects, and coordinate interpretation depends on relativeTo.

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?

Three sentences, front-loaded with the core action, followed by scoping and coordinate semantics. Every sentence carries useful information without repetition.

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?

The description is sufficient for an agent to understand the tool's purpose, return content, and scoping parameters. It does not cover edge cases such as no text found or multiple images, but no output schema exists and the safety profile is already covered by annotations.

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 100%, so all four parameters are already well documented in the input schema. The description reinforces that rect and imageId can limit the operation and that rect coordinates follow relativeTo, but it adds little beyond the schema's own descriptions.

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 verb and resource: on-device OCR text recognition in images. It also specifies the return shape (lines in reading order with rects) and limiting options, which clearly distinguishes it from sibling tools like render or get_canvas.

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 usage context by explaining that the operation can be limited with rect and/or imageId. It does not explicitly state when not to use it or name a sibling alternative, which keeps it below a 5.

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