Skip to main content
Glama

Add or edit an item or kit

save_inventory
Destructive

Add or change an item or a kit in the organization's inventory. An item has a name and a quantity (0 or more). A kit has a name and its contents: items, each with a quantity; a kit cannot contain a kit. A category is optional for both. Without item_id this adds one: name is required, and contents makes it a kit. With item_id it changes that item or kit: only the fields you pass change, and category null clears the category. contents makes it a kit and replaces its contents; gigs the kit was already added to keep the item lines they got. Requires gig-operations/CRM-manager access. Runs on the first call; there is no confirmation step.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoitem or kit name (required when adding)
item_idNochange this item or kit; omit to add one
categoryNoe.g. Audio, Lighting, Backline; null clears it on a change
contentsNomakes this a kit and replaces its contents; gigs the kit was already added to keep the lines they got
quantityNoan item's count; a new item saved with 0 or no quantity starts at 1, so set 0 with a change; a kit's own quantity is not used
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { assigned_quantity, assignments, available_quantity, committed_quantity, upcoming_quantity, stock_status, out_quantity, peak_booked_quantity, next_booked_on, short_gigs [{ event_id, event_title, starts_on, quantity }], category, components [{ child_item_id, child_name, quantity, role }], id, image_url, kit_type, kind, capacity, and 8 more fields } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description substantiates those flags with concrete consequences: contents replaces a kit's contents while gigs already using the kit keep the lines they got, and category null wipes the category. It adds operational context not in annotations at all – the required access level and the fact that it commits on the first call with no confirmation step.

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?

The add-mode versus edit-mode split is front-loaded and every clause carries meaning, with no filler or restatement of the title. It is dense, semicolon-chained prose that takes careful reading, which slightly hurts scannability but not information density.

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 write tool with six parameters and an output schema, the description covers the mode switch, required fields, partial-update behavior, nested contents replacement, the no-nested-kits constraint, category clearing, permissions, and absence of a confirmation step. Nothing an agent needs to invoke it safely 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 per-parameter definitions are already present; the description's added value is cross-parameter semantics – item_id as the add/edit switch, name being required only on add, and contents converting an item into a kit. Those interactions are not expressible per-property in the schema, so this exceeds the baseline-3 case even though individual field meanings are largely duplicated.

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 opening sentence names a specific verb (add or change) and resource (item or kit in the organization's inventory), then immediately defines the two object types and what distinguishes them (a kit has contents; a kit cannot contain a kit). An agent knows exactly what this tool creates or mutates without opening the schema, and the item_id toggle cleanly separates the two operating modes.

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?

Usage is clear: omit item_id to add (name required, contents makes it a kit), pass item_id to change (only passed fields change, category null clears). It also states the access prerequisite (gig-operations/CRM-manager) and that the write happens without confirmation. It does not route to siblings such as delete_inventory or list_inventory, so an agent gets no explicit alternative-selection guidance.

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.