Skip to main content
Glama

Mexico - INE Validation (0.40 credits)

mexico_api_ine_validate
Read-onlyIdempotent

Validates Mexican INE voter ID credential data by checking the document number, citizen identifier, emission number, and card model, then returns whether the supplied information matches.

Instructions

Mexico INE validation. Returns whether the credential data matches. Inputs: documentType INE, documentNumber, citizenIdentifier, emissionNumber, and model (C through H). Use it to validate an INE. Use mexico_api_ine_ocr to read the card from photos and mexico_identity_lookup for a CURP. 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": {
      "documentType": "<documentType>",
      "documentNumber": "<documentNumber>"
    },
    "name": "mexico_api_ine_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional INE card model hint: C, D, E, F, G, or H.
documentTypeYesMexican voter ID type. Use INE.
documentNumberYesPrimary INE identifier: CIC (9 digits), OCR (13 digits), or clave de elector (18 characters).
emissionNumberNoEmission number. Required for model C with OCR or clave de elector.
citizenIdentifierNoCitizen identifier from the back of the credential. Required for models E, F, G, and H with CIC.

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?

Annotations already cover readOnly, idempotent, openWorld and non-destructive, so the bar is lower. The description still adds real value beyond them: the per-successful-call cost (0.40 credits) and the conditional field dependencies (emissionNumber for model C with OCR/clave, citizenIdentifier for E–H with CIC). It does not describe failure or mismatch behavior beyond the boolean match statement.

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?

Front-loaded with purpose, then routing, then cost, then inputs — sensible ordering with no filler. The 'Inputs:' enumeration is mildly redundant against a fully described schema, but it is compact and does not bloat the definition.

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?

There is no output schema, and the description does state the return semantics (whether the credential data matches) plus cost and alternatives, which is the essential context for a single-call validator. It stops short of describing error or non-match responses, a minor gap for a paid endpoint.

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 every parameter, enum, and length constraint is documented inline, so the baseline is 3. The description's input list and model range (C through H) largely restate the schema rather than adding format or syntax detail.

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 (validate a Mexican INE credential) and immediately clarifies the output semantics: 'Returns whether the credential data matches.' An agent can distinguish this from OCR extraction and CURP lookup without opening any 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?

Explicit routing: 'Use it to validate an INE. Use mexico_api_ine_ocr to read the card from photos and mexico_identity_lookup for a CURP.' Each sibling is named with the condition that selects it, leaving nothing 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