Skip to main content
Glama

Set lunchboxes from a dinner

set_lunchbox_portions
Idempotent

Set how many extra portions one planned dinner cooks for the next day's lunchboxes, 0 to 10; without portions it follows the household's weekday setting again. Lunch is not planned: the extra portions are bought and cooked with the dinner. A dish that should not be heated again makes none.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "date": "<date>"
    },
    "name": "set_lunchbox_portions"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe dinner's date, yyyy-MM-dd.
portionsNoExtra portions for the next day's lunchboxes, 0–10. Leave it out to follow the household's weekday setting again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare a non-read-only, idempotent, non-destructive, non-open-world write. The description adds genuinely new behavior: omitting portions reverts to the household's weekday setting, the extra portions are bought and cooked along with the dinner rather than planned separately, and unreheatable dishes produce no portions. It does not state what happens when the date has no planned dinner.

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 clauses, with the primary action and range front-loaded and the reset semantics immediately following. The final sentence ('A dish that should not be heated again makes none') is terse and slightly cryptic in phrasing but carries a real constraint.

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?

For a two-parameter idempotent setter with full schema coverage and no output schema, the description covers the write's effect, the omission default, and the reheating caveat. The main gap is the precondition that the date must already have a planned dinner, which is only implied.

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% and both parameters already document the 0-10 range and the 'leave it out to follow the weekday setting' behavior, which the description largely restates. The description adds the interpretive point that the date is the dinner's date and that portions belong to the next day's lunch, but nothing beyond the schema on syntax or constraints.

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 opens with a concrete verb and resource: setting how many extra portions a planned dinner cooks for the next day's lunchboxes, including the 0-10 range. It does not differentiate itself from the related 'set_leftover_dinners' sibling, so the agent must infer the boundary between the two.

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?

It gives clear context for when to use it (attaching extra portions to a planned dinner, with lunch handled implicitly at the dinner) and a when-not rule: 'A dish that should not be heated again makes none.' It never names an alternative tool for the leftover/lunchbox case, leaving that routing to inference.

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