Skip to main content
Glama

Generate Full Business Report

ps_generate_full_report

Produces a consolidated JSON report by running all KPI scoring tools in sequence, covering stock rotation, margins, dead products, top revenue, baskets, and customer LTV.

Instructions

Run all scoring and KPI tools sequentially and produce a consolidated report.

Executes:

  1. Stock rotation score

  2. Margin scoring

  3. Dead products report

  4. Top revenue products

  5. Average basket analysis

  6. Customer LTV

Saves consolidated output to /data/full_report_YYYY-MM-DD.json.

Args:

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

  • days: Lookback period for KPI tools in days (default: 90)

  • limit: Max items to analyse per tool (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_generate_full_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLookback period in days
limitNoMax items per tool
lang_idNoLanguage ID for product names1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, so the crucial disclosure that this actually writes a consolidated file to /data/full_report_YYYY-MM-DD.json comes from the description – that explains the non-readonly hint and the non-idempotent hint. Sequential execution of six tools is also disclosed, giving a sense of cost. It omits whether an existing same-day file is overwritten and gives no runtime expectations.

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 one-line purpose, then a scannable numbered execution list and an Args block. Slightly redundant in restating defaults already declared in the schema, but nothing is padded or ambiguous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an orchestrating job with no output schema, the description must carry the return contract, yet it only states where the result is saved, not whether the consolidated payload is returned inline, nor whether partial failures abort the run. The write path and per-tool scoping are covered, so it is adequate but leaves real gaps for a long-running multi-tool operation.

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 coverage is 100% and the Args block largely restates schema defaults and units (lang_id default "1", days default 90, limit default 200), adding little new meaning. One useful nuance is that 'limit' applies per tool rather than to total output, but that is already in the schema's 'Max items per tool'.

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 names a specific verb+resource ('generate full business report') and removes all ambiguity by enumerating the exact six sub-tools it orchestrates (stock rotation, margin, dead products, top revenue, basket, LTV). This makes it trivially distinguishable from the individual report siblings.

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?

The enumerated composition makes the 'use this instead of six separate calls' context clear, and the per-tool nature of the sibling list is implied. It stops short of explicit routing ('if you need only one KPI, call ps_dead_products_report') or exclusions, so there is no stated when-not.

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