Skip to main content
Glama

grubhub_search

Read-only

Search Grubhub restaurants delivering to or offering pickup at latitude/longitude, optionally filtering names, cuisines, or dishes. Results include restaurant IDs, delivery and pickup fees, ETAs, cuisines, ratings, and menu counts; unsupported locations return an empty list. Use grubhub_restaurant for one store or grubhub_restaurant_menu for priced items.

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "grubhub_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOptional. 1-based page number, default 1.
searchNoOptional. Keyword over restaurant names, cuisines and dishes.
latitudeYesRequired. Delivery search center latitude.
longitudeYesRequired. Delivery search center longitude.
page_sizeNoOptional. Restaurants per page, 1-50, default 20.
order_methodNoOptional. delivery or pickup. Default delivery.

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.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint, so the safety profile is covered; the description adds genuinely new behavior by enumerating result fields and stating that unsupported locations return an empty list rather than erroring. It stops short of describing pagination limits or result ordering, which would have pushed it higher.

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 tight clauses: what it searches and where, what comes back, and what to use instead. Location scope and the empty-list caveat are front-loaded with no filler.

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

Completeness5/5

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

With an output schema present the description needn't detail return shape, yet it still summarizes key result fields useful for planning. Required coordinates, optional filters, pagination, and the empty-result edge case are all covered.

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 100%, so every parameter is already documented, including enum-like options for order_method and the 1-50 page_size range. The description's mention of filtering names, cuisines, or dishes largely restates the `search` parameter's schema text, so it adds little beyond the structured data.

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?

A specific verb (search) applied to a specific resource (Grubhub restaurants), with the scope made explicit: delivering to or offering pickup at a given lat/long, plus optional name/cuisine/dish filtering. It also distinguishes itself from the two nearest siblings by name, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The final sentence gives explicit alternatives with conditions: grubhub_restaurant for a single store, grubhub_restaurant_menu for priced items. This is exactly the when-to-use-this-vs-that routing an agent needs for discovery.

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.