Skip to main content
Glama

Discard a library draft

discard_library_draft
Destructive

Delete your own draft library item that was never submitted or was withdrawn, while preserving its builder slate.

Instructions

Delete one of your own draft library items.

Discard a draft. Delete your own draft library item (never submitted, or withdrawn). Its builder slate stays.

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": "discard_library_draft"
  }
}

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

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely non-obvious behavior: ownership scoping ('your own') and the fact that 'Its builder slate stays' — i.e. only the draft library entry is removed, not the underlying builder content. It stops short of saying whether a confirmation round-trip is required, which the schema hints at but the description never explains.

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?

Short and front-loaded, with the destructive action stated first and the scope qualifier immediately after. It is mildly redundant, restating the same operation three times ('Delete one of your own draft library items', 'Discard a draft', 'Delete your own draft library item'), but no sentence introduces noise or ambiguity.

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 destructive, no-output-schema tool, the description covers the essentials: what is deleted, whose it must be, and what survives ('builder slate stays'). The one gap is the confirmation protocol — that the call may first return confirmation_required and must be replayed with confirm/idempotencyKey — which only the schema hints at.

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 documented in the schema. The description adds no meaning about the confirmation flow or idempotency semantics beyond what the schema states, 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 ('Delete one of your own draft library items') and scopes 'draft' precisely as 'never submitted, or withdrawn', which separates it from acting on published items. It does not name the sibling that handles submitted/withdrawn items (e.g. withdraw_library_item), so sibling differentiation is implied rather than explicit.

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 word 'draft' plus the parenthetical constrains usage to unpublished items, so the when-to-use is inferable. There is no explicit when-not clause and no named alternative for deleting or withdrawing a submitted item, leaving the agent to infer routing from sibling names alone.

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