Skip to main content
Glama

Withdraw a library item

withdraw_library_item

Withdraw a library submission before review to return it to draft, or remove a published item from the library while copies others made remain theirs.

Instructions

Take back your library submission before review, or take your published item out of the library.

Withdraw. Take back your submission before it is reviewed (it is a draft again), or take your published item out of the library (copies people 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>"
    },
    "name": "withdraw_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.
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
Behavior3/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description adds real value by disclosing outcomes: the item becomes a draft again, or copies made by others remain theirs. However it omits the confirmation_required gating that the confirm/idempotencyKey parameters imply, and doesn't say whether withdrawal is reversible for published items.

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?

The description is short and front-loaded with the two-mode outcome up front. The standalone 'Withdraw.' fragment and the restatement of the title sentence are redundant, but the waste is minor.

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 three-parameter mutation with no output schema, the description covers the state outcomes but not the confirmation handshake the caller must complete nor what happens to comments, stats, or review history on the withdrawn item. It is adequate but leaves gaps an agent may hit at call time.

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 description coverage is 100%, so itemId, confirm, and idempotencyKey are already fully documented in the schema, including the confirmation_required provenance. The description adds no additional parameter meaning, 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?

The description states a specific verb (withdraw) and resource (library item) and distinguishes two internal modes: pre-review submission (returns to draft) and published item removal. It falls short of a 5 because it does not differentiate from the closely named sibling unpublish_library_item or discard_library_draft, leaving overlap for an agent to resolve by inference.

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?

Usage is implied by state: use it before review to pull a submission back to draft, or when a published item should leave the library. There is no explicit when-not or named alternative, so an agent comparing this to unpublish_library_item or discard_library_draft gets no routing guidance.

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