Skip to main content
Glama

Create batch

create_batch

Record one cooking of a dish, from a saved recipe or from its ingredients with grams: saved foods by name or id, or unsaved ingredients with their own estimated numbers. Its nutrition is fixed when created; per 100 g follows the cooked weight. Returns the batch with nutrition per 100 g.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDefault: the recipe's name and the date
itemsNoWhat went in: each a saved food (food) or an unsaved ingredient (item with its numbers). With a recipe, replaces the recipe's list for this batch
notesNo
raw_gNoRaw weight in grams. Default: the sum of the items
scaleNoMultiply the recipe's grams, e.g. 2 for a double batch. Default 1
methodNoe.g. 'pressure cooked', 'baked'
recipeNoA saved recipe's id or name
made_onNoCalendar date YYYY-MM-DD in the user's timezone
cooked_gNoWeight of the whole batch once cooked

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive write. The description adds genuinely new behavioral context: nutrition is frozen at creation time (so update_batch presumably cannot revise it), and the per-100 g figures derive from the cooked weight rather than raw. Auth requirements, rate limits, and failure modes are not covered.

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 sentences, front-loaded with the core action and result. The middle clause ('saved foods by name or id, or unsaved ingredients with their own estimated numbers') is dense and slightly tangled, but nothing is filler.

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 9-parameter, zero-required-parameter tool with no output schema, the description does state the return value ('the batch with nutrition per 100 g'). It never clarifies that at least one of recipe or items must be supplied, leaving a real hole for a tool where every parameter is optional.

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 89%, so the schema already documents name defaults, item shape, scale, raw_g, cooked_g and made_on. The description's only real semantic addition is the relationship between cooked_g and the per-100 g nutrition basis; the saved-food-by-name-or-id vs unsaved-ingredient split merely restates the schema.

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 names a specific verb and resource ('Record one cooking of a dish') and immediately scopes the two accepted input modes: a saved recipe, or ingredients specified with grams. An agent can tell this apart from log_food or save_recipe by the 'batch/cooking' framing, though it never names a sibling to contrast with.

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?

Usage is implied by the cooking/batch framing, and the recipe-vs-ingredients duality gives context, but there is no explicit statement of when to reach for create_batch over log_food or save_recipe, nor of any prerequisite (e.g. that a recipe or items must actually exist). Guidance is inferable rather than stated.

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