Skip to main content
Glama

ndl-mcp

MCP-сервер для поиска по 国立国会図書館サーチ (NDL Search), управляемый National Diet Library of Japan, через интерфейс SRU searchRetrieve.

Третий в серии вместе с cinii-mcp и jstage-mcp, разделяющий их конверт ответа: введённый запрос и письменность, режим сопоставления, ступенчатый охват, matched_in для каждого элемента, типизированная диагностика, журналируемая квитанция, атрибуция.

Перед запуском

Никаких учётных данных не требуется. Поисковые API NDL открыты. Никакого API-ключа, никакого идентификатора приложения, никакого токена, ничего, что нужно вставлять в конфигурационный файл. Если вы ждёте, что что-то придёт, прежде чем вы сможете этим воспользоваться, вы ждёте того, что не придёт.

Обязательство всё же есть. Раздел 17 документа APIのご利用について просит постоянных пользователей API сообщить свои контактные данные и характер использования через форму заявки — 「事前の利用申請の要否にかかわらず」, то есть независимо от того, требуется ли предварительная заявка на использование. Формальная 利用申請 требуется только для использования, приносящего доход; уведомление запрашивается у всех, кто обращается к API на постоянной основе.

Поскольку доступ не зависит от подачи уведомления, ничто в мире не помешает вам его пропустить. Поэтому install.ps1 останавливает вас: он отказывается регистрировать сервер, пока уведомление не будет зафиксировано, и записывает дату в NDL-API-NOTIFICATION.txt.

.\install.ps1 -NotificationFiled 2026-08-19

Запустите его без флага — и он выведет URL формы, предложит открыть её и завершится.

Related MCP server: jp-lit-mcp

Чего сервер делать не будет

Перечисленные ниже обязательства были заявлены в NDL. Они реализованы, а не декларируются как намерения, и смоук-тест установщика проверяет первые три:

Обязательство

Реализация

Последовательные запросы; без параллельного доступа

_rate_lock удерживается и во время ожидания, и во время запроса

Минимальный интервал в одну секунду

MIN_REQUEST_INTERVAL = 1.0

Ограничение количества записей на поиск; без массового получения

MAX_RECORDS = 100, пятая часть от собственных 500 NDL; без автоматической пагинации

Интерфейс сбора данных не используется

OAI-PMH не реализован

Атрибуция в каждом ответе

ATTRIBUTION плюс provider_credit() в каждом конверте ответа

Метаданные отображаются, а не накапливаются

нет кэша, нет локального хранилища

Измените любое из них — и вы измените то, что было заявлено национальной библиотеке. Сначала подайте дополнительное уведомление.

Провайдеры

Доступны только пять наборов, заявленных в приложении. Все они созданы NDL и распространяются по лицензии CC BY, и ни один не требует заявки на использование:

dpid

Название

iss-ndl-opac

国立国会図書館蔵書

iss-ndl-opacnational

国立国会図書館全国書誌情報

zassaku

国立国会図書館雑誌記事索引

zassaku-online

国立国会図書館雑誌記事索引オンライン資料編

ndl-dl-open

国立国会図書館デジタルコレクション(オープンデータ)

ndl-dl и ndl-dl-online — более широкая Digital Collections — отмечены △ в списке провайдеров и требуют заявки, которая не подавалась. Запрос, называющий их, отклоняется внутри процесса с диагностикой DPID_NOT_PERMITTED, а не отправляется.

Инструменты

Инструмент

Искомый набор

ndl_search_books

蔵書

ndl_search_national_bibliography

全国書誌情報

ndl_search_articles

雑誌記事索引 (оба набора)

ndl_search_digital_open

デジタルコレクション(オープンデータ)

ndl_search_all

все пять

ndl_get_record

одна запись по jpno или ndl_bib_id

Поля поиска: title, creator, publisher, subject, anywhere, ndc, isbn, issn, from_year, to_year. Они комбинируются с помощью AND; title, creator, publisher и subject сопоставляются частично, ndc — по префиксу, идентификаторы — точно.

ndl_get_record — это получение записи, поэтому в его конверте ответа нет searched_for — никакой термин не выбирался.

Две вещи, которые укусят

Прописные AND, OR или NOT внутри поискового термина заставляют NDL отклонить весь запрос. Не «ничего не возвращает» — отклоняет. Правило чувствительно к регистру, как указано в спецификации: War AND Peace перехватывается, War and Peace проходит. Сервер проверяет перед отправкой и возвращает диагностику RESERVED_WORD_IN_QUERY с указанием поля-нарушителя, а не позволяет библиотеке ответить ошибкой разбора.

NDL вводит ограничение частоты запросов, которое не раскрывает количественно, и отвечает HTTP 429. На странице помощи сказано только 「同時リクエスト数には制限を設けています」, и она отказывается публиковать цифру. При тестировании 19 августа 2026 года ответ 429 пришёл при частоте значительно ниже одного постоянного запроса в секунду — так что заявленный библиотеке минимум в одну секунду является нижней границей, а не гарантией. Ответ 429 даёт одну паузу с соблюдением Retry-After, после чего сервер останавливается, а не продолжает давить. Он сообщает RATE_LIMITED, намеренно отличая это от API_ERROR, потому что для читателя эти два случая значат разное: поиск, ограниченный по частоте, имеет неизвестный результат, а не пустой, и его нельзя оформлять как отсутствие результатов.

Романизированный термин даст неполные результаты. NDL Search индексирует записи на японском языке в японской письменности. Запрос латиницей по японскому корпусу — это ловушка ромадзи, и конверт ответа поднимает для него SCRIPT_LATIN_QUERY. Заголовок searched_for существует для того, чтобы термин, который ассистент действительно выбрал, был виден в верхней части ответа, а не погребён, — в этом весь смысл поля, и именно поэтому раскрытие может сообщать термины, использованные в поиске.

Квитанции

mediation.emit() записывает каждый конверт ответа в журнал с добавлением только в конец и хэш-связыванием, расположенный по пути MCP_RECEIPT_LOG, который install.ps1 устанавливает на тот же файл, что используют другие серверы. Если переменная не задана, ничего не записывается и ничего не падает.

Обратите внимание, что хранит реестр, а что нет: запрос, нормализованный термин, отправленные параметры, временную метку, SHA-256 по запросу и параметрам, а также идентификаторы возвращённых записей. Он не хранит сами библиографические записи. Журналирование запроса — это не накопление базы данных, и обязательство против накопления не нарушается хранением квитанции, — но это различие стоит проговорить, а не предполагать, потому что со стороны они выглядят похоже.

Почему только SRU

В заявке указаны SRU и OpenSearch. Этот сервер реализует только SRU, что меньше заявленного и поэтому безопасно — всегда можно использовать меньше, чем вы сказали библиотеке, что будете.

Причина — доказательность. Формат ответа OpenSearch не задокументирован в спецификации 第1.4版: нет таблицы элементов, нет примера, а приложения охватывают только SRU и OAI-PMH. Хуже того, спецификация утверждает, что ошибочный параметр возвращает ответ с нулевым результатом, а не ошибку — 「引数(パラメータ)誤りの場合には検索結果ゼロ件となる」 — так что опечатка в имени поля неотличима от подлинного отсутствия результатов. Для инструмента, цель которого — дать историку возможность доверять тому, что ничего не найдено, это дисквалифицирующий недостаток. SRU возвращает типизированную диагностику и документированную схему записей DC-NDL. Добавление OpenSearch позже не требует нового уведомления; оно требует документированного формата ответа.

Источники

Лицензия

MIT. Метаданные, полученные через этот сервер, распространяются по лицензии CC BY 4.0 от National Diet Library; строка атрибуции, которую выдаёт сервер, — это указание авторства, требуемое этой лицензией, и она должна сохраняться во всём, что вы публикуете на основе результатов.

Что проверено, а что нет

Проверено на живом API 19 августа 2026 года:

  • Поиск на японской письменности по 蔵書 и 雑誌記事索引 — правильные итоги, правильные записи, правильные годы и идентификаторы.

  • Разбор DC-NDL, включая фильтр заглушек проявлений. NDL возвращает два элемента BibResource на запись; приём обоих удваивал набор результатов с пустыми местами, пока не был добавлен фильтр.

  • searched_for сообщает выбранный термин, а не собранный CQL, поэтому его определение письменности осмысленно; точный CQL переносится в query.params и фиксируется хэшем квитанции.

  • Защита DPID_NOT_PERMITTED: запрос с именем ndl-dl отклоняется внутри процесса.

  • RESERVED_WORD_IN_QUERY: War AND Peace перехвачен, War and Peace прошёл.

  • Ограничитель частоты — непроизвольно; см. HTTP 429 выше.

Не проверено на живом API, а прочитано, а не запущено: сквозная передача «Record does not exist», ndl_get_record и путь отката. Тестирование остановилось на 429, а не продолжилось, потому что выяснение нераскрытого ограничения частоты путём зондирования — это именно то 継続して大量のアクセス, о котором предупреждают условия, и смысл этого сервера не в том, чтобы быть тем, что National Diet Library придётся блокировать. Проверяйте эти пути в обычном использовании, по одному запросу за раз.

Available Tools

6 tools
ndl_get_recordA
Read-onlyIdempotent

Retrieve a single record by NDL bibliographic ID or 全国書誌番号 (JP number).

A fetch, not a search: the envelope omits searched_for because no term was chosen. Exactly one identifier is required.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral detail beyond annotations by explaining that the envelope omits 'searched_for' because no search term is chosen, which gives the agent insight into the response format.

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 sentences convey the purpose and the key operational distinction. The description is front-loaded with the primary action, and every sentence adds relevant information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-record fetch tool, the description is complete: it covers the identifier requirement, the fetch-vs-search distinction, and a response envelope nuance. The output schema and annotations handle return format and safety, so nothing essential is missing for the agent to invoke this tool correctly.

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

Parameters4/5

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

With schema description coverage reported at 0%, the description partially compensates by naming both accepted identifier types: NDL bibliographic ID and 全国書誌番号. It also adds the critical constraint that exactly one identifier is required, which is not enforced by the schema (both params are individually optional). However, it does not elaborate on identifier format or which identifier should be preferred when both are known.

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 uses a specific verb and resource: 'Retrieve a single record by NDL bibliographic ID or 全国書誌番号 (JP number).' It further distinguishes itself from the search sibling tools by explicitly stating 'A fetch, not a search,' so an agent can clearly tell it apart.

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 description gives clear context: this tool is for fetching by a known identifier, not for searching. It also provides a key usage requirement, 'Exactly one identifier is required,' which helps the agent avoid invalid calls. It does not explicitly name alternative tools, but since all siblings are search tools, the contrast is sufficient.

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

ndl_search_allA
Read-onlyIdempotent

Search all five declared provider sets at once.

Use when the material type is unknown. For a bibliographic check, the narrower tools return a cleaner set.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive behavior, so the description doesn't need to restate safety. It adds the useful behavioral context that one call hits all five provider sets at once. It doesn't disclose behaviors like result merging, duplication, or pagination, but with strong annotations and an output schema this is acceptable.

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 sentences with no filler: the core action is front-loaded, and the usage guidance follows immediately. Every sentence carries meaning.

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 an aggregate search tool with read-only annotations, rich nested parameter descriptions, and an output schema, the description covers the key decision (when to use all vs. narrower). It would be slightly stronger if it named the five provider sets or the narrower sibling tool names, but the sibling list and schema supply that context.

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

Parameters2/5

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

The description says nothing about parameters. Reported schema description coverage is 0% at the top level, and the description does not compensate by explaining search fields or constraints. The nested schema does contain useful per-field descriptions (ndc, isbn, title, year, etc.), which prevents this from being a 1.

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 opens with a specific verb and resource: 'Search all five declared provider sets at once.' This distinguishes it from the narrower sibling search tools by scope (all sets vs. one set), so an agent can tell it apart from ndl_search_books, ndl_search_articles, etc. without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit use condition — 'Use when the material type is unknown' — and an explicit alternative condition: 'For a bibliographic check, the narrower tools return a cleaner set.' The alternative names aren't listed verbatim, but the sibling list makes them identifiable.

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

ndl_search_articlesA
Read-onlyIdempotent

Search 国立国会図書館雑誌記事索引, including the online-materials set.

The index covers Japanese periodical articles, including many not in CiNii or J-STAGE. It indexes articles, not their full text.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark the tool as readOnly, idempotent, and non-destructive. The description adds useful behavioral context: it includes the online-materials set, covers articles often missing from CiNii/J-STAGE, and explicitly does not provide full text. No contradiction with annotations.

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, purposeful sentences with no filler. The action and resource are front-loaded, followed by scope and a clear limitation. Every sentence earns its place.

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 search tool with a rich schema and an output schema, the description adequately explains what is searched, the coverage scope, and the key limitation (no full text). It could be more explicit about sibling routing, but overall it is complete enough for 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?

The tool description itself does not describe any parameters, but the nested SearchInput schema gives detailed descriptions for each field (e.g., partial match, date formats, bounds). The description adds no extra parameter meaning, and the structured schema already carries the burden.

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 opens with a specific verb and resource: 'Search 国立国会図書館雑誌記事索引', then clarifies that it covers Japanese periodical articles and indexes articles, not full text. This makes it easy to distinguish from sibling tools like ndl_search_books or ndl_search_national_bibliography.

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?

It gives clear context on when this tool is relevant: for Japanese periodical article records, including coverage beyond CiNii and J-STAGE. It does not explicitly name sibling tools or state when not to use them, but the scope is clear enough for an agent to route correctly.

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

ndl_search_booksA
Read-onlyIdempotent

Search 国立国会図書館蔵書 for books and monographs.

Fields are combined with AND; title, creator, publisher and subject match partially. Returns the unified response envelope. Records are displayed, not stored.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already mark the tool read-only and idempotent, and the description adds meaningful behavioral detail: fields are combined with AND, title/creator/publisher/subject match partially, it returns the unified response envelope, and records are displayed but not stored. This clearly communicates side effects and result shaping, and it does not contradict any annotation.

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 terse sentences: the first states purpose, the second states matching behavior, the third states output and side-effect semantics. No filler words, no repetition of schema details, and the most important information is front-loaded.

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?

The description, together with a rich input schema and an output schema, gives an agent enough to invoke the tool correctly: scope, query combination semantics, return envelope, and non-storage behavior. It falls short only in not explicitly routing the agent away from sibling search tools or mentioning pagination parameters, though those are documented in the schema.

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?

The description names a few parameters (title, creator, publisher, subject) and notes they match partially, but the input schema already documents each field with equivalent or richer descriptions. The main addition beyond the schema is 'fields are combined with AND', which is useful but modest. Given the schema descriptions are strong, baseline 3 is appropriate.

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 states a specific action ('Search'), a concrete resource ('国立国会図書館蔵書'), and a clear scope ('books and monographs'). This distinguishes it from sibling tools like ndl_search_articles or ndl_search_digital_open without needing to inspect their schemas.

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 implies this tool is for searching books and monographs rather than articles or digital collections, but it never explicitly names alternatives or says when to prefer this tool over sibling searches. It does provide practical query semantics (AND combination, partial matching), but not exclusion guidance.

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

ndl_search_digital_openB
Read-onlyIdempotent

Search 国立国会図書館デジタルコレクション(オープンデータ).

The open-data set only. The wider Digital Collections (ndl-dl, ndl-dl-online) are marked ○ for 非営利 use and so need no usage application, but they were outside the set this server declares and their metadata carries no open licence — displayable, not redistributable. Adding them is a documentation change here, not an application to the library.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already provide readOnlyHint, idempotentHint, and destructiveHintfalse, so the safety profile is covered. The description adds value by clarifying the data set scope and licensing: only open-data records are included, and the wider collections are 'displayable, not redistributable'. This is useful behavioral context about what the tool can return, though it does not describe response format or 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?

The description is compact and well-structured: a one-line purpose statement in Japanese, then a concise English explanation of the key scope constraint and licensing nuance. It front-loads the main action and does not waste words, though the language mix is slightly awkward for an English-first agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema and annotations cover read-only/idempotent behavior, the description’s main job is scoping and usage guidance. It handles scoping well and adds useful licence context, but it leaves out any explicit guidance on when to choose this over siblings like ndl_search_books or ndl_search_all, and it does not mention pagination or result count controls (though those are in the schema). Overall it is adequate but not thorough.

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

Parameters2/5

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

The tool description contains no parameter information. Context signals report 0% schema description coverage, so the description must compensate but does not. The nested schema fields have some descriptions, but the top-level 'params' parameter is undocumented in the description, leaving an agent to delve into the $ref to construct a query. The description's licence discussion gives no help with the many search fields.

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 clear verb and resource: 'Search 国立国会図書館デジタルコレクション(オープンデータ)', reinforced by the annotation title 'Search NDL Digital Collections (Open Data)'. It distinguishes from the wider Digital Collections by explicitly saying 'The open-data set only', so an agent can tell this tool is scoped to the open subset. It does not name sibling search tools, but the scoping qualifier differentiates enough.

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 context about when to use this tool: it searches only the open-data set, and the wider collections are explicitly excluded. It does not name alternative tools or say 'use X for the wider collections', but the scope limitation clearly implies this tool is for open data. The licence discussion adds context about the data set, but no explicit when-not-to-use or alternative routing.

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

ndl_search_national_bibliographyA
Read-onlyIdempotent

Search 国立国会図書館全国書誌情報.

The national bibliography is the authority for Japanese imprint data — use it when a publication date, publisher or edition statement has to be right rather than merely plausible.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempoentHint=true, openWorldHint=true, and destructiveHint=false, covering safety and side-effect profile. The description adds only the data-quality trait (authority of imprint data), which is contextual but not a behavioral disclosure such as result ordering, matching semantics, or limits. It adds some value beyond annotations but does not carry new behavioral information.

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 sentences, zero redundancy. The resource and action are front-loaded, and the second sentence earns its place by explaining why this tool exists and when it matters.

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, every parameter is documented in the schema, and annotations cover the operational profile, so the description need not explain return values or side effects. What it adds — the authority positioning and the when-to-use rule — completes the picture for correct selection. A brief note distinguishing it from ndl_search_books or ndl_search_all would make it complete, hence not a 5.

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

Parameters2/5

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

Schema description coverage is 0% — the tool description contributes nothing about the 12 parameters, though the schema itself documents each property well. The phrase "publication date, publisher or edition statement" faintly hints at which search fields matter, but that is indirect and does not compensate for the coverage gap.

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 states a specific verb and resource — "Search 国立国会図書館全国書誌情報" — and then sharpens the scope by positioning this as the authoritative source for Japanese imprint data. The "authority" framing distinguishes it from sibling search tools without ambiguity: this is the tool to trust for dates, publishers, and edition statements.

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 description gives clear when-to-use guidance: choose this tool when a publication date, publisher, or edition statement must be authoritative rather than merely plausible. It stops short of naming alternative siblings or stating when NOT to use it, so a score of 5 would overstate its completeness.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 6 tool updatesv1.1.0
    • First observedndl_get_record
    • First observedndl_search_all
    • First observedndl_search_articles
    • First observedndl_search_books
    • First observedndl_search_digital_open
    • First observedndl_search_national_bibliography

TDQS

A3.9/5.0

Scored across 6 tools

Disambiguation4/5

Each search tool targets a distinct NDL dataset or scope, and get_record is clearly separate as an ID-based fetch. The main ambiguity is between ndl_search_books and ndl_search_national_bibliography, since both can return book-like records, though their descriptions clarify holdings vs. authority data.

Naming Consistency5/5

All tool names follow a predictable ndl_<action>_<scope> pattern: get_record and search_* for the rest. This makes the set easy to navigate and avoids stylistic mixing.

Tool Count5/5

Six tools is well-scoped for the server's purpose: one record retrieval tool and five search tools covering separate NDL data sources plus a combined search. No tool feels redundant or out of place.

Completeness4/5

The set covers the main NDL search surfaces and record retrieval by ID, which supports core bibliographic workflows. The main minor gap is that only the open Digital Collections subset is exposed, while wider digital collection content is not covered by a dedicated tool.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    MCP server for searching Japanese Diet bills and committee Q\&A records via the NDL Kokkai API.
    4
    63 npm
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    An MCP server for Japanese literature research that provides unified search across NDL, CiNii, J-STAGE, and other Japanese academic databases, with Skills to assist in search planning and result evaluation.
    30
    1,097 npm
    7
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    MCP server for searching Japanese government procurement notices via the Kanpou API. Enables LLMs to search by date, keyword, or detailed criteria.
    3
    1
    -