Skip to main content
Glama

列出知识库

yuque_list_books
Read-only

List all knowledge bases visible to the current Yuque account, including IDs, names, document counts, and slugs. Use the returned ID as the book_id required by other tools.

Instructions

列出当前账号可见的全部知识库(含 id、名称、文档数、slug)。返回的 id 就是其他工具需要的 book_id。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yuque_list_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最多返回多少个知识库
offsetNo分页偏移

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With readOnlyHint=true and openWorldHint=true already declared, the description adds useful return-field detail (id, 名称, 文档数, slug), which matters because there is no output schema. However, claiming to return 全部 knowledge bases sits awkwardly against the limit/offset pagination in the schema (default 50, max 100), which could mislead an agent into thinking one call returns everything.

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?

Two short sentences, zero filler, with the core purpose front-loaded and the practical payoff (book_id) placed second. Nothing is wasted.

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?

No output schema exists, so the description carrying the return-field list is genuinely necessary and it delivers. The only gap is the unaddressed tension between '全部' and the paginated schema, which an agent may need to resolve on its own.

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 limit and offset are already fully documented at the parameter level. The description adds no pagination syntax or default-behavior detail beyond what the schema provides, so the baseline of 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 and resource (列出知识库) plus scope (当前账号可见), and lists the return fields (id, 名称, 文档数, slug). It is unambiguous and does not overlap with the doc-level siblings, though it never explicitly distinguishes itself from them.

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?

The second sentence gives real routing guidance: call this to obtain the book_id that other tools require. It tells the agent where this tool fits in a workflow, but offers no explicit when-not or exclusion guidance.

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