Skip to main content
Glama

item-update

Update an item in an actor's inventory. system is DEEP-MERGED into the existing data: pass only the fields you change, e.g. {"quantity": 3} or {"uses": {"value": 0}}; arrays are replaced whole.

Input Schema

NameRequiredDescriptionDefault
imgNoNew icon path
nameNoNew item name
itemIdYesItem ID to update (from item-list)
systemNoSystem data to deep-merge.
actorIdYesActor ID that owns the item

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / system / description
      Previous value: -"Updated system data (quantity, equipped, range, damage, uses, etc.)"New value: +"System data to deep-merge."
  2. Changed7 schema fields changed
    • removedInput schema / properties / system / properties / damage / description
      Removed value: -"Damage"
    • removedInput schema / properties / system / properties / damage / properties / base / properties / types / description
      Removed value: -"e.g. [\"slashing\"]"
    • removedInput schema / properties / system / properties / range / description
      Removed value: -"Weapon/spell range"
    • changedInput schema / properties / system / properties / range / properties / long / description
      Previous value: -"Long range (e.g. 600)"New value: +"e.g. 600"
    • changedInput schema / properties / system / properties / range / properties / reach / description
      Previous value: -"Melee reach in ft (default 5)"New value: +"reach ft"
    • removedInput schema / properties / system / properties / range / properties / units / description
      Removed value: -"ft or m"
    • changedInput schema / properties / system / properties / range / properties / value / description
      Previous value: -"Normal range (e.g. 150)"New value: +"e.g. 150"
  3. Changed7 schema fields changed
    • changedInput schema / properties / system / properties / uses / additionalProperties
      Previous value: -falseNew value: +true
    • addedInput schema / properties / system / properties / uses / properties / max / anyOf
      Added value: +[
      +  {
      +    "type": [
      +      "number",
      +      "string"
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / system / properties / uses / properties / max / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • changedInput schema / properties / system / properties / uses / properties / per / description
      Previous value: -"Recovery: \"sr\", \"lr\", \"day\", \"charges\""New value: +"dnd5e 3.x"
    • addedInput schema / properties / system / properties / uses / properties / recovery
      Added value: +{
      +  "description": "[{ period: \"lr\" }]",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "period": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "period"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / system / properties / uses / properties / spent
      Added value: +{
      +  "description": "dnd5e 4+: spent",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / system / properties / uses / properties / value / description
      Previous value: -"Remaining uses"New value: +"dnd5e 3.x"
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare that this is a non-read-only, non-destructive mutation. The description adds important behavioral detail beyond the annotations: `system` is deep-merged, only changed fields should be sent, and arrays are replaced wholesale rather than merged.

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?

The description is two concise sentences with the core update behavior front-loaded. The second sentence provides merge semantics and examples without unnecessary exposition.

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?

Given the nested `system` schema and the absence of an output schema, the description provides enough context to call the tool correctly, especially around merge behavior. It does not cover permissions, errors, or return behavior, but those gaps are minor relative to the schema's richness and the annotation coverage.

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 100%, so the schema already documents all parameters. The description still adds meaningful semantics for the `system` parameter by explaining deep-merge behavior, array replacement, and giving concrete examples such as `{"quantity": 3}` and `{"uses": {"value": 0}}`.

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 states a specific verb and resource: update an item in an actor's inventory. This clearly distinguishes it from create/delete/list item operations and from world-item-update, which is not scoped to an actor's inventory.

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?

The description implies usage by saying to update an item in an actor's inventory and by explaining how to pass changed fields. However, it does not explicitly say when to use this tool versus siblings such as item-create, item-delete, or world-item-update.

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