Skip to main content
Glama

Get Book Detail

get_book_detail

Fetch complete details for a library book by ID, including title, author, publisher, year, ISBN, call number, and summary, with an optional city to match the search source.

Instructions

查询指定图书的完整介绍:书名、作者、出版社、出版年、ISBN、索书号、内容简介。

上海数据源没有独立简介区块,内容简介取自书目"附注"字段,可能带有 "新版本册内容:"之类的原生前缀。

参数: book_id:search_books 返回的图书 ID,需与 search_books 使用同一 city city:城市标识,默认 "shanghai"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoshanghai
book_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
isbnYes
titleYes
authorYes
book_idYes
summaryYes
publisherYes
call_numberYes
publish_yearYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a non-obvious data trait: the Shanghai source has no dedicated summary block, so 内容简介 is pulled from the '附注' field and may carry native prefixes. That is genuinely useful behavioral context. It does not cover permissions, error behavior, or rate limits.

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 return contents, then the data-source caveat, then the parameters – a sensible order with no filler. It is somewhat long for two parameters, but every clause adds information.

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?

An output schema exists, so return shape needn't be explained, and both parameters plus the cross-tool coupling are covered. The remaining gap is the absence of any safety/permission statement for a tool with zero annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate entirely, and it does: book_id is defined as 'the book ID returned by search_books' with a same-city coupling constraint, and city is defined with its default. Both parameters gain semantics that the bare schema lacks.

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?

States a specific verb+resource ('查询指定图书的完整介绍') and enumerates the fields returned (书名、作者、出版社、ISBN、索书号、内容简介), so the agent knows exactly what it gets. It references search_books as the ID source but never states how it differs from find_book_availability, so sibling differentiation is only partial.

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?

Gives a real prerequisite: book_id must come from search_books and must be paired with the same city used in that search, which is actionable context an agent would otherwise get wrong. It stops short of any when-not-to-use or explicit alternative routing.

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