Skip to main content
Glama

Compare Sources

compare_sources
Read-only

Compare one generic food across national food composition databases: Nutriely's own values next to the same food in each database that has it (Fineli for Finland, USDA for the US, BLS for Germany, Ciqual for France, CoFID for the UK...), per 100 g, with each database's own food name, version and a link to its entry. Use for questions such as "how much vitamin C does a potato have in different databases?" or "why do apps disagree on this food?". Only generic catalog foods have database matches, and a database is only listed when it has the same food, never a near match. Values marked in estimated_in were derived or borrowed by that database rather than measured. Energy (ENERC) is in kJ: divide by 4.184 for kcal.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "food_id": "<food_id>"
    },
    "name": "compare_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesNoNutrient codes to compare, such as ["VITC", "K"]. Leave out for every nutrient at least two databases have.
food_idYesThe food id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover read-only/non-destructive safety; the description adds substantive behavior well beyond that: normalization to 100 g, that each row carries that database's own food name, version, and entry link, the existence and meaning of the estimated_in marker, and the ENERC kJ/4.184 kcal convention. This tells an agent how to interpret the results, not just that it is a safe read.

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 comparison scope and per-100 g basis are front-loaded, and the caveats follow in a logical order (restrictions, estimated_in, unit conversion). The parenthetical list of five databases is slightly long but earns its place by clarifying coverage; otherwise there is little waste.

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?

With no output schema, the description carries the return-shape burden and does so: it explains what each database record contains (own food name, version, link), what a missing database means, and how estimated values are flagged. Combined with only two parameters, nothing an agent needs to call or interpret this tool is missing.

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 both food_id and codes are already documented, including an example code list and the default-when-omitted behavior. The description adds no new guidance on the parameters themselves — its ENERC/kJ note describes interpreting output rather than parameter meaning — so the baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Compare one generic food across national food composition databases', naming the exact data sources (Fineli, USDA, BLS, Ciqual, CoFID) and the comparison basis (per 100 g). An agent can immediately distinguish this from single-food lookups like get_food or search_foods.

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?

It gives concrete triggering questions ('how much vitamin C does a potato have in different databases?') plus an explicit exclusion ('only generic catalog foods have database matches... a database is only listed when it has the same food, never a near match'). It stops short of naming a sibling alternative for the single-source case, so it is not a full 5.

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