Skip to main content
Glama

Restaurant Health Inspection Scores MCP

Recent failed restaurant inspections and closures

restaurant_inspection_failures
Read-onlyIdempotent

Recent failed health inspections in a city, NYC borough or ZIP code over the last N days up to the newest published inspection: New York City Health Department closures and scores of 28 points or more (C range), Chicago inspections with the result Fail, Austin scores under 70, Boston failed inspections and closures. Newest first, with each establishment's id.

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

Input Schema

NameRequiredDescriptionDefault
zipNo5-digit ZIP code in a covered city.
cityNoNew York City (or Manhattan, Brooklyn, Queens, Bronx, Staten Island), Chicago, Austin or Boston (or a Boston neighborhood).
daysNoWindow in days, ending at the newest published inspection. Default 30.
limitNoHow many to list. Default 15.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), so the bar is lower, and the description adds real context beyond them: the per-city failure thresholds, the anchoring of the window to the newest published inspection, and the newest-first ordering with establishment ids. It stops short of covering pagination behavior or the full returned field set.

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?

The key information (what counts as a failure, per city) is front-loaded and every clause carries meaning, with no filler. The trade-off is a single very long sentence that packs the jurisdictional definitions inline rather than in a scannable list.

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 no output schema, the description carries the burden of describing results; it does give ordering and the establishment id, and it fully explains the filtering semantics for a 4-param tool. It leaves the remaining return fields (score, inspection date, closure status, address) unstated, which is a modest gap rather than a blocking one.

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, establishing a baseline of 3. The description reinforces the meaning of the combined city/ZIP/days filters ('over the last N days up to the newest published inspection') but says nothing about the limit parameter or default behaviors beyond what the schema states.

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?

States a specific verb and resource ('Recent failed health inspections') plus the exact scope: a city, NYC borough, or ZIP over the last N days up to the newest published inspection. Crucially it defines what 'failed' means per jurisdiction (NYC closures and scores >=28, Chicago 'Fail', Austin under 70, Boston failures/closures), so an agent knows precisely what data comes back.

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 the scope description ('recent failed inspections in the last N days'), which makes the intent fairly clear, but the description never states when to prefer this over restaurant_inspection_history or restaurant_inspection_search, nor any exclusions. The agent must infer the routing itself.

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.