Skip to main content
Glama

Put inventory on a gig

assign_inventory

Put an item on a gig as a line, with a quantity from 1 to 9999 and an optional note. Gear goes on a gig, never to a person. Adding an item already on the gig outside any group raises that one line, whatever the note says. A kit becomes a group named after the kit, holding one item line per content at the content quantity times the kits added; adding the kit again raises the lines in that group. A raise past 9999 is refused. Only a published gig takes inventory: a draft, template, sample or cancelled gig refuses the line with a message that says why. A line that asks for more than is available still saves and shows how many are short and which gigs hold the rest; a shortage never blocks. Returns the gig's inventory in the same shape as list_gig_inventory. Requires gig-operations/CRM-manager access. Runs on the first call; there is no confirmation step.

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": {
      "event_id": "<event_id>",
      "item_id": "<item_id>",
      "quantity": "<quantity>"
    },
    "name": "assign_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNofree-text note saved on this gig inventory line
item_idYesthe item or kit to put on the gig, an id from list_inventory
event_idYesthe gig (event) id, from list_events, open_gigs or my_agenda
quantityYeshow many of the item or kit to put on the gig
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: { event_id, state, short_count, lines [{ id, kind, item_id, name, category, note, quantity, available, and 5 more fields }] } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / due_at
      Removed value: -{
      -  "description": "when it should be returned (RFC3339)",
      -  "type": "string"
      -}
    • changedInput schema / properties / event_id / description
      Previous value: -"gig to assign this gear to"New value: +"the gig (event) id, from list_events, open_gigs or my_agenda"
    • addedInput schema / properties / event_id / minLength
      Added value: +1
    • changedInput schema / properties / item_id / description
      Previous value: -"the inventory item to assign"New value: +"the item or kit to put on the gig, an id from list_inventory"
    • addedInput schema / properties / item_id / minLength
      Added value: +1
    • addedInput schema / properties / note
      Added value: +{
      +  "description": "free-text note saved on this gig inventory line",
      +  "type": "string"
      +}
    • removedInput schema / properties / notes
      Removed value: -{
      -  "description": "optional assignment notes",
      -  "type": "string"
      -}
    • removedInput schema / properties / org_member_id
      Removed value: -{
      -  "description": "org member to check this out to",
      -  "type": "string"
      -}
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • changedInput schema / properties / quantity / description
      Previous value: -"units to check out (must be positive)"New value: +"how many of the item or kit to put on the gig"
    • addedInput schema / properties / quantity / maximum
      Added value: +9999
    • addedInput schema / properties / quantity / minimum
      Added value: +1
    • removedInput schema / properties / status
      Removed value: -{
      -  "description": "assignment status label",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "item_id",
      -  "quantity"
      -]New value: +[
      +  "event_id",
      +  "item_id",
      +  "quantity"
      +]
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / data / additionalProperties
      Added value: +{}
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"the API response { status (HTTP status), data: { event_id, state, short_count, lines [{ id, kind, item_id, name, category, note, quantity, available, and 5 more fields }] } }"
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "data": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "event_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "lines": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "category": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "checked_in": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "checked_out": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "item_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "kind": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "quantity": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "short": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "not_checked_in_count": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "short_count": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "state": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "status": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / data / type
      Added value: +"object"
  2. Changed2 schema fields changed
    • addedInput schema / properties / notes / description
      Added value: +"optional assignment notes"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing merge semantics (re-adding raises the existing line regardless of note), kit-to-group expansion, the 9999 refusal, gig-state gating, non-blocking shortages, required access level, and that it executes immediately with no confirmation. That last point and the accumulate-on-repeat behavior are consistent with idempotentHint=false. The only gap is the response shape, which is delegated to list_gig_inventory rather than described.

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?

Front-loaded with the core action, then proceeds through edge cases in a logical order with no filler sentences. It is dense and prose-heavy for eight clauses; bullet-style grouping of the kit and gig-state rules would scan faster, but nothing is redundant.

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?

An output schema exists, and the description still points to list_gig_inventory for the return shape, so return values need no further explanation. For a non-idempotent mutation with authorization and gig-state preconditions, the description covers merge behavior, refusals, partial-success cases, and access requirements.

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?

Schema coverage is 100%, so the schema already documents every parameter including ranges and id sources, making 3 the baseline. The description does add real meaning about item_id (it may be an item or a kit, with divergent behavior) and about note (it does not affect the quantity raised), but it never mentions organization_id or how it interacts with the active organization.

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?

States a specific verb and resource ('Put an item on a gig as a line') with scope details (quantity 1-9999, optional note). It is clearly distinguishable from read siblings like list_gig_inventory and destructive ones like delete_inventory, and the kit-vs-item behavior further narrows what the call does.

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?

Gives clear conditions: gear goes on a gig not a person, and only a published gig accepts lines while draft/template/sample/cancelled gigs refuse. It also notes shortages never block, which tells the agent not to pre-check. It stops short of explicitly naming an alternative such as check_inventory_availability for pre-flight availability checks.

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.