Skip to main content
Glama

ocr

OCR con modello vision (agnes-3.0-flash): trascrive il testo di un'immagine (png, jpg, webp, gif) o di una pagina di PDF. Restituisce il testo, il numero di caratteri e il modello che ha letto. Il costo e' per immagine: in MCP ogni chiamata copre una immagine o una pagina di PDF (per un PDF di N pagine si chiama N volte, passando 'pagina'). Esempio: url='https://.../fattura.pdf', pagina=1.

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

Input Schema

NameRequiredDescriptionDefault
urlNo
base64No
linguaNo
paginaNo
istruzioniNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 meaningful work: it discloses the billing model (cost per image), the one-unit-per-call constraint that governs batching, and the return payload (text, character count, model used). It leaves out size limits, error behavior, and whether 'url' must be publicly reachable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

Purpose and model come first, followed by output shape, cost model, and the pagination rule, then a concrete example. It is dense but every sentence carries information; only the enumeration of formats feels slightly listy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return values are described despite no output schema, and the per-page calling convention is covered, which are the hardest parts. However, with zero annotation coverage and five undocumented parameters, an agent still lacks guidance on base64 input, language selection, and free-form instructions.

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 coverage is 0% across 5 unnamed-in-prose parameters, so the description must compensate. It explains 'pagina' well and demonstrates 'url' by example, but 'base64', 'lingua', and 'istruzioni' get no explanation, and the url-vs-base64 mutual exclusivity is never stated.

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?

States a specific verb and resource ('trascrive il testo di un'immagine ... o di una pagina di PDF') and names the underlying vision model plus the accepted formats (png, jpg, webp, gif). It stops short of differentiating itself from the sibling 'pdf' and 'immagine' tools, so an agent still has to guess which one to reach for on a PDF.

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?

Gives concrete operational guidance: one call covers exactly one image or one PDF page, so an N-page PDF requires N calls with the 'pagina' argument, illustrated by an example. It offers no exclusions or alternatives, so it says when to use it but not when to prefer a sibling.

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.