Skip to main content
Glama

update_item

DestructiveIdempotent

Edit fields on one item, or the same fields on up to 20 items (batch: attributes replace instead of merge). Example: id, status="shortlisted", notes="best value so far".

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": {
      "id": "<id>"
    },
    "name": "update_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesItem ID or array of IDs
tagsNoReplaces all tags
notesNoPersonal notes
titleNoTitle
imagesNoReplaces all image URLs
reasonNoWhy, for the change history
statusNoDecision status
categoryNoCategory
quantityNoQuantity wanted
image_urlNoMain image URL
item_typeNoItem type
attributesNoMerged into existing specs
descriptionNoDescription
is_favoriteNoFavorite flag
target_priceNoPrice the user wants to pay

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • changedInput schema / properties / attributes / description
      Previous value: -"Merge into existing attributes"New value: +"Merged into existing specs"
    • changedInput schema / properties / category / description
      Previous value: -"Item category"New value: +"Category"
    • changedInput schema / properties / description / description
      Previous value: -"Item description (max 2000 chars)"New value: +"Description"
    • changedInput schema / properties / id / description
      Previous value: -"Item ID or array of item IDs to update"New value: +"Item ID or array of IDs"
    • changedInput schema / properties / id / oneOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / images / description
      Previous value: -"All image URLs — replaces the entire images array"New value: +"Replaces all image URLs"
    • addedInput schema / properties / images / maxItems
      Added value: +10
    • changedInput schema / properties / is_favorite / description
      Previous value: -"Set true to favorite, false to unfavorite"New value: +"Favorite flag"
    • changedInput schema / properties / item_type / description
      Previous value: -"What kind of item this is"New value: +"Item type"
    • changedInput schema / properties / notes / description
      Previous value: -"User or AI notes — personal comments, thoughts, comparisons"New value: +"Personal notes"
    • changedInput schema / properties / quantity / description
      Previous value: -"How many of this item"New value: +"Quantity wanted"
    • changedInput schema / properties / reason / description
      Previous value: -"Why this change was made (shown to user in change history)"New value: +"Why, for the change history"
    • changedInput schema / properties / status / description
      Previous value: -"Decision status: considering, shortlisted, decided, bought, rejected"New value: +"Decision status"
    • changedInput schema / properties / tags / description
      Previous value: -"Replace all tags with this list"New value: +"Replaces all tags"
    • addedInput schema / properties / tags / maxItems
      Added value: +50
    • changedInput schema / properties / target_price / description
      Previous value: -"What the user wants to pay — not the actual price, but the goal price"New value: +"Price the user wants to pay"
    • changedInput schema / properties / title / description
      Previous value: -"Item title"New value: +"Title"
  2. Changed7 schema fields changed
    • addedInput schema / properties / attributes / additionalProperties
      Added value: +{
      +  "oneOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "boolean"
      +    }
      +  ]
      +}
    • addedInput schema / properties / image_url / format
      Added value: +"uri"
    • addedInput schema / properties / image_url / maxLength
      Added value: +2000
    • changedInput schema / properties / image_url / type
      Previous value: -"object"New value: +"string"
    • addedInput schema / properties / images / items / format
      Added value: +"uri"
    • addedInput schema / properties / images / items / maxLength
      Added value: +2000
    • changedInput schema / properties / images / items / type
      Previous value: -"object"New value: +"string"
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so safety is covered; the description adds real value by disclosing that batch mode treats attributes as a replace rather than a merge. It stops short of describing what a batch failure does to unaffected items or what the call returns.

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 compact sentences: the capability and batch limit come first, then replace semantics, then a short concrete example. Nothing is padded, though the example adds modest value over the schema it restates.

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

Completeness3/5

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

For a 15-parameter mutation tool with no output schema, the definition covers batch scope and attribute semantics but omits whether unspecified fields are left untouched, how partial failures across a 20-item batch are reported, and what the response contains.

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 every parameter already carries its own description and the baseline is 3. The worked example (id, status, notes) shows a valid shape, and the attributes replace-vs-merge note adds nuance, but neither clarifies fields whose semantics are easy to confuse, such as target_price vs. the update_price sibling.

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?

Names a specific verb and resource ("Edit fields on one item") and states the cardinality (one vs. up to 20). It implicitly separates itself from sibling tools like update_collection by operating on items, but never addresses the overlap with update_price even though target_price is a parameter here.

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 one-vs-batch condition is implied by the description, but there is no guidance on when to prefer a sibling (update_price for price changes, update_collection for collection metadata) and no mention of prerequisites such as the item needing to exist or how to undo an edit.

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