Skip to main content
Glama

PrestaShop Low Stock Report

ps_low_stock_report
Read-onlyIdempotent

Lists PrestaShop products whose stock is at or below a chosen threshold, sorted with the most critical items first, so you can identify low-stock and out-of-stock items for replenishment.

Instructions

List products whose stock is below a threshold, sorted by quantity ascending (most critical first).

Args:

  • threshold: Stock alert threshold (default: 5) — products with quantity <= threshold are returned

  • limit: Max products to return (default: 50)

  • lang_id: Language ID for product names (default: "1")

Returns: Array of low-stock products with product_id, name, stock_id, quantity, and out_of_stock policy. Includes a summary with total count and critical (quantity=0) count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ps_low_stock_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax products to return
lang_idNoLanguage ID for product names1
thresholdNoStock alert threshold (quantity <= threshold)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The description adds genuine behavioral detail beyond that: the ascending sort ordering, the inclusive threshold comparison, and the presence of a summary with total and critical counts. It stops short of noting the hard cap of 200 results or pagination behavior, which would be the last useful addition.

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 front-loaded first sentence states the operation and ordering before any detail, and the Args/Returns structure is easy to scan. There is minor redundancy in repeating default values that already live in the schema, but nothing bloated.

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 Returns section earns its place by enumerating the returned fields (product_id, name, stock_id, quantity, out_of_stock policy) plus the summary counts. Combined with its annotations and three fully described optional parameters, the definition gives an agent everything needed to call it correctly.

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 100%, and each parameter already carries its own description including defaults, so the description's Args block largely restates the schema (default 5, default 50, default "1"). It adds marginal meaning by flagging that quantity=0 is treated as 'critical' in the summary, but omits what lang_id actually affects when a product has no translation.

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?

The description opens with a specific verb and resource ('List products whose stock is below a threshold') and states the sort order, so the agent knows exactly what this returns. It does not, however, explicitly name a differentiating sibling such as ps_list_stock or ps_stock_alert_check, leaving boundary definition to the agent's inference from names.

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?

Usage is implied by the report framing ('most critical first'), which suggests an alerting/replenishment context, but there is no explicit when-to-use statement and no when-not-use guidance or named alternative for plain stock lookups. An agent can guess the intent but is not routed.

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

Deploy Server

Other Tools