Skip to main content
Glama

Avanzar un lote

procesar_lote
Idempotent

Clasifica los siguientes artículos pendientes de un lote (normalmente 1 por llamada, ~1 minuto) y regresa el progreso con la fracción, la confianza y si requiere revisión de cada artículo terminado. Llámela de nuevo mientras 'pendientes' sea mayor que 0. Es seguro repetirla: un artículo nunca se clasifica ni se cobra dos veces.

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": "procesar_lote"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid del lote

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, so the description does not need to restate safety. It adds genuinely new context beyond the annotations: ~1 minute per call, that each call consumes/charges credits, and that retries never double-classify or double-charge. It does not state what happens on failure or whether an in-progress item blocks the call.

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?

Three tight sentences: what it does, how to iterate, and the safety guarantee. The iteration rule and the idempotency promise are the two things most likely to be misused, and both are stated explicitly with no filler.

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 enumerates the return shape (progress fraction, confidence, review flag, remaining 'pendientes'), which is what the agent must branch on. It leaves open error behavior and whether the batch must be pre-created via another tool.

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?

There is a single required parameter with 100% schema description coverage ('id del lote'), so the schema already carries its meaning. The description only refers to 'un lote' generically and adds no format, prefix, or provenance detail beyond the schema — baseline 3 applies.

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: 'Clasifica los siguientes artículos pendientes de un lote', with a scope qualifier (only pending items, normally 1 per call). It does not name or contrast the closest sibling (clasificar_lote), so the agent must infer the division of labor, but the operation itself is unambiguous.

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 an explicit looping rule: 'Llámela de nuevo mientras pendientes sea mayor que 0', which is exactly the when-to-use guidance an agent needs for a paginated/iterative tool. It stops short of saying when to prefer clasificar_lote or consultar_lote instead.

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