Skip to main content
Glama

Snowbelly Nutrition

Calories from macros

macro_calories

Calories from grams of protein, carbs, fat and alcohol (4/4/9/7 kcal per gram).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "macro_calories"
  }
}

Input Schema

NameRequiredDescriptionDefault
fat_gNo
carbs_gNo
alcohol_gNo
protein_gNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden, and it does contribute the key behavioral fact: the 4/4/9/7 kcal-per-gram conversion, which signals a deterministic, side-effect-free calculation. It does not state that omitted macros count as zero, nor what the return shape is, which matters given all four parameters are optional.

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

Conciseness5/5

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

A single sentence with the unit and the formula front-loaded in a parenthetical. Every clause earns its place and nothing is padded.

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 four-parameter arithmetic helper with no output schema, the description supplies the operation and the exact math, which is nearly everything needed to call it correctly. The remaining gap is default handling for the all-optional parameters, which an agent can only guess at.

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 0%, so the description must supply parameter meaning and it does: each of the four schema properties (protein_g, carbs_g, fat_g, alcohol_g) is named with its unit (grams) and its calorie coefficient. The order differs from the schema and defaults for omitted values are unstated, keeping it short of a 5.

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 states a specific computation: converting grams of protein, carbs, fat and alcohol into calories, and even supplies the coefficients. It clearly reads as a calculator utility rather than a data lookup, though it never names a sibling such as daily_calories to make the distinction explicit.

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 statement of when to use this versus daily_calories, food_calories or protein_fiber_targets. An agent must infer from the name that this is a pure arithmetic helper rather than a food-log query, and nothing in the text confirms that.

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