Skip to main content
Glama

Mexico - INE OCR (0.40 credits)

mexico_api_ine_ocr

Read Mexico INE voter cards with OCR to extract name, ID, and other printed text from front and optional back images supplied as URLs or base64.

Instructions

Mexico INE card OCR. Returns the text read from the voter card, including name and ID fields the images contain. Inputs: front image and an optional back image, as base64 or https URLs. Use it to read a card. Use mexico_api_ine_validate to check the INE number, CIC, and emission data. Costs 0.40 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": {
      "front": "<front>"
    },
    "name": "mexico_api_ine_ocr"
  }
}

Input Schema

NameRequiredDescriptionDefault
backNoOptional back image as a public URL or base64 string. Improves OCR accuracy.
frontYesFront image of the INE as a public URL or base64 string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the billing model ('Costs 0.40 credits per successful call') and what the response contains (extracted text, name and ID fields), which the readOnlyHint/openWorldHint flags do not convey. It does not cover failure behavior for unreadable or low-quality images, so it stops short of full transparency.

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, front-loaded sentences covering purpose, output, inputs, sibling routing, and cost. 'Use it to read a card' is mildly redundant with the opening sentence, but there is no other waste.

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?

With no output schema, the description usefully summarizes the return value and states the credit cost up front; parameters are fully covered by the schema. The only remaining gap is error/quality behavior when OCR fails on a poor image.

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 100% and both parameters already document URL-or-base64 input plus the accuracy benefit of the back image. The description restates the same input modes without adding format, size, or encoding constraints, so it does not exceed the schema.

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 opens with a specific verb+resource ('Mexico INE card OCR') and immediately states the output ('the text read from the voter card, including name and ID fields'). It explicitly separates itself from the sibling mexico_api_ine_validate, so an agent can pick the right tool without opening either schema.

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?

It gives an explicit when-to-use ('Use it to read a card') and names the alternative with the condition that selects it ('Use mexico_api_ine_validate to check the INE number, CIC, and emission data'). Both the routing decision and the exclusion are stated, not inferred.

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