Skip to main content
Glama
swiss-food-safety-mcp

swiss-food-safety-mcp

by malkreide

Blv Get Nutrition Data Children

blv_get_nutrition_data_children
Read-onlyIdempotent

Retrieve questionnaire answer counts from the Swiss children's nutrition survey (menuCH-Kids), broken down by sex, language region, and age group.

Instructions

Swiss national children's nutrition survey — questionnaire tallies (menuCH-Kids).

Use case: how often each answer was given, broken down by sex, language region and age group.

NOT nutrient intake. The docstring here promised "nutrient intake by age group against dietary recommendations" and named "Energie", "Zucker", "Eisen" as filter examples. The only menuCH-Kids dataset published on opendata.swiss is the questionnaire, and it carries answer counts: Geschlecht, Sprachregion, Altersgruppe, Frage, Antwort, Anzahl. Measured on 2026-08-08. A filter on "Eisen" therefore matched nothing and returned an empty list — indistinguishable from "no such data for this age group".

Nutrient intake for adults exists as a separate dataset (menuch_lebensmittelkonsum); this tool does not cover it, and inventing a mapping would be worse than the missing feature.

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

Input Schema

NameRequiredDescriptionDefault
age_groupNoFilter by age group as the source spells it (e.g. "10bis13").
answer_codeNoFilter by question or answer code (e.g. "c09B_12", "a78").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • changedInput schema / properties / age_group / description
      Previous value: -"Filter by age group (e.g. \"6-9\", \"10-12\"). Empty = all."New value: +"Filter by age group as the source spells it (e.g. \"10bis13\")."
    • addedInput schema / properties / answer_code
      Added value: +{
      +  "default": "",
      +  "description": "Filter by question or answer code (e.g. \"c09B_12\", \"a78\").",
      +  "type": "string"
      +}
    • removedInput schema / properties / nutrient
      Removed value: -{
      -  "default": "",
      -  "description": "Filter by nutrient name (e.g. \"Energie\", \"Zucker\", \"Eisen\"). Empty = all.",
      -  "type": "string"
      -}
  2. First observedv1.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations only cover safety (read-only, idempotent, open-world); the description adds the operational trap that a non-matching filter like 'Eisen' silently returns an empty list indistinguishable from 'no data for this age group', and enumerates the actual returned columns. That is exactly the kind of failure-mode disclosure annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded, but a large share of the text is meta-commentary arguing with a docstring ('The docstring here promised...', 'inventing a mapping would be worse than the missing feature') rather than operational guidance for the agent. Useful content, but not every sentence earns its place for a two-optional-filter read tool.

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?

An output schema exists so return values need no explanation, yet the description still names the returned fields, and it flags the misleading name and the empty-result ambiguity. The only gap is that it never points to the sibling tools for discovering or cross-referencing other BLV datasets.

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 both parameters carry examples ('10bis13', 'c09B_12'), so the schema already does the heavy lifting. The description only illustrates filter behavior via the 'Eisen' anecdote and adds no syntax or format detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states the specific resource and scope ('Swiss national children's nutrition survey — questionnaire tallies (menuCH-Kids)') and explicitly corrects what the name/title wrongly implies by ruling out nutrient intake. It stops short of distinguishing itself from the ten sibling blv_* dataset tools (e.g. blv_list_datasets, blv_get_dataset_info) that an agent might otherwise pick for discovery.

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 a concrete use case ('how often each answer was given, broken down by sex, language region and age group') and rules out the adjacent case by noting that adult nutrient intake lives in a separate dataset this tool does not cover. It does not, however, name which sibling to call instead or state the condition for choosing it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.