Skip to main content
Glama

Mango Inventory

Update field definition

update_field_def
DestructiveIdempotent

Update a custom field definition: rename the label, flip required, replace a select's options, or change a currency field's currencyCode. The TYPE is immutable, because changing it would invalidate every stored value; a different type means a new field (archiving the old one happens in the app). Changing currencyCode relabels existing values without converting them: the numbers stay as entered. Field ids come from get_item_requirements. Requires the manager role. Idempotent.

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": {
      "fieldDefId": "<fieldDefId>"
    },
    "name": "update_field_def"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoNew label
optionsNoReplacement option list (select/multiselect fields only)
requiredNo
fieldDefIdYesField definition id
currencyCodeNoISO 4217 code (currency fields only), e.g. EUR or CHF. The organization's default currency applies only when a field is created. Relabels existing values, never converts them.

Output Schema

NameRequiredDescriptionDefault
typeNoField type: text | number | date | select | multiselect | …
labelNoField label as the org named it
optionsNoAllowed values for selects
requiredNoWhether a value is mandatory
fieldDefIdNoField definition id
currencyCodeNoISO code of a currency field when it is not CHF (absent = CHF)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / currencyCode / description
      Previous value: -"ISO 4217 code (currency fields only), e.g. EUR or CHF — always name the code you want; the organization's default currency applies only when a field is created. Relabels existing values, never converts them."New value: +"ISO 4217 code (currency fields only), e.g. EUR or CHF. The organization's default currency applies only when a field is created. Relabels existing values, never converts them."
  2. First observed

TDQS

A4.5/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 bar is lower, yet the description adds real context: options are replaced wholesale, currencyCode relabels without converting stored numbers, and the manager role is required. It does not spell out what happens to values when options are removed, which is the main remaining behavioral unknown for a destructive operation.

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?

Three tight sentences, front-loaded with the mutable surface, then the immutability constraint, then the currency caveat and prerequisites. No filler and no repetition of the title.

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 an output schema already covering return values, the description supplies the missing pieces an agent needs: immutability of type, non-converting currency semantics, id source, and required role. Nothing material is left unstated.

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 80%, so the baseline is 3; the description goes beyond it by explaining that currencyCode relabels rather than converts and that options is a full replacement list for select/multiselect fields. It adds little for label and required, but those are self-evident from 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 description opens with a specific verb+resource ("Update a custom field definition") and immediately enumerates the four mutable aspects: label, required flag, select options, and currencyCode. It also draws a hard boundary against type changes, which distinguishes it from create_field_def without needing to name it.

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 states the conditions that select this tool (rename, flip required, replace options, change currency) and the condition that rules it out (type is immutable; a different type means a new field). It also names the prerequisite role and the source of field ids. The only gap is that it does not explicitly point to create_field_def as the alternative for a type change.

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