Skip to main content
Glama

yuque_delete_book_stack

Permanently deletes a Yuque knowledge base group (book stack) only after confirm='DELETE'; empty the group first because deletion cannot be undone.

Instructions

删除知识库分组(书架)。⚠️ 不可恢复!需传 confirm='DELETE' 二次确认。DELETE /api/book_stacks/{stack_id}。分组内须先清空知识库。

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": {
      "stack_id": "<stack_id>",
      "confirm": "<confirm>"
    },
    "name": "yuque_delete_book_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYes危险操作二次确认,必须传 'DELETE'
stack_idYes要删除的分组 ID(书架 ID,必填)。number 或数字字符串都接受

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.0.1
    • addedInput schema / properties / stack_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • changedInput schema / properties / stack_id / description
      Previous value: -"要删除的分组 ID(书架 ID,必填)"New value: +"要删除的分组 ID(书架 ID,必填)。number 或数字字符串都接受"
    • removedInput schema / properties / stack_id / type
      Removed value: -"number"
  2. Addedv4.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it flags irreversibility (⚠️ 不可恢复), names the two-step confirmation gate, exposes the REST endpoint, and states the emptying precondition. It stops short of permission/auth requirements or what the API returns on success or failure, which are the remaining behavioral unknowns for an unannotated mutation.

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

Conciseness5/5

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

Five short clauses, each earning its place: identity, danger warning, confirmation requirement, endpoint, and precondition. The warning is front-loaded right after the resource name, so an agent skimming cannot miss the risk.

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 two-parameter destructive tool with no annotations and no output schema, the definition covers what an agent needs to act safely: it is irreversible, it needs a literal confirm token, and the container must be empty. Missing are auth/permission expectations and error behavior, the main residual 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 100% and both parameters already document their types and the literal 'DELETE' value, so the description adds little new meaning. Restating confirm='DELETE' is reinforcement rather than added semantics, which is the baseline 3 case where the schema does the heavy lifting.

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?

The description states a specific verb and resource: deleting a knowledge-base book stack (书架), and even names the underlying endpoint DELETE /api/book_stacks/{stack_id}. Against siblings like yuque_create_book_stack, yuque_rename_book_stack, and yuque_sort_book_stack, an agent can immediately tell this is the destructive member of the set.

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?

It gives a concrete precondition for use — the group's knowledge bases must be emptied first — plus the mandatory confirm='DELETE' gate, which tells the agent the call sequence. What it does not do is point at an alternative (e.g. yuque_update_book_stack or yuque_delete_repo for related cleanup), so the routing guidance is contextual rather than complete.

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