Skip to main content
Glama

Final POS – Custom POS Builder

Edit modifier

hub_update_modifier
Destructive

Rename a modifier and/or REPLACE its whole choice list. Passing choices is a full replacement: whatever you send becomes the list and anything you leave out is DELETED. Read get_modifier first and send the complete set back, keeping each choice’s id so prices and till history stay attached. To change one choice, use update_modifier_choice instead — it is safer and cannot drop the others. selectionType and allowQuantity cannot be changed; a modifier that needs a different kind of answer has to be created fresh. Renaming alone never breaks a rule; replacing choices can, and is refused with an explanation if it would.

Input Schema

NameRequiredDescriptionDefault
nameNoNew name. Must stay unique for the merchant, ignoring case
choicesNoThe COMPLETE new choice list. Omitting this leaves the choices untouched
modifierIdYesModifier id from get_modifiers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true; the description adds far more: choices are a full replacement with omitted entries DELETED, renaming is safe but choice replacement can be refused with an explanation, and ids must be preserved to keep prices and till history attached. This is exactly the extra context a destructive tool needs.

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?

Front-loads the destructive replacement warning, then layers prerequisites, the safer alternative, immutability, and refusal behavior in tight sentences. Every sentence carries actionable information; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema and full schema coverage, the description supplies the warnings, prerequisites, immutable-field limits, and refusal behavior an agent needs to call it safely. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema — it explains why choiceId must be kept (prices and till history stay attached) and clarifies replacement semantics for the choices array. The name uniqueness and immutability constraints are covered largely by the schema.

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 first sentence states a specific verb and resource ('Rename a modifier and/or REPLACE its whole choice list') and precisely delineates scope. It is immediately distinguishable from siblings like hub_update_modifier_choice, hub_create_modifier, and hub_delete_modifier_choice.

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 routes the agent: use update_modifier_choice for single-choice edits because it is 'safer and cannot drop the others', and read get_modifier first before sending the complete set. It also states what cannot be done (selectionType/allowQuantity) and that such cases require creating fresh.

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.