Skip to main content
Glama

yuque_web_delete_doc

Deletes a Yuque document by moving it to the recycle bin using cookie-based web API, with a required 'DELETE' confirmation to prevent accidental removal. Use it when token-based deletion is rate-limited or expired.

Instructions

Cookie-based: Delete a document (moves to recycle bin). DELETE /api/docs/{id}?book_id={book_id}. No membership required, alternative to v2 delete_doc when Token is rate-limited/expired. ⚠️ Requires confirm='DELETE'. 详见 references/api/web_doc_api.md

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>",
      "book_id": "<book_id>",
      "confirm": "<confirm>"
    },
    "name": "yuque_web_delete_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocument ID (numeric, required)
rawNoReturn raw full JSON (default false, returns trimmed fields)
book_idYesRepository ID (numeric, required)
confirmYesConfirmation token. Must be set to the exact string 'DELETE' to proceed. This is a safety guard against accidental deletion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description must carry the safety profile and it largely does: authentication mode (cookie-based), irreversibility scope (moves to recycle bin, not permanent), permission precondition (no membership required), and the mandatory confirm='DELETE' guard. What remains undisclosed is the response shape and any rate-limit behavior of the cookie path.

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?

Front-loaded with the action and the soft-delete consequence, then auth mode, then the confirm warning. Dense and largely waste-free, though the trailing doc-file reference and the duplicated confirm warning add a little redundancy against the schema.

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 4-parameter destructive tool with no annotations and no output schema, the definition covers the essentials an agent needs: auth method, recoverability, permission requirement, sibling fallback, and the confirmation gate. Only the post-call return behavior is left unstated.

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 id, book_id, raw, and the confirm token are already fully documented in the schema. The description only reinforces confirm='DELETE' and shows book_id as a query-string parameter, adding minimal meaning beyond structured data. Baseline 3 applies.

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?

"Delete a document (moves to recycle bin)" gives a specific verb and resource, and immediately qualifies the operation as a soft delete. It also names the sibling it mirrors (v2 delete_doc) and the underlying endpoint, so an agent can distinguish it from yuque_delete_doc without opening either 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?

Explicitly states when this is the right choice: "alternative to v2 delete_doc when Token is rate-limited/expired", plus the "No membership required" condition that makes cookie auth viable. It does not state the inverse rule (prefer the v2 tool when a valid token exists), so it stops short of a full when/when-not matrix.

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