Skip to main content
Glama

grubhub_offers

Read-only

Fetch the active public promotions for a Grubhub restaurant, including offer terms and savings. Use this when comparing available deals; use the restaurant's menu tool for purchasable 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": {
      "restaurant_id": "<restaurant_id>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "grubhub_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
latitudeYesRequired. Diner location latitude.
longitudeYesRequired. Diner location longitude.
restaurant_idYesRequired. Grubhub 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/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds one useful scoping detail — that only 'active public' promotions are returned — but says nothing about why the call is non-idempotent (location dependence) or about any auth/rate-limit behavior.

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 sentences, both front-loaded with the essential information, and no redundant restatement of the tool name or schema. Nothing could be removed without losing content.

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 schema coverage, the description only needs to convey purpose, routing, and scope — all of which it does. The minor gap is not explaining the location parameters' role, though the schema covers their semantics.

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% and all three required parameters are documented there, so the baseline is 3. The description adds no meaning about why latitude/longitude are required alongside restaurant_id, which is the one non-obvious aspect of the input.

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 names a specific verb ('Fetch'), a specific resource ('active public promotions for a Grubhub restaurant'), and the payload ('offer terms and savings'). It also explicitly separates this tool from the menu tool, so an agent can distinguish it without opening the schema.

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 states a concrete when-to-use condition ('when comparing available deals') and points to an alternative ('the restaurant's menu tool for purchasable items'). It does not address other plausible neighbors such as availability or timepicker, but the guidance it does give is explicit and actionable.

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.