Skip to main content
Glama

Update batch

update_batch
DestructiveIdempotent

Change a batch: cooked weight, name, method, date, notes, finished or not, and remove portions recorded as eaten by others. Only the fields passed change.

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": {
      "batch": "<batch>"
    },
    "name": "update_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
batchYesThe batch's id or name
notesNo
methodNo
made_onNoCalendar date YYYY-MM-DD in the user's timezone
cooked_gNo
finishedNotrue when the batch is eaten or thrown away; false reopens it
remove_sharedNoIds of portions eaten by others to remove

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 already declare destructiveHint=true and idempotentHint=true, so the description is not obligated to carry the safety profile. It still adds real value by disclosing the partial-update contract and by surfacing that the call can remove portions logged by other people, which is the genuinely destructive part of the operation. It could go further by warning that removed shared portions are not recoverable and by noting what happens when the batch reference is unknown.

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?

The verb-and-resource lead is front-loaded and the field enumeration is dense rather than padded. The one-sentence field list is slightly scan-hostile, but no sentence is wasted.

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 an eight-parameter mutation tool with annotations but no output schema, the definition covers what can be changed and how partial updates behave. It leaves gaps an agent would care about: what is returned after the update, error behavior for a bad batch reference, and confirmation that removing shared portions is irreversible.

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?

With schema description coverage at 50%, the description compensates partially by naming every updatable field in plain language, mapping cooked weight to cooked_g, date to made_on, and the removal list to remove_shared. It adds no format or constraint detail (date format, positive weight, the 50-item cap) beyond what the schema already documents, so it remains at the baseline-plus level.

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?

"Change a batch" gives a specific verb and resource, and the enumerated field list (cooked weight, name, method, date, notes, finished, remove shared portions) makes the scope concrete. It does not explicitly contrast itself with create_batch or any other sibling, so it stops just short of full differentiation.

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?

"Only the fields passed change" gives meaningful patch semantics, telling the agent it can send a partial body rather than a full replacement. There is, however, no explicit when-to-use statement, no mention of the batch having to already exist, and no guidance on alternatives such as create_batch or delete-style flows.

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