Skip to main content
Glama

Calories to kJ converter

hopi_calories_to_kj
Read-onlyIdempotent

Convert food energy between kilocalories (kcal) and kilojoules (kJ) using the exact factor 1 kcal = 4.184 kJ. Give an amount and its unit ('kcal' or 'kj'); returns both values. Source: https://hopi.co.uk/calories-to-kj/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYesThe unit of the amount: 'kcal' (kilocalories) or 'kj' (kilojoules)
amountYesThe energy amount to convert

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kjYes
kcalYes
summaryYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "kcal",
      +  "kj",
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark it read-only and idempotent; the description adds the exact conversion factor and that both values are returned, which is meaningful behavioral detail beyond schema and annotations. No contradiction is present.

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?

Three short sentences, with the operation and factor first and the ancillary source URL last. No redundant phrasing or unnecessary detail.

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

Completeness5/5

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

With a complete input schema, an output schema, and annotations covering read-only and idempotence, the description covers the remaining needed context: what to pass, the factor, and that both values come back. Nothing important is missing for a simple converter.

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?

Both parameters are fully described in the schema, including the enum for the unit, so the description's restatement of 'amount and unit' adds little. It reinforces the flow but does not meaningfully enrich parameter semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific conversion operation (kcal ↔ kJ) with the exact factor, immediately differentiating it from the many other converter siblings. The resource and direction are unambiguous.

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

Usage Guidelines4/5

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

The description tells the agent to supply an amount and a unit, and frames the tool as the food-energy converter, which makes the intended context clear. It doesn't explicitly discuss alternatives or exclusion cases, but none are material for such a unique unit pairing.

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