Skip to main content
Glama

calculate_nutrition_card_stats

Convert a food’s per-100g nutrition label into NomGacha TCG stats—ATK, DEF, Healthy Counter eligibility, and Raid Boss damage—then compare it with the closest Series 01 cards.

Instructions

Convert any real-world food’s per-100g nutrition label into official NomGacha TCG stats (ATK, DEF, Healthy Counter eligibility, and Raid Boss damage) and compare it against the closest cards in Series 01.

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": {
      "kcal": "<kcal>",
      "sugar": "<sugar>",
      "fat": "<fat>",
      "protein": "<protein>"
    },
    "name": "calculate_nutrition_card_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
fatYesFat in grams per 100g
kcalYesEnergy in kcal per 100g
nameNoName of the food or snackCustom Food
fiberNoDietary fiber in grams per 100g
nutriNoNutri-Score grade (a, b, c, d, or e)c
sugarYesSugars in grams per 100g
sodiumNoSodium in grams per 100g (note: 1g salt ≈ 0.4g sodium)
proteinYesProtein in grams per 100g

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It helpfully discloses that the tool outputs ATK, DEF, Healthy Counter eligibility, and Raid Boss damage, and performs a comparison. But it does not state whether the operation is pure/read-only, what validation errors occur for out-of-range nutrition values, or how the comparison result is structured.

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?

The description is a single, front-loaded sentence that states the conversion, the output stats, and the comparison in one pass. Every phrase earns its place with no redundant wording.

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

Completeness3/5

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

The tool has 8 parameters with full schema coverage and no output schema, so the description should explain the return shape and comparison behavior. It lists the generated stats but does not describe the format of the comparison against Series 01 cards or any edge-case behavior, leaving a meaningful gap for an agent invoking it.

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 every parameter already has clear documentation in the input schema. The description only reinforces the per-100g nutrition context and adds no additional parameter-level meaning beyond what the schema provides, which fits the baseline of 3.

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 verb ('Convert') and resource ('per-100g nutrition label') and names the exact outputs (ATK, DEF, Healthy Counter eligibility, Raid Boss damage) plus a comparison against Series 01 cards. It is clearly distinct from sibling tools like search_food_cards or simulate_raid_battle, though it does not explicitly name an alternative to route against.

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?

The implied use case is clear: take a real-world food's per-100g nutrition values and generate TCG stats with a comparison. However, there is no explicit when-to-use or when-not-to-use guidance, and no mention of alternatives such as search_food_cards for looking up existing cards.

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