Skip to main content
Glama

get_nutrition

Read-only

Fetches per-100 g/ml nutrition label data for up to 50 product IDs from Nemlig, BilkaToGo, or REMA 1000, returning null when a label is unavailable.

Instructions

Nutrition per 100 g or 100 ml from the store's label: energy_kj, energy_kcal, fat, saturated_fat, carbohydrate, sugar, protein, salt, fibre as strings ("0.13", "<0.5"), null when the label leaves a line out. No label (often fresh meat, fruit): nutrition null with a reason. Up to 50 ids from search_products, list_offers or compare_basket; duplicates are removed. nemlig, BilkaToGo and REMA 1000; no login needed.

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": {
      "store": "<store>",
      "product_ids": "<product_ids>"
    },
    "name": "get_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeYesOne store: "nemlig", "bilkatogo" or "rema1000".
product_idsYesProduct ids from the same store, up to 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only/open-world annotations, it discloses value formats (strings like "0.13" and "<0.5"), the null-when-absent convention, the missing-label case returning null nutrition with a reason, duplicate removal, and that no login is required. Those are exactly the behaviors an agent cannot infer from the annotations or schema.

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 text is front-loaded with the resource definition and follows with format and edge cases; almost every clause carries information. The telegraphic, fragment-heavy phrasing ('No label (often fresh meat, fruit): `nutrition` null with a `reason`') is dense but slightly harder to parse at a glance.

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 itself and does so: field list, value encoding, null semantics, and the no-label fallback with a reason. For a two-parameter read tool, nothing an agent needs in order to call it or interpret results 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 goes further by tying product_ids to the sibling tools that emit them, restating the same-store constraint, and documenting dedupe of duplicate ids. The store list it gives ('nemlig, BilkaToGo, REMA 1000') merely echoes the schema's own values in different casing, adding no new meaning.

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 resource and scope: nutrition values per 100 g/100 ml taken from the store's label. It enumerates the returned fields (energy_kj, fat, salt, etc.), which makes the tool unmistakable against siblings like search_products or list_offers that produce ids rather than nutrient data.

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 states where the required ids come from (search_products, list_offers, compare_basket) and the 50-id ceiling, so an agent knows the prerequisite chain. It stops short of explicit when-not-to-use guidance or naming a sibling to prefer for a different need, so it falls just below the top score.

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