Skip to main content
Glama

Responder la aclaración de una clasificación

responder_aclaracion

Cuando una clasificación regresa estado=requiere_aclaracion, AduanaLabs no entrega fracción hasta tener un dato del producto (solo entrega con alta confianza). Envíe la respuesta del usuario: 'opcion' con el id de una de aclaracion.preguntas[].opciones (sin IA) o 'aclaracion' con su respuesta en texto. No cobra. Regresa la clasificación actualizada: si sigue en requiere_aclaracion, haga la nueva pregunta; si dice requiere_especialista, no hay fracción que dar. También responde la pregunta del NICO (requiere_dato_nico=true): envíe 'opcion' n1, n2… con la descripción oficial que elija el usuario.

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": {
      "id": "<id>"
    },
    "name": "responder_aclaracion"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid de la clasificación.
opcionNoid de la opción elegida (p. ej. 'e2' para una condición o 'n1' para la descripción del NICO).
aclaracionNoRespuesta del usuario en texto (5 a 600 caracteres).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, non-destructive, non-idempotent mutation, and the description adds real context beyond them: it states no charge is incurred ('No cobra'), that the classification is updated in place, and what the two terminal states mean. It does not mention idempotency or permissions, but the cost and state-transition disclosure is substantive.

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 trigger condition is front-loaded and every sentence carries information (trigger, payload choice, cost, return states, NICO variant). It is a single dense run-on paragraph, so the NICO flow is buried rather than visually separated, but there is no filler.

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?

No output schema exists, so the description carries the return-value burden and does it: it explains that the updated classification comes back and how to branch on requiere_aclaracion vs requiere_especialista. Both the standard and NICO response flows are covered, which is complete for a 3-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description adds cross-field meaning the schema cannot express: which parameter to use in which situation, that 'opcion' must come from aclaracion.preguntas[].opciones, and the n1/n2 form for NICO descriptions. The 5–600 character limit is left to 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?

States a specific verb and resource (respond to a classification's clarification) and immediately anchors it to a concrete trigger state (estado=requiere_aclaracion, or requiere_dato_nico=true). An agent can distinguish this from consultar_clasificacion or clasificar_producto 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 when-to-use: only when the classification returns requiere_aclaracion or requires a NICO datum. It also tells the agent which of the two payload modes to choose ('opcion' with an id from aclaracion.preguntas[].opciones vs 'aclaracion' with free text) and what to do with each possible resulting state.

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