Skip to main content
Glama

Update Item

update_item
Idempotent

Edits a saved item in place: fix its title, write notes, mark it read or archived, pin or unpin it. Only the fields you pass are changed. A title or a notes change re-indexes the item, so it shows up in search_library. Use tag_item to change the tags of an item and bulk_update to change the read state of many items.

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

Input Schema

NameRequiredDescriptionDefault
titleNoThe new title (replaces the old one).
item_idYesThe library item ID to update.
is_pinnedNoPin (true) or unpin (false) the item.
notes_modeNoWhether user_notes replaces the old notes or is appended to them.replace
read_stateNoThe new read state of the item.
user_notesNoThe notes of the item.
expected_updated_atNoOptional updated_at precondition; when set, a mismatch returns a conflict error without writing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare non-readOnly, idempotent and non-destructive. The description does add real behavioral value beyond them: partial-update semantics ("Only the fields you pass are changed") and the search re-indexing side effect of title/notes edits. It says nothing about the conflict/error path (expected_updated_at) or what a call returns, which are relevant for a mutation tool.

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?

Three sentences, each doing distinct work: capability, partial-update guarantee, side effect, then sibling routing. Front-loaded and free of restated field names or filler.

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 7-parameter mutation tool with full schema coverage and annotations covering safety and idempotency, the description supplies the missing pieces an agent needs: partial-update semantics, the re-index consequence, and drink-alternative routing. It is only slightly short on the conflict-error behavior and return shape, though the expected_updated_at schema entry partially covers the former.

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 baseline is 3; the description earns an extra point by explaining cross-parameter behavior the schema cannot express - that title and notes edits trigger re-indexing and surface the item in search_library, and that partial payloads leave other fields untouched. It still leaves notes_mode's replace/append interaction for the schema to carry.

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 ("Edits a saved item in place") and then enumerates the concrete editable aspects: title, notes, read/archived state, pin. It also names the two siblings it is not (tag_item for tags, bulk_update for multi-item read state), so the agent can discriminate it without opening any schema.

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?

Explicit routing for the two most confusable cases: tags go to tag_item, bulk read-state changes go to bulk_update. However, it offers no guidance on the single-item siblings that overlap with its own capabilities (pin_item, read_item), so an agent still has to guess whether to use update_item or those narrower tools for a one-field change.

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.