Skip to main content
Glama
MCP Database Server

MCP Database Server

by saadrupai

sales_summary

Generates a sales report with revenue, order count, and average order value for paid orders, grouped by month, product, category, or country.

Instructions

Pre-built business report: revenue, order count and average order value for paid orders, grouped by month, product, category or country.

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": {
      "group_by": "<group_by>"
    },
    "name": "sales_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_byYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose a material scoping rule (only paid orders are counted) and the exact measures computed, which prevents misreading the numbers. It says nothing about the reporting period covered (there is no date parameter), permissions, result size, or output shape, which are significant gaps for a report tool.

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?

One dense sentence with the artifact type front-loaded, followed by measures and then grouping options. No filler, no redundancy, and every clause carries information an agent needs before calling.

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?

For a one-parameter read-only report with no output schema, the description covers what is computed and how it is grouped. The remaining omission is the time window / default period, which materially affects the results and is not derivable from the schema.

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?

Only one parameter exists and the enum already lists all four accepted values; the description restates those same values without adding interpretation (e.g., what 'product' vs 'category' granularity actually means). With a single enum param, restating the vocabulary is close to adequate, so this sits just above baseline rather than far above.

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 names a concrete artifact type (pre-built business report) plus the exact measures returned (revenue, order count, average order value) and the grouping dimensions. That is far more specific than a title restatement and implicitly separates it from the generic run_query sibling, though no sibling is named explicitly.

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: an agent can infer this is the canned-report path for standard sales metrics versus writing SQL in run_query. There is no explicit when-to-use/when-not statement, no mention of the time window, and no exclusion such as 'only for paid orders; use run_query for refunds'.

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