Skip to main content
Glama

Clasificar varios productos (lote)

clasificar_lote
Idempotent

Crea un lote de hasta 100 productos (cada uno con los mismos datos que clasificar_producto, más 'referencia' opcional: número de parte o SKU). Valida TODOS antes de cobrar: si alguno no trae los datos mínimos responde articulos_invalidos con la lista y no crea nada. Si todos están completos, crea el lote y regresa su id SIN clasificar todavía. El lote avanza solo en segundo plano (≈1 artículo por minuto; consúltelo con consultar_lote); si el usuario está esperando, llame procesar_lote con ese id, repitiendo hasta que 'pendientes' sea 0. Cada artículo clasificado descuenta 1 del saldo; los que fallan no se cobran.

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": {
      "articulos": "<articulos>"
    },
    "name": "clasificar_lote"
  }
}

Input Schema

NameRequiredDescriptionDefault
articulosYes
idempotency_keyNoSi reintenta con el mismo valor, no se crea otro lote.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses validation before charging, the articulos_invalidos error behavior, that the returned batch is not yet classified, approximately one item per minute background processing, the billing rule of one balance unit per classified item, and that failed items are not charged.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is dense but front-loaded: it moves from batch creation to validation, then to background processing and billing without wasted sentences. Each sentence contributes operational guidance the agent needs.

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?

For a complex asynchronous batch tool with no output schema, the description covers validation, creation, the returned id, background progress, manual processing, and billing outcomes. It gives enough context for correct invocation and follow-up without needing to explain raw return values.

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?

The description adds useful meaning for articulos by specifying the 100-item maximum, that each item uses the same data as clasificar_producto, and that referencia is an optional part number or SKU. The schema already documents idempotency_key, but the description does not reinforce retry safety or explain its role in the workflow.

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 states a specific action and resource: create a batch of up to 100 products, with each item matching clasificar_producto plus optional referencia. It clearly distinguishes batch creation from single classification and from later steps (consultar_lote, procesar_lote).

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 explicitly describes when the batch is created, when validation prevents creation, and when to poll with consultar_lote or drive completion with procesar_lote. It also specifies repeating procesar_lote until pendientes is 0 when the user is waiting.

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