A NotePM MCP server implementation providing search and article retrieval as MCP tools
Two read-only search/retrieval tools with well-structured input schemas and comprehensive parameter descriptions. Naming follows verb_noun convention (notepm_search, notepm_page_detail). Descriptions are clear and action-oriented. Input schemas use Pydantic models with extensive field-level annotations including patterns, enums, constraints, and descriptions. However, output schemas are not documented in the visible code, descriptions could be more concise, and there is no error recovery guidance or output structure specification visible.
Retrieve detailed content of a specific NotePM page using the NotePM API (GET /api/v1/pages/{page_code})
Search NotePM pages using the NotePM API (GET /api/v1/pages)
Output schemas not documented. While input schemas are well-defined via Pydantic SearchParams model and pageCode validation, there is no visible specification of what notepm_search returns (fields, structure, pagination metadata) or what notepm_page_detail returns. LLMs cannot plan downstream tool calls or extract data without knowing the response shape.
No error recovery guidance in descriptions. Tool descriptions state WHAT they do but do not inform LLMs how to handle failures: 'If the page is not found, try...' or 'Rate limit exceeded, retry after...'. Error responses visible in code (e.g., environment variable validation in NotePMConfig.__init__) do not translate to tool-level error hints.
Parameter descriptions for notepm_search could be more concise. Descriptions average 80 - 160 characters per parameter, some exceeding 200 characters (e.g., tag_name, created_at_from). Rubric baseline for param annotations is 72 chars; longer descriptions waste tokens and may reduce LLM parsing efficiency. Example: 'created_at_from' could be shortened to 'Start of creation date range (YYYY-MM-DD)' from current 'YYYY-MM-DD形式で指定する(例: 2020-08-01)'.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 38 | - | v1 |
No pagination guidance in tool descriptions. notepm_search accepts 'page' and 'per_page' parameters (defaults 1 and 10), but the description does not explicitly state: 'Returns paginated results; use page parameter to iterate through large result sets.' This guidance helps LLMs understand when to call the tool multiple times.
Input validation messages assume Japanese environment. Error messages in code (e.g., '環境変数NOTEPM_TEAMとNOTEPM_API_TOKENが必要です') are in Japanese. While user-facing descriptions are in Japanese, system errors logged to stderr or returned via MCP should be in English for broader compatibility and clarity in international deployments.