Skip to main content
Glama

Clasificar un producto (fracción arancelaria de México)

clasificar_producto
Idempotent

Clasifica un producto en la TIGIE de México: fracción de 8 dígitos y NICO verificados contra la Tarifa oficial, confianza 0-100, justificación legal (Reglas Generales y notas), NOMs (separando certificado de etiquetado), permisos, padrón sectorial, cuotas compensatorias y contribuciones (IGI, IVA, IEPS, DTA). Tarda alrededor de un minuto y descuenta 1 clasificación del saldo. Si faltan datos mínimos responde faltan_datos sin cobrar: pregúntele esos datos al usuario y vuelva a llamar. Si el resultado dice tentativa=true, dígale al usuario que debe revisarlo. Si estado=requiere_aclaracion NO hay fracción: hágale al usuario las preguntas de aclaracion.preguntas y envíe su respuesta con responder_aclaracion (sin costo). Si requiere_dato_nico=true la fracción ya está entregada pero el NICO no: haga la pregunta de aclaracion.preguntas (descripciones oficiales, sin códigos) y envíe la opción elegida (n1, n2…) con responder_aclaracion; no cobra.

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": {
      "campos": "<campos>"
    },
    "name": "clasificar_producto"
  }
}

Input Schema

NameRequiredDescriptionDefault
camposYesDatos mínimos del producto. Si no los sabe, pregúnteselos al usuario: no invente. Consulte la herramienta campos_minimos para el detalle.
fichasNoFichas técnicas en PDF (base64). Con ficha, campos.material_salida puede ser 'ficha'.
imagenesNoFotos del producto, su placa o etiqueta (JPG, PNG o WebP en base64). Opcional; mejora la precisión.
ficha_urlsNo
imagen_urlsNoEn lugar del base64: URLs del almacenamiento de AduanaLabs de la cuenta.
pais_origenNoPaís de origen, de preferencia ISO alfa-3 (CHN, USA…).
valor_aduanaNoValor en aduana en MXN (opcional).
idempotency_keyNoIdentificador único de esta solicitud: si reintenta con el mismo, no se cobra dos veces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the annotations by disclosing cost (descuenta 1 clasificación), latency (~1 minuto), what the response contains (confianza 0-100, justificación legal, NOMs, permisos, cuotas, IGI/IVA/IEPS/DTA), and which states are free of charge or block the charge. The idempotency hint from annotations is reinforced by an idempotency_key param documented in the schema.

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?

The lead sentence front-loads what is produced and the following sentences encode the state machine compactly, with no filler. It is a dense run-on paragraph in Spanish with several chained conditionals, which costs some scanability even though every clause carries operational meaning.

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

Completeness5/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 fully carries the burden by enumerating the return payload and the meaning of each status flag the agent must react to. Cost, latency, and clarification follow-up are all covered, so an agent can call and act on the result without further tools except the explicitly named responder_aclaracion and campos_minimos.

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 88%, so the schema already documents most fields, and the description adds no per-parameter meaning beyond pointing to campos_minimos for the minimum-data set and reiterating the faltan_datos retry loop. Baseline 3 is appropriate when the schema carries the field-level detail.

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 (clasificar un producto en la TIGIE de México) with the exact deliverable: fracción de 8 dígitos y NICO verificados contra la Tarifa oficial. It never names a sibling such as buscar_fraccion or clasificar_lote to draw the boundary, so differentiation is left to inference.

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 routing conditions rather than vague advice: it names faltan_datos, tentativa=true, estado=requiere_aclaracion and requiere_dato_nico=true, and tells the agent to use responder_aclaracion in the clarification paths. What it lacks is a when-not-to-use statement against buscar_fraccion for agents that already know or just want to look up a code.

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.

Resources