Skip to main content
Glama

update_library_item

Edit a library document (title, category, link, audience). Replaces the definition: fetch it with list_library_items and change only what's needed. A file document keeps its file when no fileKey is sent. (confirm-gated: previews until confirm: true)

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>",
      "input": "<input>"
    },
    "name": "update_library_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
inputYes
confirmNoMust be true to actually execute. If false/omitted, returns a preview only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries most of the burden and does well: it discloses replace semantics ("Replaces the definition"), file retention when fileKey is omitted, and the confirm-gate that returns a preview until confirm: true. It does not cover permissions or what a successful response contains, keeping it below 5.

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?

Four tight sentences, front-loaded with the purpose and field list, followed by the workflow and the two behavioral caveats. The trailing parenthetical is slightly clunky but is short and carries real information.

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 mutation tool with a nested audience object and no output schema, the description covers the critical unknowns: full-replacement risk, file retention, and the two-phase preview/confirm flow. Missing only edge details such as id validation or what the preview returns, which is a modest gap.

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 only 33%, so the description should compensate more. It names four of the editable fields and adds one real insight (absent fileKey preserves the existing file), but leaves id, title constraints, fileName/mimeType, and the nested audience object's meaning (all vs clientIds vs planIds) to the schema.

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?

States a specific verb and resource ("Edit a library document") and enumerates the editable surface (title, category, link, audience), which separates it from create_library_item and delete_library_item without naming them. It does not explicitly name the mutating siblings, but the verb alone disambiguates.

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?

Prescribes a concrete workflow: fetch the current record with list_library_items, then change only what's needed. That is a genuine when/how-to-use instruction. It stops short of stating when-not to use it (e.g. create vs delete boundaries), so it is not a full 5.

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.