Skip to main content
Glama
DataBody MCP Server

DataBody MCP Server

Official
by databody-ai

add_nutrition_item

Add a food item and its calories, protein, carbs, and fat to an existing nutrition log to track meals and daily intake.

Instructions

Add a food item to an existing nutrition log

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": {
      "log_id": "<log_id>",
      "name": "<name>",
      "calories": "<calories>",
      "protein_grams": "<protein_grams>",
      "carbs_grams": "<carbs_grams>",
      "fat_grams": "<fat_grams>"
    },
    "name": "add_nutrition_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the food
brandNoBrand name (optional)
log_idYesID of the nutrition log
caloriesYesCalories per serving
fat_gramsYesFat in grams
carbs_gramsYesCarbs in grams
fiber_gramsNoFiber in grams
serving_sizeNoServing size in grams
protein_gramsYesProtein in grams
serving_quantityNoNumber of servings

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing about mutation side effects: whether log totals are recalculated, whether duplicate items are allowed, whether auth or log ownership is required, or what is returned. For a 10-parameter write operation with zero annotation coverage, this is a significant gap.

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?

A single front-loaded sentence with no filler or redundancy, so nothing needs trimming. Its terseness is a completeness problem rather than a conciseness problem, which is scored elsewhere.

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

Completeness2/5

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

For a mutation tool with 10 parameters, six of them required, no annotations, and no output schema, one sentence is far too thin. The agent is left without preconditions, side-effect expectations, or confirmation of what the call returns.

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 all ten parameters are already documented in the schema and the baseline of 3 applies. The description adds only the nuance that log_id refers to an existing log; it contributes nothing about optional fields like brand, serving_size, or serving_quantity.

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 description names a specific verb and resource ('Add a food item') and scopes it to 'an existing nutrition log', which distinguishes it from log-creation tools like delete_nutrition_log or get_nutrition_log. It does not differentiate itself from nearby write siblings such as add_favorite or create_saved_meal, so an agent gets a clear purpose but no explicit contrast.

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 when-to-use guidance, no stated preconditions beyond the implicit 'existing' log, and no alternatives named. An agent must infer on its own that a valid log_id must already exist and that this is the tool for logging eaten food rather than saving a reusable meal.

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

Deploy Server

Other Tools