Skip to main content
Glama

UK food hygiene ratings (FSA)

query_uk_food_hygiene
Read-onlyIdempotent

Every food business rated under the UK Food Hygiene Rating Scheme (England, Wales, Northern Ireland; Scotland FHIS) from the official Food Standards Agency open-data file — business name, type, trading address and area, local authority, rating value and date, hygiene/structural/confidence sub-scores, new-rating-pending flag and coordinates, keyed by the stable FHRSID. Refreshed daily. Operator comments are dropped at ingest; rating artwork is not served. Filters combine with AND; q searches all text fields. Costs 1 credit(s) per call with an API key; without one, a preview of up to 5 rows (30 calls/day).

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

Input Schema

NameRequiredDescriptionDefault
qNo
pageNo
per_pageNo
postcodeNo
scheme_typeNo
outward_codeNo
rating_valueNo
business_nameNo
business_typeNo
local_authorityNo
hygiene_score_maxNo
hygiene_score_minNo
rating_date_afterNo
new_rating_pendingNo
rating_date_beforeNo
confidence_score_maxNo
confidence_score_minNo
local_authority_codeNo
structural_score_maxNo
structural_score_minNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real context: refreshed daily, operator comments dropped at ingest, rating artwork not served, stable FHRSID keying, and the credit/preview cost model. It stops short of pagination behavior or result ordering, which are the remaining unknowns for a query tool.

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?

One dense paragraph, front-loaded with what the dataset is before the caveats and cost model. Nearly every clause carries information, though the field enumeration and the pricing sentence make it long and slightly run-on.

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?

Returned fields are described well enough that an output schema isn't needed, and cost/refresh behavior is covered. However, for a 20-parameter query tool with zero schema coverage and no enums, an agent still has to guess at filter value formats and the meaning of the paired min/max and code-vs-name parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 20 parameters, so the description carries the full burden, yet it only clarifies q (searches all text fields) and that filters AND together. It says nothing about postcode vs outward_code, local_authority vs local_authority_code, the rating_value domain (numeric ratings vs 'AwaitingInspection'), new_rating_pending values, score ranges, date filter formats, or page/per_page limits.

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 resource (UK food business hygiene ratings from the FSA open-data file) with exact scope (England, Wales, Northern Ireland; Scotland FHIS) and enumerates the returned fields. The dataset is clearly distinct from siblings like query_uk_planning or query_uk_charities, so an agent can route 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?

Gives operational guidance that shapes calls: filters combine with AND, q searches all text fields, and access tiers (1 credit/call with key, else 5-row preview at 30 calls/day). It does not state when NOT to use this tool or name an alternative dataset for adjacent questions, but with a single-dataset tool the usage context is clear.

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.

Resources