Skip to main content
Glama

planBatchSize

Read-onlyIdempotent

Calculate total batch size from per-eater portion slots, using weight or macro targets instead of recipe serving claims, and inspect the underlying arithmetic.

Instructions

Work out how much to cook, from an explicit list of who is eating and how much each takes. Size slots by weight or by macros where you can. Sizing a slot as a count of the recipe's declared servings always warns, because 'serves 4' is the author's claim about their own portions and not a measurement of a household meal. Returns the arithmetic so it can be checked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
basisYes
slotsYes
allowIncompleteNoPermit macro-sized slots against totals whose confidence is 'unresolved'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
slotsYes
totalsYes
warningsYes
arithmeticYes
perDeclaredServingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds valuable behavioral context beyond that: sizing by declaredServings 'always warns', and the result includes arithmetic for verification. This helps the agent anticipate output behavior and understand why warnings may appear. No contradiction with 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?

Four sentences with no filler: the purpose is front-loaded, the sizing guidance is concise, the warning is explicit, and the return behavior is stated. Every sentence contributes to the agent's understanding. This is appropriately sized for the tool's complexity.

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 tool's nested schema and the presence of an output schema, the description covers the essential decision points: what input is needed (explicit eater list and slot sizes), which sizing methods are preferred, what to avoid (declaredServings), and what the return contains. It does not explain the interaction between basis fields and slot sizing, which a complex tool might warrant, but it is mostly complete for correct 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 33%, so the description carries extra responsibility. It does clarify the meaning of the 'slots' size variants (weight, macros, declaredServings) and explains why declaredServings is discouraged. However, it does not explain the 'basis' object's fields like totalRawG, yieldFactor, or totalCookedG, nor does it address allowIncomplete. It adds some semantic value but does not fully compensate for the low schema coverage.

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 states exactly what the tool does with a specific verb ('work out how much to cook') and resource (batch size from an explicit eater list). It differentiates from siblings by emphasizing the explicit list and individual slot amounts, and by explicitly contrasting with declared-servings-based sizing. An agent can distinguish it from scaleRecipe or computeBatchMacros without opening the schema.

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 clearly indicates when to use it: when you have an explicit list of who is eating and how much each takes. It also gives a concrete usage rule ('Size slots by weight or by macros where you can') and warns against using declared servings. It does not explicitly name sibling alternatives or provide exclusion criteria, so it misses the top tier, but the context is clear.

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