Skip to main content
Glama

Book Search

search_books

図書館の蔵書を検索します。書名、著者名、出版者、NDC分類などで検索できます。登録した学校図書館のシステムID(Negima_GK_{数字})も公共図書館と混ぜて指定できます。

このAPIキーで検索できる図書館(systemids に指定する値):

  • Gifu_Nakatsugawa: 中津川市 systemids を省略すると上の全館を検索します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ndcNoNDC[前方一致]
freeNoフリーワード
isbnNoISBN(10桁、13桁どちらでもよい)
limitNo取得件数。省略時は20、0を指定すると全件取得
titleNo書名
authorNo著者
offsetNo取得開始位置(0始まり)。省略時は0
year_endNo出版年[終了]。西暦4桁の整数で指定(例: 2024)。year_start以上の値にすること
publisherNo出版者
systemidsNo図書館システムID(例: ['Tokyo_Chiyoda', 'Tokyo_Bunkyo'])最大15個。登録した学校図書館の Negima_GK_{数字} も混ぜて指定できる
year_startNo出版年[開始]。西暦4桁の整数で指定(例: 2020)。year_end以下の値にすること

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
booksYes
countNo統合後のヒット件数
errorsNo検索エラーが発生したシステムID
noticeNo利用者に伝える案内(APIキーの期限や今月の残り回数)
reasonNo失敗時の理由
successNo成功したか
count_detailsNoシステムごとのヒット件数 {システムID: 件数}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false; the description adds operational scope not in the schema, notably the API-key library list and the default behavior when systemids is omitted ('searches all libraries'). readOnlyHint=false is the schema default and does not assert mutation, so it is consistent with a search operation. It does not, however, describe result format, pagination interaction between limit/offset, 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?

Purpose is front-loaded in the first sentence, and the remaining lines are short and purposeful (scope note plus library list). The bulleted list is a slight structural cost but it earns its place by defining valid systemids values.

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 values need not be explained, and all 11 parameters are covered by the schema. The description supplies the missing operational context (which libraries are reachable and the systemids default), leaving only minor gaps such as pagination semantics.

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 every one of the 11 parameters is already documented, giving a baseline of 3. The description restates a few of those fields (title, author, publisher, NDC, systemids) but adds no syntax or format detail beyond the schema, so it does not raise the score.

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 gives a specific verb+resource ('図書館の蔵書を検索します' — searches the library collection) and enumerates the searchable fields (title, author, publisher, NDC). It implicitly distinguishes itself from search_libraries (which finds libraries) by focusing on holdings, but it never names or contrasts with a sibling tool explicitly.

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?

It supplies real usage guidance for the systemids parameter — the valid values, the ability to mix in school libraries, and that omitting it searches all libraries. However, it offers no explicit when-to-use-this-vs-alternatives guidance against get_ndc_info or search_libraries, so selection is left to inference.

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