Skip to main content
Glama

yuque_rename_book_stack

Renames a Yuque knowledge base book stack via stack ID and new name; requires cookie and ctoken authentication to update the grouping label.

Instructions

重命名知识库分组(书架)。需要 cookie+ctoken 认证。PUT /api/book_stacks/{stack_id},body {name, type:'user_books'}。

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>",
      "name": "<name>"
    },
    "name": "yuque_rename_book_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes新名称(必填)
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

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real context — a required cookie+ctoken auth pair, the exact endpoint `PUT /api/book_stacks/{stack_id}`, and the constant `type:'user_books'` in the body — but says nothing about failure modes, name-collision behavior, permissions, or whether the operation is idempotent.

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?

Three short clauses, purpose front-loaded, followed by auth and endpoint details in decreasing order of importance. No filler sentences and nothing repeated.

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 mutation with no output schema and full schema coverage, the description covers purpose, auth, endpoint, and payload shape, which is close to sufficient. It only lacks notes on error/conflict behavior when the new name already exists.

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 both parameters are already documented and the baseline is 3. The description only adds that `stack_id` maps into the URL path and that the body must also carry `type:'user_books'`, marginal but non-trivial meaning beyond the schema.

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 opens with a specific verb+resource: "重命名知识库分组(书架)" — renaming a knowledge-base group/book stack — which is unambiguous on its own. It does not, however, distinguish itself from the sibling `yuque_update_book_stack`, which an agent could plausibly confuse with it.

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 only implied by the verb 'rename'; there is no statement about when to choose this over `yuque_update_book_stack` or `yuque_create_book_stack`, nor any precondition beyond the auth note. An agent can infer intent but 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.