Skip to main content
Glama

Analyze Recipe Nutrition

spoonacular.recipes.analyze
Read-onlyIdempotent

Analyze a recipe by supplying its title and ingredient list to receive a complete nutrition breakdown, dietary labels, and caloric distribution.

Instructions

Analyze a recipe by title and ingredient list — returns full nutrition breakdown, dietary labels, and caloric distribution (Spoonacular)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesRecipe title (e.g. "Spaghetti Carbonara")
ingredientsYesList of ingredient strings (e.g. ["200g spaghetti", "100g guanciale", "2 eggs"])
instructionsNoCooking instructions as plain text
servingsNoNumber of servings (default 1)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description adds value by specifying the output content (nutrition breakdown, dietary labels, caloric distribution). It does not contradict annotations and provides useful behavioral context beyond 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.

Conciseness5/5

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

The description is a single sentence that is front-loaded with the action and purpose. No extraneous words; every word earns its place.

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?

Given the existence of an output schema and the tool's simplicity, the description is mostly complete. It covers the main purpose and return values. However, it could briefly note that the recipe should be realistic or that instructions are optional, but this is not critical.

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 coverage is 100%, so the baseline is 3. The description mentions 'title and ingredient list' but does not add new meaning beyond the schema descriptions. It adequately complements the schema without repeating it.

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?

The description clearly specifies a verb ('Analyze') and resource ('recipe nutrition'), and explicitly states the return values (nutrition breakdown, dietary labels, caloric distribution). It distinguishes from sibling tools like spoonacular.recipes.search or spoonacular.recipes.details by focusing on nutrition analysis of a given recipe.

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 description implies usage scenarios (when you have a recipe and want nutrition analysis) but does not explicitly mention when not to use this tool or provide alternative tools. It lacks explicit guidance on selecting this over siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whiteknightonhorse/APIbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server