Skip to main content
Glama

Nutrients: proof-backed nutrition data

submit_reading

Your reading of a read_proof task's proof, from its files only.

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": {
      "proof_id": "<proof_id>"
    },
    "name": "submit_reading"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
marketNoISO country
valuesNo
outcomeNo
proof_idYes
new_entityNo
serving_mlNo
serving_fl_ozNo
serving_gramsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / new_entity / properties / barcode / description
      Added value: +"As printed: package or maker page"
  2. Changed58 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / id / description
      Removed value: -"The entity, when the task did not name one."
    • removedInput schema / properties / id / maxLength
      Removed value: -64
    • removedInput schema / properties / id / minLength
      Removed value: -3
    • changedInput schema / properties / market / description
      Previous value: -"With new_entity: the item's market, when the proof was submitted without one."New value: +"ISO country"
    • removedInput schema / properties / market / maxLength
      Removed value: -2
    • removedInput schema / properties / market / minLength
      Removed value: -2
    • removedInput schema / properties / new_entity / description
      Removed value: -"Create the item, when the task named no entity and it does not exist yet (a find_product task, or a proof submitted without an id)."
    • removedInput schema / properties / new_entity / properties / barcode / description
      Removed value: -"GTIN (UPC-A, EAN-13, GTIN-14) as printed. Normalised and check-digit tested."
    • removedInput schema / properties / new_entity / properties / barcode / maxLength
      Removed value: -20
    • removedInput schema / properties / new_entity / properties / barcode / minLength
      Removed value: -6
    • removedInput schema / properties / new_entity / properties / basis / description
      Removed value: -"Products only: per_100ml for a liquid sold by volume. Supplements and menu items are per serving."
    • removedInput schema / properties / new_entity / properties / basis / type
      Removed value: -"string"
    • removedInput schema / properties / new_entity / properties / brand / description
      Removed value: -"The brand, or the restaurant for a menu item. Linked to the existing brand or chain with that name, or created."
    • removedInput schema / properties / new_entity / properties / brand / maxLength
      Removed value: -100
    • removedInput schema / properties / new_entity / properties / brand / minLength
      Removed value: -1
    • removedInput schema / properties / new_entity / properties / kind / description
      Removed value: -"product: a packaged food with a nutrition panel (stored per 100 g); supplement: a Supplement Facts panel (per serving); menu_item: a restaurant or chain item (per serving)."
    • removedInput schema / properties / new_entity / properties / kind / type
      Removed value: -"string"
    • removedInput schema / properties / new_entity / properties / lang / description
      Removed value: -"Language of the name, BCP 47. Defaults to en."
    • removedInput schema / properties / new_entity / properties / lang / maxLength
      Removed value: -16
    • removedInput schema / properties / new_entity / properties / lang / minLength
      Removed value: -2
    • changedInput schema / properties / new_entity / properties / name / description
      Previous value: -"The item's name as printed, without the brand: \"Chocolate Chip\" for a Clif Bar, \"Big Mac\" for McDonald's. A row in a section that changes the recipe (Fresh Fit, Catering, Gluten Sensitive, Kids) carries the section: \"6\\\" Oven Roasted Turkey (Fresh Fit)\", never the plain name."New value: +"As printed, without the brand"
    • removedInput schema / properties / new_entity / properties / name / maxLength
      Removed value: -200
    • removedInput schema / properties / new_entity / properties / name / minLength
      Removed value: -2
    • removedInput schema / properties / new_entity / properties / serving / properties / fl_oz / description
      Removed value: -"Its volume in US fluid ounces, when the label prints only fl oz (\"12 fl oz\"): converted to ml at 29.5735295625 ml per fl oz. Give ml instead when it is printed."
    • removedInput schema / properties / new_entity / properties / serving / properties / fl_oz / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / new_entity / properties / serving / properties / grams / description
      Removed value: -"Its weight in grams, when printed."
    • removedInput schema / properties / new_entity / properties / serving / properties / grams / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / new_entity / properties / serving / properties / label / description
      Removed value: -"The serving as printed, e.g. \"1 bar (68 g)\"."
    • removedInput schema / properties / new_entity / properties / serving / properties / label / maxLength
      Removed value: -60
    • removedInput schema / properties / new_entity / properties / serving / properties / label / minLength
      Removed value: -1
    • removedInput schema / properties / new_entity / properties / serving / properties / ml / description
      Removed value: -"Its volume in millilitres, when printed. Converts per-serving values on a per_100ml item."
    • removedInput schema / properties / new_entity / properties / serving / properties / ml / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / new_entity / properties / serving / type
      Removed value: -"object"
    • removedInput schema / properties / new_entity / type
      Removed value: -"object"
    • removedInput schema / properties / outcome / description
      Removed value: -"Truthful abstention: omit values and serving measurements. Recorded, never agreement or credit."
    • removedInput schema / properties / outcome / type
      Removed value: -"string"
    • removedInput schema / properties / proof_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / proof_id / minimum
      Removed value: --9007199254740991
    • removedInput schema / properties / serving_fl_oz / description
      Removed value: -"US fluid ounces in one serving, exactly as printed, when the label prints the volume only in fl oz (\"Size 12 fl oz\", \"per 8.4 fl oz\"). Converted to serving_ml at 29.5735295625 ml per US fl oz. Give serving_ml instead when the label also prints ml."
    • removedInput schema / properties / serving_fl_oz / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / serving_grams / description
      Removed value: -"Grams in one serving, exactly as printed on the proof; leave it out when the label prints no grams. Needed to store per-serving values per 100 g. Readers must match it exactly, like any other value."
    • removedInput schema / properties / serving_grams / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / serving_ml / description
      Removed value: -"Millilitres in one serving, exactly as printed on the proof (\"1 can (473 mL)\"); leave it out when the label prints no volume. Needed to store per-serving values per 100 ml (a drink sold by volume). Readers must match it exactly, like serving_grams."
    • removedInput schema / properties / serving_ml / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / values / default
      Removed value: -[]
    • removedInput schema / properties / values / description
      Removed value: -"Exactly what the proof states, one entry per value, on the basis printed (per_serving for a per-serving column)."
    • removedInput schema / properties / values / items / properties / basis / type
      Removed value: -"string"
    • changedInput schema / properties / values / items / properties / bound / description
      Previous value: -"When the label states a bound, not a value: \"<1 g\" is bound \"lt\" with value 1; \"trace\" uses value 0. A printed interval uses two entries of the same property and basis, lower ge/gt and upper le/lt; get retains both in bounds."New value: +"\"<1 g\" is lt with value 1"
    • removedInput schema / properties / values / items / properties / bound / type
      Removed value: -"string"
    • changedInput schema / properties / values / items / properties / property / description
      Previous value: -"A registry key (see describe), or the name the label prints. A name that means a key is that key, so send what the label states and never split it: \"Omega-3\" is fat.omega3 (the total), \"Soluble Fiber\" fibre.soluble, \"Folate\" with unit \"mcg DFE\" folate.dfe, \"Vitamin E\" in IU vitamin_e.iu. Any other line the label prints, by its name as printed (\"Creatine Monohydrate\"), is a free label line. A free line needs a number and a unit (g, mg, mcg, IU, CFU, billion CFU or ml); it is stored under line:<name> (lower case, spaces collapsed, ® and ™ removed), served at once with its identity unverified, and adds up with every line of the same name."New value: +"A registry key, or a label line by its printed name"
    • removedInput schema / properties / values / items / properties / property / maxLength
      Removed value: -130
    • removedInput schema / properties / values / items / properties / property / minLength
      Removed value: -1
    • removedInput schema / properties / values / items / properties / unit / description
      Removed value: -"The unit as printed. Spellings of one unit are one unit: mcg, µg, μg and ug are micrograms; Calories and kcal are kilocalories."
    • removedInput schema / properties / values / items / properties / value / description
      Removed value: -"A number as printed; for ingredients_text the ingredient list as printed (one string); for allergen.contains and allergen.may_contain a list of canonical allergen keys (describe: allergen_keys; \"Tree Nuts\" and \"Eggs\" are matched to tree_nut and egg, any other word refuses that field by name). Text publishes as numbers do: unverified until a blind second reading agrees. An empty allergen list (\"contains none\") is not published until a blind second reading also reads none."
    • removedInput schema / properties / values / items / type
      Removed value: -"object"
    • removedInput schema / properties / values / maxItems
      Removed value: -100
    • removedInput schema / properties / values / minItems
      Removed value: -1
  3. Changed1 schema field changed
    • changedInput schema / properties / values / items / properties / property / description
      Previous value: -"A registry key (see describe), or any other line the label prints, by its name as printed (\"Creatine Monohydrate\"): a free label line. A free line needs a number and a unit (g, mg, mcg, IU, CFU, billion CFU or ml); it is stored under line:<name> (lower case, spaces collapsed, ® and ™ removed), served at once with its identity unverified, and adds up with every line of the same name."New value: +"A registry key (see describe), or the name the label prints. A name that means a key is that key, so send what the label states and never split it: \"Omega-3\" is fat.omega3 (the total), \"Soluble Fiber\" fibre.soluble, \"Folate\" with unit \"mcg DFE\" folate.dfe, \"Vitamin E\" in IU vitamin_e.iu. Any other line the label prints, by its name as printed (\"Creatine Monohydrate\"), is a free label line. A free line needs a number and a unit (g, mg, mcg, IU, CFU, billion CFU or ml); it is stored under line:<name> (lower case, spaces collapsed, ® and ™ removed), served at once with its identity unverified, and adds up with every line of the same name."
  4. Changed1 schema field changed
    • changedInput schema / properties / new_entity / properties / name / description
      Previous value: -"The item's name as printed, without the brand: \"Chocolate Chip\" for a Clif Bar, \"Big Mac\" for McDonald's."New value: +"The item's name as printed, without the brand: \"Chocolate Chip\" for a Clif Bar, \"Big Mac\" for McDonald's. A row in a section that changes the recipe (Fresh Fit, Catering, Gluten Sensitive, Kids) carries the section: \"6\\\" Oven Roasted Turkey (Fresh Fit)\", never the plain name."
  5. Changed3 schema fields changed
    • addedInput schema / properties / new_entity / properties / serving / properties / fl_oz
      Added value: +{
      +  "description": "Its volume in US fluid ounces, when the label prints only fl oz (\"12 fl oz\"): converted to ml at 29.5735295625 ml per fl oz. Give ml instead when it is printed.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / serving_fl_oz
      Added value: +{
      +  "description": "US fluid ounces in one serving, exactly as printed, when the label prints the volume only in fl oz (\"Size 12 fl oz\", \"per 8.4 fl oz\"). Converted to serving_ml at 29.5735295625 ml per US fl oz. Give serving_ml instead when the label also prints ml.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / values / items / properties / unit / description
      Added value: +"The unit as printed. Spellings of one unit are one unit: mcg, µg, μg and ug are micrograms; Calories and kcal are kilocalories."
  6. Changed1 schema field changed
    • addedInput schema / properties / values / items / properties / value / description
      Added value: +"A number as printed; for ingredients_text the ingredient list as printed (one string); for allergen.contains and allergen.may_contain a list of canonical allergen keys (describe: allergen_keys; \"Tree Nuts\" and \"Eggs\" are matched to tree_nut and egg, any other word refuses that field by name). Text publishes as numbers do: unverified until a blind second reading agrees. An empty allergen list (\"contains none\") is not published until a blind second reading also reads none."
  7. Changed4 schema fields changed
    • addedInput schema / properties / outcome
      Added value: +{
      +  "description": "Truthful abstention: omit values and serving measurements. Recorded, never agreement or credit.",
      +  "enum": [
      +    "unreadable",
      +    "different_variant",
      +    "out_of_date",
      +    "not_first_party"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / unreadable
      Removed value: -{
      -  "description": "True when the proof can't be read reliably (blurry, cropped, wrong product).",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / values / default
      Added value: +[]
    • changedInput schema / required
      Previous value: -[
      -  "values",
      -  "proof_id"
      -]New value: +[
      +  "proof_id"
      +]
  8. Changed1 schema field changed
    • changedInput schema / properties / values / items / properties / bound / description
      Previous value: -"When the label states a bound, not a value: \"<1 g\" is bound \"lt\" with value 1; \"trace\" uses value 0."New value: +"When the label states a bound, not a value: \"<1 g\" is bound \"lt\" with value 1; \"trace\" uses value 0. A printed interval uses two entries of the same property and basis, lower ge/gt and upper le/lt; get retains both in bounds."
  9. First observed

TDQS

D1.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=false, and destructiveHint=false, so the write-and-closed-world profile is covered structurally. The description adds nothing the agent needs: whether a submission is final or amendable, what happens on a rejected reading, or how the outcome enum (unreadable, different_variant, out_of_date, not_first_party) changes the contract. 'From its files only' is the sole behavioral hint and is left unexplained.

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

Conciseness2/5

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

It is short, but short only because it is under-specified — a single cryptic fragment with no verb and front-loaded jargon ('reading') that the agent must reverse-engineer. Length is not the issue; the sentence does not carry the information load its brevity implies.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter write tool with no output schema, deep nested value objects, and an outcome/error enum, a one-clause description is wholly inadequate. Nothing tells the agent which parameter combination is valid for which situation (normal reading vs. new_entity vs. outcome), which is essential to calling it correctly.

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

Parameters1/5

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

Schema description coverage is 11% across 9 parameters, so the description is the only remaining channel — and it mentions none of them. The central concepts an agent must get right (the values/bound/basis encoding, the outcome fallback path, new_entity for unknown products, serving fields) are never explained in prose. This is the largest gap in the definition.

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

Purpose2/5

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

The sentence names the resource abstractly ('a read_proof task's proof') but never supplies the verb — 'Your reading of' is a fragment, not a statement that this tool submits an extraction result. It also references a tool, read_proof, that is absent from the sibling list, so an agent cannot map it to the actual workflow. The only distinguishing element, 'from its files only', is a constraint rather than a purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to call this versus siblings such as verify, claim_status, or tasks, nor on what must precede it (presumably an read_proof task). The phrase 'from its files only' implies data must be derived from the supplied files rather than outside knowledge, which is a useful constraint but is not framed as usage guidance. No mention of what to do after submitting.

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