Skip to main content
Glama

jp_lit_record_ndl_browser_search

Validate NDL Digital Collections search results from browser observation and save their full-text, viewer, and print-PDF states into the session cache for later refinement, annotation, and export.

Instructions

local write。エージェントがデジコレ公式画面で観測した全文検索候補と閲覧・資料内検索・印刷用PDFの状態を検証してcache/sessionへ保存する。MCP自身はブラウザ操作・ログイン・外部通信を行わず、cookie、認証情報、画像、PDF本体・pathを受け取らない。保存後はjp_lit_refine_results、jp_lit_search_cache_index、jp_lit_annotate_session、jp_lit_export_view / jp_lit_export_sessionで通常候補と同様に扱う。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
itemsYes
queryYes
filtersYes
checked_atYes
session_idYes調査案件を識別する application state handle。jp_lit_start_session が返した値を渡す。形式は YYYY-MM-DD-HHMMSS-8桁hex(旧形式 YYYY-MM-DD-HHMMSS も可)。MCP transport の接続IDや cache_key とは別物。
login_stateYes
reported_totalYes
total_relationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
cacheNo
itemsYes
limitYes
queryYes
totalYes
sourceYes
observationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

B3.4/5.0
Behavior4/5

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

The description adds genuinely useful behavioral context beyond the annotations: it is a local-only write (readOnlyHint=false aligns), the MCP performs no browser operations, login, or external communication, and it does not receive cookies, credentials, images, or PDF bodies/paths. These negative constraints help the agent understand side-effect boundaries. It does not address idempotency (idempotentHint=false) implications, but no contradiction with annotations exists.

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 core purpose ('local write') is front-loaded, and the content is efficient with no filler. It packs the save action, the negative constraints, and the downstream workflow into three compact sentences. The single dense Japanese paragraph could be structurally split for readability, but it earns its sentences.

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?

For a high-complexity tool (9 required params, deeply nested items/filters/snippets objects, multiple state enums), the description establishes the tool's role and downstream handling well but gives no guidance on assembling the complex input structure. The rich schema enums and output schema carry much of the load, and the negative constraints clarify boundaries, but an agent still lacks direction on how to populate items correctly.

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 only 11% (just session_id carries schema-level description), placing the burden on the tool description — but the description explains none of the 9 parameters. Its only parameter-related content is negative (states what it does not receive, e.g., cookies/images/PDFs). It gives no guidance on the complex items array, filters, or state enums, leaving the agent to infer semantics purely from enum names.

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?

Description states a specific action — verify full-text search candidates and their browse/in-document-search/print-PDF states observed on the official DigiCol screen, then save them to cache/session. The verb (save/record) and resource (observed candidates with their states) are clear, and its write nature distinguishes it from the many search/retrieval siblings. It lacks an explicit 'this is not X' pointer, so it doesn't fully reach the bar of the strongest examples.

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?

Usage context is implied: use when the agent has observed results on the official DigiCol screen that need verification and persistence. It names downstream consumers (jp_lit_refine_results, jp_lit_search_cache_index, jp_lit_annotate_session, jp_lit_export_view/export_session) which clarifies the workflow, but it never states when NOT to use this tool or how it compares to alternative write paths. No explicit exclusions.

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