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 (20 calls/day).

Input Schema

TableJSON 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. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: daily refresh cadence, dropped fields (operator comments and rating artwork), the preview cap of 5 rows and 20 calls/day without a key, and 1-credit cost with a key. This is exactly the behavioral detail an agent needs.

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?

Front-loads what the tool returns before touching operational details (filters, cost, limits). Dense but each clause earns its place; only the field enumeration is slightly long-winded.

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?

No output schema, so listing returned fields and the FHRSID key is genuinely useful, and refresh/cost/limit behavior is covered. However, for a 20-parameter tool with zero schema descriptions, the near-total absence of per-filter semantics leaves a real gap an agent must guess at.

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?

With 20 parameters at 0% schema description coverage, the description carries the full semantic burden but explains only two things: q searches all text fields and filters combine with AND. It never clarifies the many filters (scheme_type, outward_code, rating_value, the min/max score pairs, new_rating_pending, pagination bounds), leaving most parameters opaque.

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+resource: querying the official FSA Food Hygiene Rating Scheme file for England, Wales, Northern Ireland and Scotland FHIS. The enumerated returned fields and the FHRSID key make the scope unmistakable, and it is clearly distinguishable from the other query_uk_* siblings.

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?

Explains that filters AND together and that q searches all text fields, plus the geographic coverage (Scotland uses FHIS), which helps an agent decide applicability. It does not name when to prefer this over other sibling datasets or state prerequisites (e.g. API key requirement per plan), so it stops short of explicit when/when-not guidance.

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