Skip to main content
Glama

extract_image_text

Extract text segments from an image, in reading order (OCR).

Use this as the first step when localizing an image: pull out the
on-image source strings, translate each with `translate` (so TM, style
guides, and brand voice apply), then re-render with `localize_image`.

Args:
    image_path: Public HTTPS URL (hosted) or local path (stdio) to a PNG, JPEG, or WebP image file.

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": {
      "image_path": "<image_path>"
    },
    "name": "extract_image_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
image_pathYesPublic HTTPS URL (hosted) or local path (stdio) to a PNG, JPEG, or WebP image file.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / image_path / description
      Added value: +"Public HTTPS URL (hosted) or local path (stdio) to a PNG, JPEG, or WebP image file."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does disclose the key traits: output is ordered by reading order, the operation is OCR-based extraction, and the path argument behaves differently for hosted (HTTPS URL) versus stdio (local path) transports. It omits limits such as supported languages, image size caps, or failure modes, which keeps it short of a 5.

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?

Front-loaded with the purpose, followed by a compact workflow sentence and a short Args block. Nothing is padded, and the ordering of information matches how an agent would read it.

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?

An output schema exists, so return values need no explanation, and the single required parameter is fully documented. The workflow context is complete; only edge-case behavior (unsupported formats, empty results, size limits) is left unstated.

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?

There is a single parameter with 100% schema description coverage, and the Args block restates the schema text almost verbatim, adding no new meaning. With the schema already doing the work, the baseline of 3 applies.

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 ('Extract text segments from an image') plus the ordering guarantee ('in reading order') and the technique (OCR). It is immediately distinguishable from siblings like translate and localize_image, which it names as downstream steps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use rule ('first step when localizing an image') and lays out the full three-step workflow: extract here, translate each string, then re-render with localize_image. The agent knows both the entry point and the alternatives for the other stages.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.