Skip to main content
Glama
Auto Parts Inventory Agent

Auto Parts Inventory Agent

resumen_movimientos

Read-onlyIdempotent

Summarize a spare part's inventory entries and exits by branch and optional date range, returning units in/out, sales count, amount sold, last movement, and current stock.

Instructions

Resume entradas y salidas de un repuesto por sucursal en un rango de fechas.

Por sucursal devuelve unidades que entraron (compras e inventario inicial), unidades que salieron (ventas y ajustes por merma), número de ventas, monto vendido en córdobas, fecha del último movimiento y stock actual. Sin fechas, resume todo el historial (1 de abril al 30 de septiembre de 2026).

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": {
      "codigo": "<codigo>"
    },
    "name": "resumen_movimientos"
  }
}

Input Schema

NameRequiredDescriptionDefault
desdeNoFecha inicial inclusive (AAAA-MM-DD).
hastaNoFecha final inclusive (AAAA-MM-DD).
codigoYesCódigo exacto del repuesto, ej.: 'FIL-TGD-1031'. Si no lo sabés, buscalo antes con buscar_repuestos.
sucursalNoNombre (o parte) de la sucursal. Vacío = todas.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-open-world, so the safety profile is covered. The description adds real behavioral context beyond that: the aggregation units it counts (compras + inventario inicial as entries, ventas + ajustes por merma as exits), the last-movement date, and the default date window when no range is supplied.

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?

Two short paragraphs, front-loaded with purpose and followed by the output/edge-case detail. No filler sentences, though the enumerated output fields partially overlap with the output schema.

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 an output schema present, return values need not be re-explained, yet the description still usefully defines the date-range default. The only mild gap is the absence of any routing note against the sibling tools (consulta_sql in particular), but nothing needed to invoke it correctly is missing.

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 already 100%, so the baseline is 3, but the description adds meaning the schema lacks: it explains what a null desde/hasta actually does (resumes the entire history and names the concrete date window). Sucursal semantics ('vacío = todas') and the partial-match behavior are left to the schema, which is acceptable.

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 opening sentence states a specific verb (resume) and resource (entradas y salidas de un repuesto) scoped by sucursal and date range, and the second paragraph enumerates exactly which aggregates come back. An agent can distinguish this from buscar_repuestos or stock_bajo_minimo 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one concrete usage rule — omitting dates defaults to the full history window (1 abril – 30 septiembre 2026) — and the codigo parameter steers users to buscar_repuestos when the code is unknown. However, there is no explicit when-to-use/when-not guidance relative to siblings like consulta_sql or stock_bajo_minimo, so usage is only partially implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.