Skip to main content
Glama

Add a dietary note

set_dietary_note
DestructiveIdempotent

Add or change the dietary note on an order before it's paid (an allergy, an intolerance, in the user's words), at a shop that takes dietary notes. An empty note removes it. The order's card shows it within a few seconds. Once the order is paid it's with the shop already: the user tells staff at the counter instead.

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": {
      "order_id": "<order_id>",
      "claim": "<claim>",
      "note": "<note>"
    },
    "name": "set_dietary_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesThe note, only what the user said. Empty to remove it.
claimYesThe claim create_pickup_order returned with the order.
order_idYes
shop_urlNoAn agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true; the description earns credit by explaining the mechanism behind that ("An empty note removes it" and "Add or change"), plus the propagation delay ("shows it within a few seconds"). It does not describe permission or error behavior when the shop rejects dietary notes, which keeps it out of the top band.

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 core action and its restriction lead the description, followed by the overwrite semantics, propagation, and the post-payment alternative. Every clause carries information; nothing is padding.

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?

With four parameters and no output schema, the description covers the action, the write semantics, the effect visibility, and the lifecycle boundary. It stops short of saying what happens if the shop does not accept dietary notes, the one gap an agent calling this correctly would still want closed.

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 75% and the schema already documents note, claim, and shop_url; order_id is undocumented in both places. The description adds only "in the user's words" for the note content, which largely restates the schema text, so the baseline 3 is appropriate.

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?

States a specific verb and resource ("Add or change the dietary note on an order") plus the timing scope ("before it's paid") and the shop precondition ("at a shop that takes dietary notes"). An agent can distinguish this from create_pickup_order or pay_order immediately, without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the window in which the tool applies (before payment) and the fallback when that window has closed ("the user tells staff at the counter instead"), which is a clear when-not-to-use condition. The shop precondition further narrows correct usage.

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.