Skip to main content
Glama

Hk Food Alerts Search

hk_food_alerts_search
Read-onlyIdempotent

Search Hong Kong's Centre for Food Safety food alerts and allergy alerts (products the CFS tells the public not to consume: Listeria, Salmonella, veterinary drug residues, aflatoxins, heavy metals, undeclared allergens, labelling breaches; newest first, 2006 onwards). Each hit gives the alert id, date, type (food alert or allergy alert), title and link. Filter by a keyword in the title (a food, hazard or origin such as cheese, Listeria, formula), alert_type, year, or a date window of up to three years; zero matches states which years were read. Example: query="cheese", year=2026. For the importer, reason, action taken and advice use hk_food_alert_get.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "year": 2026,
      "query": "cheese"
    },
    "name": "hk_food_alerts_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoCalendar year to read, 2006 onwards (default: the current list).
limitNoAlerts to return (1-100, default 20).
queryNoWord in the alert title: a food, hazard or origin (e.g. "cheese", "Listeria", "formula", "shrimp"). Optional.
date_toNoOnly alerts on or before this ISO date (YYYY-MM-DD).
date_fromNoOnly alerts on or after this ISO date (YYYY-MM-DD); reads the years in the window.
alert_typeNofood, allergy or all (default all; types are recorded from 2021).

Output Schema

NameRequiredDescriptionDefault
foundNo
queryNo
alertsNo
caveatNo
sourceNo
returnedNo
searchedNo
data_as_ofNo
total_matchingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real behavior beyond them: newest-first ordering, a hard three-year cap on the date window, and the notable zero-match behavior that reports which years were read — a detail that materially changes how an agent interprets an empty result.

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-loaded with purpose, then filters, then the sibling hand-off — a logical order with no filler sentences. It is a single dense paragraph, and the long parenthetical hazard taxonomy (Listeria, Salmonella, residues, aflatoxins, heavy metals, allergens) is slightly heavy, though it does double duty as query-term guidance.

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?

For a six-parameter, zero-required search tool with full schema coverage, rich annotations and an output schema, this is complete: purpose, filters, result shape, ordering, coverage window, empty-result semantics, and the escalation path are all present. Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description still contributes beyond the schema by explaining what a keyword actually matches (a food, hazard or origin in the title) with worked examples, and by stating the three-year date-window limit that the schema's date_from/date_to fields do not mention.

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?

Opens with a specific verb and resource ('Search Hong Kong's Centre for Food Safety food alerts and allergy alerts') and immediately scopes the content (products the CFS tells the public not to consume), the ordering (newest first), and the coverage (2006 onwards). It also enumerates the per-hit fields and names the sibling tool that handles detail records, so an agent can distinguish it from hk_food_alert_get without opening a 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?

Explicitly routes the agent: this tool is for searching, and 'For the importer, reason, action taken and advice use hk_food_alert_get.' It also states the available filtering dimensions and gives a concrete call example (query="cheese", year=2026), leaving little to inference about when this tool is the right pick.

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.