Skip to main content
Glama
dineoncampus-mcp

dineoncampus-mcp

by Pixel2075

calculate_meal_totals

Read-only

Sum calories, macros and other published nutrients for a plate of menu items. Use it to total a breakfast, lunch or dinner for any date when planning meals.

Instructions

Add up calories, macros and every other published nutrient for a plate of menu items.

Args: items: list of {"name": str, "servings": number (default 1)}; plain names also work. Names match like get_item_nutrition. meal: optionally restrict lookups to 'breakfast', 'lunch' or 'dinner'. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today.

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": {
      "items": "<items>"
    },
    "name": "calculate_meal_totals"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
mealNo
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds useful context such as the matching rule ('Names match like get_item_nutrition') and the default date window. It does not disclose what happens when a name fails to match or how nutrients are aggregated, which matters for an open-world lookup tool.

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 one-line purpose is front-loaded, and the Args block is compact with each parameter on a single line. The docstring syntax ('Args:') is slightly raw but wastes no words; every line adds parameter detail.

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?

No output schema exists, so the description could say more about the returned totals (per-nutrient keys, whether results are aggregated across items or broken out). Otherwise, for a 3-parameter read-only aggregation tool, the naming, meal, and date semantics are sufficiently covered to call it correctly.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden and does so well: it documents the item object shape ({"name": str, "servings": number (default 1)}), notes that plain names also work, gives the three accepted meal values (which the schema does not express as an enum), and specifies date formats plus the 'defaults to today' behavior. This adds substantial meaning beyond the bare schema.

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?

States a specific verb and resource: 'Add up calories, macros and every other published nutrient for a plate of menu items.' The phrase 'for a plate of menu items' implicitly distinguishes it from single-item lookup and it explicitly ties naming behavior to get_item_nutrition. It stops short of naming the sibling it replaces, so a 4 rather than a 5.

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

Usage Guidelines3/5

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

Usage is implied through parameters ('optionally restrict lookups to breakfast, lunch or dinner') rather than stated as when-to-use guidance. There is no explicit statement of when to prefer this over calling get_item_nutrition per item, and no exclusions or prerequisites. Adequate context, but the agent must infer the alternative.

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