Skip to main content
Glama

grubhub_restaurant_reviews

Read-only

Fetch one Grubhub restaurant's review records and 1-5-star histogram, including reviewer, date, sentiment, diner type, and ordered menu items. sort chooses newest or highest-rated reviews. Written reviews may be fewer than the headline rating count; use grubhub_search or grubhub_restaurant_menu for other restaurant data.

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": {
      "restaurant_id": "<restaurant_id>"
    },
    "name": "grubhub_restaurant_reviews"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOptional. 1-based page number, default 1.
sortNoOptional. timeCreated_desc (most recent) or ratingValue_desc (highest rated). Default timeCreated_desc.
page_sizeNoOptional. Reviews per page, 1-50, default 20.
restaurant_idYesRequired. Grubhub's numeric restaurant id.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true), so the description's job is to add context, which it does with the non-obvious caveat that written reviews may be fewer than the headline rating count. It also discloses the returned fields. It does not address rate limits, empty-result behavior, or pagination limits beyond what the schema states.

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?

Three sentences, front-loaded with the core capability, then the sort behavior, then the count caveat and sibling routing. No padding or repetition; each sentence contributes distinct information.

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?

With an output schema present and full parameter coverage, the description covers purpose, alternatives, and the main gotcha. The only gap is edge-case behavior such as a restaurant with no reviews or how the histogram relates to paging.

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 description coverage is 100%, so all four parameters are already documented, including the two accepted `sort` values. The description only reinforces `sort` semantics ('newest or highest-rated') without adding syntax or edge cases the schema lacks, so baseline 3 applies.

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 opens with a specific verb and resource ('Fetch one Grubhub restaurant's review records') and enumerates exactly what comes back: the 1-5-star histogram, reviewer, date, sentiment, diner type, and ordered items. That detail makes it unmistakably distinct from sibling tools like grubhub_restaurant_menu or grubhub_search, which are named as alternatives.

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?

It explicitly states when to go elsewhere ('use grubhub_search or grubhub_restaurant_menu for other restaurant data') and clarifies what the `sort` parameter selects. What's missing is a positive when-to-use trigger, e.g. that this is the right call when an agent needs review-level sentiment or diner feedback specifically.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.