Skip to main content
Glama

Image to Text

ImagetoText
Read-only

Image to Text: Image to Text is an OCR and image to text API that extracts text from image files or remote image URLs using optical character recognition. Upload a JPG, PNG, or GIF up to 5 MB to receive the raw extracted text. (Cost: 10 credits)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ImagetoText"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoThe URL of the image to extract text from
imageNoUpload an image file to extract text from (supported formats: JPG, PNG, GIF, max 5MB)
languageNoLanguage of the text, as ISO 639-1 codes; comma-separate several for mixed text (e.g. en,ja). Defaults to en

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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=true, so safety is covered by structured data. The description adds genuinely useful behavior beyond that: a 5 MB upload ceiling, accepted formats, that output is raw extracted text, and a cost of 10 credits per call. It does not cover failure modes (e.g., image with no detectable text) or whether multiple languages can be combined, 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.

Conciseness3/5

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

The core content is compact and front-loads the useful facts (OCR extraction, formats, size limit, cost). But the first clause duplicates the title twice before saying anything new, and the parenthetical cost is tacked on at the end rather than integrated. Trimming the redundant opening would make it noticeably tighter.

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 annotations cover the safety profile. The description fills the remaining practical gaps an agent needs before calling: accepted formats, upload size limit, and per-call credit cost. Only edge-case behavior (empty results, invalid URL handling) and the language option are unaddressed.

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 the schema already documents url, image, and language including the ISO 639-1 format and default of en. The description only restates the format/size constraints already present in the image parameter's schema text and never mentions the language parameter at all. This is the baseline case where the schema does the heavy lifting.

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 a specific verb and resource: extract text from image files or remote image URLs via OCR, and returns the raw text. That is enough to separate it from siblings like ImageCaption (describes images) or PDFtoText (PDFs), though it never names those alternatives explicitly. The opening phrase 'Image to Text: Image to Text is an OCR and image to text API' is a tautological restatement of the title before the useful content begins.

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

Usage Guidelines3/5

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

Usage is implied by the input description (upload a JPG/PNG/GIF or pass a URL to get text back), and the size and format constraints give practical context. However, there is no explicit when-to-use or when-not-to-use guidance, and no routing to closely related siblings such as PDFtoText, HTMLtoText, ImageCaption, or QRCodeReader. The agent must infer the choice from the tool name alone.

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.