Skip to main content
Glama
Restaurant MCP Server

Restaurant MCP Server

by serdarpolat

get_sales_report

Read-only

Retrieve paid sales for a date range and group results by day, hour, weekday, or channel to spot trends and compare periods.

Instructions

Paid sales for a date range, grouped by day, hour of day, weekday or channel.

Use it for trends and comparisons (e.g. this week vs last week = two calls).

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

Input Schema

NameRequiredDescriptionDefault
date_toNoLocal date, YYYY-MM-DD. Default: today.
group_byNoday
date_fromNoLocal date, YYYY-MM-DD. Default: today.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds a real behavioral trait beyond them: the report covers 'Paid' sales only, implying unpaid or voided transactions are excluded, and it discloses that comparisons require two separate calls rather than a built-in diff mode.

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?

Two short sentences, front-loaded with what is returned, followed by how to use it. There is no filler, and the composition hint in parentheses earns its place by preventing a mis-designed single-call comparison.

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?

An output schema exists, so return-field documentation is not required, and all three parameters are optional with schema defaults. The definition covers purpose, granularity, and composition; the only remaining gap is the absence of routing guidance toward alternative reports for overlapping questions.

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 67%, so date_from/date_to defaults are already documented in the schema. The description restates the group_by enum values without adding meaning beyond the schema's enum list. It adds little parameter-level detail, which is the expected baseline when the schema already carries most of the load.

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?

States a specific resource and scope: 'Paid sales for a date range, grouped by day, hour of day, weekday or channel.' That is a clear verb-plus-resource statement an agent can act on. It does not differentiate itself from nearby reporting siblings such as get_daily_summary or get_top_items, so it stops short of a 5.

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?

'Use it for trends and comparisons' gives an explicit usage context, and the parenthetical 'this week vs last week = two calls' shows how to compose the tool for a comparison. There is no exclusion guidance telling the agent when to prefer a sibling report instead, which keeps it below a 5.

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