Skip to main content
Glama
Local Business Data & Report Analyst

Local Business Data & Report Analyst

top_products

Ranks up to N products by gross revenue, net revenue, units, or profit within an optional date range, helping users identify which items drive sales.

Instructions

Rank top N products by 'revenue' (gross), 'net_revenue', 'units', or 'profit'.

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

Input Schema

NameRequiredDescriptionDefault
nNo
metricNorevenue
end_dateNo
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden but discloses almost nothing beyond the ranking operation. It does not say whether ranking is descending, how ties or products with missing metric values are handled, whether dates bound the aggregation window or something else, or what an empty start_date/end_date means.

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?

A single compact sentence with the operation front-loaded and the metric options enumerated. No filler, no redundancy.

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

Completeness2/5

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

An output schema exists so return values need no explanation, but for a time-windowed analytics tool with no annotations and zero schema coverage the description is too thin. The date parameters and their empty-default behavior are the largest omission an agent needs resolved before calling it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, so the description must compensate and largely fails. It does add real value by enumerating the valid metric values (mitigating the absence of an enum), but 'n', 'start_date', and 'end_date' are left entirely unexplained, including the meaning of the empty-string date defaults.

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 states a specific verb and resource ('Rank top N products') and names the exact metric vocabulary the tool ranks by, including the distinction between 'revenue' (gross) and 'net_revenue'. It does not differentiate itself from siblings like sales_summary or compare_regions, 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 Guidelines2/5

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

There is no statement of when to reach for this tool versus the many sibling analytics tools, no prerequisite context, and no indication of when a different tool would be more appropriate. The agent must infer usage from the tool name alone.

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