Skip to main content
Glama
Restaurant MCP Server

Restaurant MCP Server

by serdarpolat

get_top_items

Read-only

Ranks menu items by quantity or revenue within a date range and returns the requested number, optionally filtered by category.

Instructions

Best-selling menu items in a date range, by quantity or revenue.

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

Input Schema

NameRequiredDescriptionDefault
sortNoquantity
limitNo
date_toNoLocal date, YYYY-MM-DD. Default: today.
categoryNoExact category name.
date_fromNoLocal date, YYYY-MM-DD. Default: today.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is known. The description adds that results are ranked and scoped by date range, but says nothing about ranking ties, zero-sales periods, or truncation behavior beyond what the schema's limit already states.

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?

A single front-loaded sentence with no filler; the resource and qualifier come first. It is efficient, though so terse that obvious affordances like the category filter go unmentioned.

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?

With five optional parameters, a 60% schema coverage and an output schema handling return values, the description is minimally adequate. The missing piece is the category filter: an agent reading only the description would not know it can restrict top sellers to a single category.

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 60%, and the description only echoes the sort enum ('by quantity or revenue') and the date range, both of which the schema already documents. It adds no meaning for the category filter (exact-name matching, a real usability trap) or the limit cap.

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?

Names a specific resource (menu items), an implicit ranking (best-selling), a scoping dimension (date range) and the ranking metric (quantity or revenue). That separates it from siblings like get_menu_item or search_menu, though the verb itself is only implied rather than stated.

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 implied by 'best-selling ... in a date range' — an agent can infer this is for ranking top sellers, not for looking up details or full reports. But there is no explicit when-to-use or when-not-to-use guidance and no named alternative such as get_sales_report or search_menu.

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