Skip to main content
Glama

joiva_report_food

Destructive

Report that a food in Joiva's shared catalog is wrong: wrong nutrient values, wrong name, a duplicate, or not a real product. For values the user says are off (e.g. 'fat can't be right, it was porridge with water') or that are clearly implausible. Same path as the report button in the Joiva app: stored with a snapshot, checked at once against Joiva's reference sources (BLS, Open Food Facts), corrected only when a source backs it, escalated to a human moderator from the second report. It never deletes a food and never writes submitted numbers: suggestedPer100g and evidence are recorded and compared with the source. The food is identified by its catalog id (foodItemId). The user's own log entry is not changed by a report.

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": {
      "foodItemId": "<foodItemId>",
      "whatIsWrong": "<whatIsWrong>"
    },
    "name": "joiva_report_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoDefault wrong_values
evidenceNo
foodItemIdYesCatalog id of the food (`id` in catalog search results, `foodItemId` in a log entry)
duplicateOfNoFor kind=duplicate: id of the food this one duplicates
whatIsWrongYesWhat is wrong, in the user's words, e.g. 'Fett zu hoch, nur Haferflocken mit Wasser'
suggestedPer100gNoValues per 100 g the user or the label says are right. Recorded, never written.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / foodItemId / description
      Previous value: -"Catalog id: `id` from joiva_search_foods or `foodItemId` from joiva_get_day"New value: +"Catalog id of the food (`id` in catalog search results, `foodItemId` in a log entry)"
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The description adds substantial behavior beyond annotations: snapshot storage, immediate checking against BLS/Open Food Facts, correction only when a source backs it, escalation to a human moderator from the second report, and explicitly that no food is deleted and the user's log entry is untouched. That said, the annotations declare destructiveHint=true and idempotentHint=false while the text emphasizes that nothing is destroyed, and the description never addresses what happens on repeat submissions or what the call returns, so the tension is softened rather than fully resolved. Strong added context, but not a complete behavioral account for a flagged-destructive mutation.

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?

It is front-loaded with the purpose and defect kinds, then layers consequences and safety constraints, with the most important negative guarantees stated last for emphasis. The app-analogy sentence ("Same path as the report button") earns its place as a mental model, though the middle section is a dense run of clauses that could be split for readability.

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?

For a 6-parameter tool with a nested evidence object and no output schema, the description covers the lifecycle (snapshot, immediate source check, conditional correction, moderator escalation) and the key non-effects (no deletion, no writes from suggested values, log entry unchanged). The main remaining gap is what the call returns to the caller, which an agent may need for confirming the report succeeded.

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 coverage is 83%, so the schema already documents the parameters well; the description's contribution is mainly behavioral, clarifying that foodItemId refers to the catalog id and that suggestedPer100g and evidence are recorded and compared against reference sources rather than written. The schema description for suggestedPer100g already says "Recorded, never written," so much of this is restatement. Baseline 3 is appropriate.

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 first sentence gives a specific verb and resource ("Report that a food in Joiva's shared catalog is wrong") and enumerates the four defect kinds, which map directly to the kind enum. It is clearly distinguishable from siblings like joiva_update_log_entry or joiva_log_food, and the closing note that the user's log entry is unaffected separates it from logging tools.

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 the triggering condition twice with concrete examples ("fat can't be right, it was porridge with water" and "clearly implausible"), so an agent knows when to reach for it. It does not explicitly name an alternative tool or say when NOT to report (e.g. for a user's own log entry), which keeps it below a 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