Skip to main content
Glama

Inventory Value Report

ps_inventory_value_report
Read-onlyIdempotent

Calculates total inventory value by multiplying stock by wholesale price, returning the overall value, product count, and top products by inventory value for PrestaShop stores.

Instructions

Calculate the total value of inventory by multiplying stock × wholesale_price.

Returns: total inventory value, number of products, top products by inventory value.

Args:

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

  • limit: Max products to analyse (default: 200)

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_inventory_value_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax products to analyse
lang_idNoLanguage ID for product names1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world, non-destructive), so the description's main contribution is the calculation method and the explicit list of returned figures, which are genuinely additive. It leaves one behavioral gap: it never says whether topping out at 'limit' products changes the reported total or only the top-products list.

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?

Front-loaded with the formula, then returns, then args — a clean and scannable structure with no filler prose. The Args block is mildly redundant against a fully documented schema, but it costs little.

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 only two optional parameters and no output schema, the description is complete enough: it tells the agent what is computed and what comes back. The only meaningful omission is the truncation semantics of limit on the aggregate value.

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%, so the schema already documents both parameters, and the Args block largely restates them with the same defaults. It adds no interpretation of note, such as how limit interacts with the aggregate total or what a lang_id with no matching translation yields.

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 gives a specific verb ('Calculate') and resource ('total value of inventory') and even supplies the formula (stock × wholesale_price), so there is no ambiguity about what the number means. It does not name or contrast with any sibling report tool (e.g. ps_low_stock_report, ps_dead_products_report), which keeps it out of the top band.

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 only implied by the tool being a report: an agent can infer it is for valuing stock, but nothing states when to prefer it over ps_low_stock_report or ps_dead_products_report, and no prerequisites or exclusions are given. The 'limit' note hints at a bounded analysis scope but that is not framed as guidance.

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