Skip to main content
Glama

Convert Amount

convert_amount
Read-onlyIdempotent

Convert a cooking measurement amount for a specific ingredient between units using Spoonacular. Requires ingredientName, sourceAmount, sourceUnit, and targetUnit. Returns the converted amount and unit (e.g. 1 cup flour -> 125 grams).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sourceUnit": "cup",
      "targetUnit": "g",
      "sourceAmount": 1,
      "ingredientName": "flour"
    },
    "name": "convert_amount"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceUnitYes
targetUnitYes
sourceAmountYes
ingredientNameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "ingredientName": "flour",
      +    "sourceAmount": 1,
      +    "sourceUnit": "cup",
      +    "targetUnit": "g"
      +  },
      +  {
      +    "ingredientName": "butter",
      +    "sourceAmount": 8,
      +    "sourceUnit": "tablespoon",
      +    "targetUnit": "ml"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Unit conversion result",
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavioral context: the data comes from the external Spoonacular service and the conversion is ingredient-dependent rather than a pure unit factor, which an agent could not infer from the annotations.

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, front-loaded with the action, followed by requirements and a return example. The parameter list borders on restating the schema's required array, but at 0% schema coverage it is defensible.

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?

An output schema exists, so return values need not be explained in depth, and the description still gives a quick shape example. For a simple 4-parameter tool with rich annotations this is nearly complete; the main gap is the absence of supported-unit guidance, which could cause avoidable call failures.

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 0%, so the description must carry parameter meaning, and it names all four required fields plus a concrete example (1 cup flour -> 125 grams). However it adds no semantics for units themselves — no list of supported units, no abbreviation/casing rules, no note on how ingredientName affects the result beyond 'specific ingredient'.

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 ('cooking measurement amount for a specific ingredient between units'), which is enough to separate it from siblings like ingredient_search or ingredient_information. It doesn't explicitly name an alternative tool, so it stops short of 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?

The 'Requires ...' sentence establishes the prerequisite inputs, and the ingredient-specific framing hints at when this is appropriate, but there is no explicit when-to-use/when-not guidance or comparison to any sibling conversion or lookup tool.

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.