Skip to main content
Glama

Unpublish

unpublish_library_item
Destructive

Take a published library item out of circulation as an administrator, requiring a message the author will read. Existing copies people already made remain theirs.

Instructions

For administrators: take a published item out of the library, with a message the author reads.

Unpublish. For administrators: take a published item out of the library, with a message saying why. Copies people already made stay theirs.

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": {
      "itemId": "<itemId>",
      "message": "<message>"
    },
    "name": "unpublish_library_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesThe item: its id or its slug (library.list items[].id or .slug).
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
messageYesWhy: the author reads it.
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description adds genuinely new behavior: the message is read by the author, and 'copies people already made stay theirs' clarifies that the removal is not retroactive — a non-obvious consequence of a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text appears duplicated: 'For administrators: take a published item out of the library, with a message the author reads' is repeated almost verbatim as 'For administrators: take a published item out of the library, with a message saying why', with the bare word 'Unpublish' wedged between. Roughly half the description is redundant, though the trailing clause about existing copies is valuable.

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 destructive, four-parameter administration tool the description covers who may call it and the effect on already-made copies, which is the most important unknown. It omits the two-step confirmation flow implied by confirm/idempotencyKey and gives no indication of the return value, leaving the agent to infer the workflow from the schema alone.

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 (itemId, message, confirm, idempotencyKey) is already documented in the schema, including that message is 'why: the author reads it'. The description restates the message purpose but adds no syntax or workflow detail beyond the schema, so the baseline 3 applies.

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 ('take a published item out of the library') plus the audience constraint ('For administrators'). It does not name which sibling handles near-neighbor cases such as withdraw_library_item or discard_library_draft, so differentiation is left to the agent.

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 admin precondition and the requirement of an explanatory message give implied context for when this tool applies. There is no explicit 'use this instead of X' routing, and no mention of the confirmation step that the schema's confirm/idempotencyKey parameters imply.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools