Skip to main content
Glama

PlugRail JP Nutrition

calc_nutrition

食品番号とg数で分量換算値を返します。100g換算の転記ミスを防ぎます(hosted 版は月100件まで無料・超過時はPro案内)。入力例: {"food_id": "01001", "grams": 50, "nutrient_codes": ["ENERC_KCAL"]}

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": {
      "food_id": "<food_id>",
      "grams": "<grams>",
      "nutrient_codes": "<nutrient_codes>"
    },
    "name": "calc_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
gramsYes分量(g)。例: 50
food_idYes5桁の食品番号。例: "01001"
nutrient_codesYes栄養素コードの配列。例: ["ENERC_KCAL"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 burden. It does disclose a meaningful behavioral trait, the hosted rate limit of 100 requests/month with Pro guidance on excess, and indicates this is a conversion/read-style operation, but it never explicitly states that no data is mutated nor describes the return shape.

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?

Three short sentences with the purpose front-loaded, followed by the rate-limit caveat and a concrete example. The example partly duplicates schema examples, but overall there is little waste and the structure is easy to scan.

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?

For a 3-parameter calculation tool with no annotations and no output schema, the definition covers purpose, rate limits, and input format, but omits when-to-use routing versus siblings and gives no indication of the returned value structure or units, leaving an agent to discover those on invocation.

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 food_id, grams, and nutrient_codes are already documented in the schema. The description adds only an inline input example that restates the schema's formats (5-digit food number, grams, nutrient code array), which is marginal value beyond the structured fields.

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 and resource: it returns portion-converted nutrient values from a food number and gram amount, and notes the intent of preventing transcription errors from 100g-based conversion. It is clear what the tool does, but it never distinguishes itself from siblings lookup_nutrition or search_foods, so an agent must infer the boundary.

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 explicit when-to-use guidance, no exclusions, and no comparison to the lookup/search siblings. The input example hints at usage but does not state when this conversion tool should be chosen over lookup_nutrition or search_foods.

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.