Skip to main content
Glama

jp_lit_get_records

Fetches detailed records for 1–10 selected source IDs in one batch, preserving input order and reporting per-item success or failure. Uses cached data when available and updates local session history.

Instructions

external read / local bookkeeping write(非破壊)。同じ source の選別済み文献候補1〜10件をまとめて詳細取得する。入力順を保って候補ごとの成功・失敗、単件 cache 情報を返す。source=ndl_digital では source_ids の代わりに1〜10件の pids を指定できる。source_ids と pids はどちらか一方だけを指定する。source=ndl_digital では content_access.manual_viewing と source_metadata.next_digital_library.available を候補ごとに確認する。検索結果全件の自動詳細化や上流の一括APIではなく、未cacheの各IDには個別の外部照会が発生する。1件だけなら jp_lit_get_record を使う 外部sourceは変更しない。cache hitでもlocal session履歴を更新し、cache missまたはforce_refreshではlocal cacheを作成・置換する。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidsNoデジコレPIDの配列。source=ndl_digital の場合だけ1〜10件を指定する。
sourceYes検索・取得・記録対象の情報源ID。jp_lit_search の結果や source plan に含まれる source を指定する。
session_idYes調査案件を識別する application state handle。jp_lit_start_session が返した値を渡す。形式は YYYY-MM-DD-HHMMSS-8桁hex(旧形式 YYYY-MM-DD-HHMMSS も可)。MCP transport の接続IDや cache_key とは別物。
source_idsNo同じ source から詳細取得する source_id の配列。1〜10件。trim 後の重複は最初の1件だけ処理する。
force_refreshNotrue の場合はローカル cache を使わず upstream API から再取得する。false の場合は保存済み cache を優先する。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
sourceYes
error_countYes
unique_countYes
success_countYes
requested_countYes
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 this performs an external read plus local non-destructive bookkeeping write, preserves input order, triggers individual external lookups for uncached IDs, never modifies the external source, and updates local session history even on cache hits while creating/replacing local cache on misses or force_refresh. These are material behavioral traits not captured by readOnlyHint=false, openWorldHint=true, idempotentHint=false, or destructiveHint=false, and there is no contradiction with 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but mostly every sentence carries necessary information, and it leads with the most important framing ('external read / local bookkeeping write(非破壊)'). It is slightly long and mixes several distinct rules in one paragraph, with a run-on break between 'jp_lit_get_record を使う' and '外部sourceは変更しない', so it loses a point on structural polish.

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 presence of a rich input schema, annotations, and an output schema, the description covers all the contextual information an agent needs: when to use the tool, what side effects occur, how caching behaves, how inputs are constrained, and how it differs from the single-record sibling. No important call-time decision is left ambiguous.

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 description coverage is 100%, so the baseline is 3. The description adds value beyond the schema by stating that source_ids and pids are mutually exclusive, that pids are only valid for ndl_digital, and that per-candidate cache behavior is tied to force_refresh. It does not add much per-parameter syntax detail because the schema already covers that, but the added relationships and constraints justify a score above baseline.

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 clearly states the specific verb ('詳細取得する'), resource ('同じ source の選別済み文献候補1〜10件'), and key behavior (batch retrieval returning per-candidate success/failure and cache info in input order). It also explicitly distinguishes itself from the single-record sibling jp_lit_get_record, so an agent can select the right tool without inspecting schemas.

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: use for selected candidates from the same source, avoid for auto-enriching all search results or as an upstream bulk API, and use jp_lit_get_record for a single record. It also names the source_ids vs pids exclusivity rule and the ndl_digital-specific pid option, making the choice and invocation conditions unambiguous.

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