Skip to main content
Glama

jp_lit_get_record

Fetches detailed bibliographic metadata for one Japanese literature record, including official URLs and session history. Use when you need record-level details without downloading full text or images.

Instructions

external read / local bookkeeping write(非破壊)。文献レコード詳細を取得する。source=national_archives / jacar は目録メタデータと公式レコードURLを返し、画像本体・IIIF・OCR本文は取得しない。source=nijl_articles は国文学論文DBのHTMLから書誌メタデータと公式レコードURLを best-effort で返し、本文・PDF・OPAC追跡は取得しない。source=kokusho は国書DBのJSONから書誌・著作・所在・公式URL・manifest URL 等のメタデータを返し、manifest 本体・画像・OCR は取得しない。source=ninjal_bibliography は日本語研究・日本語教育文献DBのHTMLから書誌メタデータと本文リンクURLを best-effort で返し、本文自体は取得しない。source=ndl_digital では source_id の代わりにデジコレPIDを pid で指定できる。source_id と pid はどちらか一方だけを指定する。source=ndl_digital の場合、source_metadata.next_digital_library.available=true であれば jp_lit_get_text_coordinates / jp_lit_get_fulltext / jp_lit_search_pages が利用可能。false の場合は OCR 系ツールを利用できない。実務上は次世代側未収録であることが多いが、現実装ではアクセス制限等との厳密な区別はしていない。個人送信対象など、MCP から自動全文取得できなくても NDL ログインや参加館・館内端末で手動閲覧できる導線は content_access.manual_viewing を確認する。同じsourceの選別済み候補を2〜10件まとめて確認する場合は jp_lit_get_records を使う 外部sourceは変更しない。cache hitでもlocal session履歴を更新し、cache missまたはforce_refreshではlocal cacheを作成・置換する。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNo
sourceYes検索・取得・記録対象の情報源ID。jp_lit_search の結果や source plan に含まれる source を指定する。
source_idNosource 内のレコードID。jp_lit_search の items[].source_id を指定する。
session_idYes調査案件を識別する application state handle。jp_lit_start_session が返した値を渡す。形式は YYYY-MM-DD-HHMMSS-8桁hex(旧形式 YYYY-MM-DD-HHMMSS も可)。MCP transport の接続IDや cache_key とは別物。
force_refreshNotrue の場合はローカル cache を使わず upstream API から再取得する。false の場合は保存済み cache を優先する。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawYes
urlYes
cacheNo
titleYes
extentYes
sourceYes
authorsYes
summaryYes
languageYes
subjectsYes
subtitleYes
issued_atYes
publisherYes
source_idYes
identifiersYes
availabilityYes
journal_titleYes
material_typeYes
title_readingYes
content_accessYes
issued_at_labelYes
source_metadataYes
publication_placeYes
table_of_contentsYes
alternative_titlesYes
issued_at_precisionYes
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that cache hits still update local session history and that cache misses or force_refresh create or replace local cache. It also notes the local bookkeeping write is non-destructive and clarifies that no strict distinction is made between missing content and access restrictions. The description meaningfully extends annotation data without contradicting it.

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 long, but it is densely packed with source-specific behavior and cross-tool routing information. It front-loads the core purpose before enumerating source cases. The length is justified by the multi-source complexity, though it is near the upper limit of conciseness.

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?

Given the large source enum, an output schema, and sibling tools, the description is unusually complete: it covers per-source return scope, pid/source_id exclusivity, downstream tool availability, manual viewing guidance, cache behavior, and the batch alternative. No critical calling context appears to be missing.

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?

Schema coverage is high at 80%, so the baseline is 3; the description adds meaningful semantics by explaining that source_id and pid are alternatives for source=ndl_digital and that exactly one must be specified. It also gives source-specific meaning for source values and clarifies that pid is used instead of source_id. While pid itself has no schema description, the tool description compensates well for that 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 clear verb and resource: it fetches record details from an external source without mutating it. It further distinguishes behavior per source and explicitly names the sibling jp_lit_get_records for batch retrieval, so an agent can tell what this tool is not. The opening 'external read / local bookkeeping write' clarifies the dual read/write nature beyond the generic title.

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?

The description gives explicit when-to-use guidance: single record lookup, with jp_lit_get_records for 2–10 pre-selected candidates. It also describes when downstream tools like jp_lit_get_text_coordinates are usable, and when they are not when source_metadata.next_digital_library.available is false. It explicitly states what is not fetched (images, IIIF, OCR, fulltext) and how to check for manual viewing alternatives.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itarunnn/jp-lit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server