Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

save_custom_field

Destructive

Create or update a container or substance custom field by specifying its name, data type, and allowed values; returns the field ID for ChemInventory configuration.

Instructions

Create or update a container or substance custom field. Returns the field ID.

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": {
      "field_kind": "<field_kind>",
      "name": "<name>",
      "data_type": "<data_type>"
    },
    "name": "save_custom_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
field_idNoCustom field to update; 0 creates a new field
data_typeYes
field_kindYes
searchableNo
allowed_valuesNoOptions for dropdown and tags fields
admin_edit_onlyNoOnly administrators may edit (initial value still free)
show_for_ordersNoContainer fields: available on order requests

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety bar is lower, but the description adds almost nothing beyond them: it never warns that updating an existing field can overwrite its configuration or stored values, never mentions permission requirements, and never cautions about changing data_type on a populated field. The one added note ("Returns the field ID") is redundant given an output schema exists.

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?

Two short sentences, front-loaded with the operation and followed by the return value; no filler. Slight redundancy in restating the container/substance split that the field_kind enum already encodes.

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

Completeness2/5

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

For a destructive, 8-parameter create-or-update mutation with only 50% schema coverage, the description omits critical operational facts: how to select update mode, which optional fields are conditional on data_type, and what a destructive update actually affects. The presence of an output schema excuses it from explaining return values, but not from these gaps.

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 8 parameters at 50% schema description coverage, roughly half are undocumented, including name, data_type, field_kind, and searchable. The description does not compensate: it never explains the field_id=0 creation convention, when allowed_values is required for dropdown/tags, or what admin_edit_only and show_for_orders do. Baseline 3 applies since the description neither helps nor misleads on parameters.

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?

States a specific verb pair ("Create or update") plus the resource ("custom field") and its two scopes ("container or substance"), which maps directly to the field_kind enum. It does not explicitly differentiate itself from siblings like delete_custom_field or list_custom_fields, but the create/update framing is unambiguous on its own.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no alternatives named. The create-vs-update distinction is left entirely to the schema's field_id default of 0, so an agent gets only weak implied guidance from the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.