Skip to main content
Glama

OCR Document Scan Studio (0.10 credits)

ocr_scan_studio

Extracts structured fields from document images using Studio OCR. Provide document type and image (base64 or HTTPS URL) with optional country to read and return parsed document data.

Instructions

Studio document OCR. Returns structured fields read from the document image. Inputs: documentType, image (base64 or https URL), and an optional country. Use it for the studio reader. Use ocr_scan_gpt for the other OCR path and document-liveness to check the photo is live. Costs 0.10 credits per successful call.

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": {
      "documentType": "<documentType>",
      "image": "<image>"
    },
    "name": "ocr_scan_studio"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesFace or document photo as a base64-encoded JPEG/PNG string (with or without a data:image/...;base64, prefix) or a public https:// image URL.
countryNoOptional ISO country code.
documentTypeYesDocument type code for Studio OCR. Allowed values: CC, RUT, PA, ENSAPA, DNI, CCVE, RIFVE, TLCC, TLCC_FULL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new context beyond that: pricing of 0.10 credits per successful call, and the suggestion to pair with document-liveness rather than assuming the photo is live. It stops short of describing failure behavior on unreadable images.

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?

Four short sentences, front-loaded with purpose and return shape, followed by inputs, routing, and cost. 'Use it for the studio reader' is the one sentence that does not earn its place.

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?

For a 3-parameter tool with full schema coverage and no output schema, the description covers purpose, inputs, alternatives, and cost. It is only missing selection criteria between the two OCR paths, which is a real but bounded gap.

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%, with the image format and the full documentType enum documented in the schema itself. The description only restates the input list ('documentType, image (base64 or https URL), and an optional country') without adding syntax, constraints, or format nuances, so it does not exceed the baseline for a fully documented schema.

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 opens with a specific verb+resource ('Studio document OCR') and states the return shape ('structured fields read from the document image'), which lets an agent distinguish it from the sibling ocr_scan_gpt. 'Use it for the studio reader' is somewhat circular and adds little, but the core purpose is clear.

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?

It names two alternatives (ocr_scan_gpt for 'the other OCR path' and document-liveness for liveness checks), so the agent knows siblings exist. However, it never states the criteria for choosing Studio over GPT OCR, leaving the routing decision to inference.

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

Deploy Server

Other Tools