Skip to main content
Glama

set_inventory_unit_identifier

Sets (or changes) the identifier of a stock line by its unit id. The identifier is a free-form label: serial number, asset tag, lot code, or similar. Pass an empty value to clear it. Does not change quantity. Returns the updated unit.

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": {
      "unitId": "<unitId>",
      "identifier": "<identifier>"
    },
    "name": "set_inventory_unit_identifier"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitIdYes
identifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the important traits: the value is free-form, empty string clears it, quantity is untouched, and it returns the updated unit. It leaves out whether an unknown unitId errors, whether identifiers must be unique across units, and whether this same value is what find_item_by_barcode matches on.

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?

Four short sentences, front-loaded with the action, then the value semantics, then the clearing rule, then the scope and return. Every sentence carries distinct information with no restatement of the tool name.

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?

For a simple two-parameter mutation with no output schema, the description covers action, value meaning, clearing behavior, side-effect scope, and return value. Only discovery of the unitId and failure behavior are unaddressed.

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 description coverage is 0%, so the description must compensate, and it largely does: 'identifier' is explained as a free-form label with example forms and an empty-value clear semantic, and 'unitId' is identified as the unit's id. It does not say where to obtain a valid unitId (e.g., list_inventory_units), which is the remaining gap.

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 and resource: set/change the identifier of a stock line keyed by unit id, and defines what the identifier is (serial, asset tag, lot code). It is distinguishable from set_unit_custom_field and set_inventory_unit_status by making clear this is the single free-form identifier field, though it never names those siblings explicitly.

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?

Gives useful in-call guidance (set or change; pass an empty value to clear) and a scope exclusion ('Does not change quantity'), which implicitly steers quantity edits toward move_inventory_unit_quantity. It never states when to prefer set_unit_custom_field or set_inventory_unit_status over this tool, so cross-tool routing is left to inference.

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