Skip to main content
Glama

搜索图书

search_books

按书名、作者、ISBN 或关键词搜索中文图书。返回书名、作者、出版社、豆瓣评分、出版日期、格式及详情页链接。可用 tag 按分类过滤(分类列表见 list_book_tags)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNo分类过滤,如 计算机、文学、历史(可选值见 list_book_tags)
pageNo页码,默认 1
countNo返回数量,默认 10,最大 20
queryYes搜索关键词:书名、作者名或 ISBN(10/13 位)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden and does disclose the read-only search behavior plus the exact return fields (title, author, publisher, Douban rating, publication date, format, detail link). It does not mention ordering, no-result behavior, or pagination semantics beyond what the schema already provides, which keeps it from a 5.

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 front-load the search criteria, then specify return fields and filtering. Every sentence carries useful information with no filler or redundancy.

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 tool with four simple parameters and no output schema, the description covers what to pass, what comes back, and how to obtain valid tag values via list_book_tags. Minor gaps such as result ordering and no-result handling do not block correct invocation.

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 the baseline is 3. The description restates the query semantics and mentions tag filtering, but it adds little meaning beyond the parameter descriptions already present in the schema.

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 names a concrete action ('search') applied to a specific resource ('Chinese books') and enumerates the search keys (title, author, ISBN, keyword). It is clearly distinct from siblings such as get_book_detail or list_book_tags.

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 description gives clear context for when to use this tool and points to list_book_tags for valid tag values. However, it does not explicitly state when to prefer search_books over get_book_detail or other alternatives, nor does it give exclusion criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources