MCP Server

diglabo 漢字プリント

com.diglabo/kanji-prints
Education Public & reachable MCP 2025-11-25

What this MCP does

Creates and revises Japanese kanji worksheet plans from existing questions and provides review links.

check_available_kanji
作れる範囲を調べる
作れる漢字プリントの範囲(教育漢字・漢検の級)、形式、指定した字の問題の数を返します。
Read only Idempotent
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'chars': {'type': 'array', 'items': {'type': 'string'}, 'maxItems': 24}}, 'additionalProperties': False}
create_kanji_worksheet
プリント案を作る
既存の問題を組み合わせて A4・24マスのプリント案を作り、問題一覧(番号・種類・問題文・答え・字)と確認用の短いリンク(30日有効)を返します。形式を省くと書きと読みのテストになります。部首・画数テスト(format=test_strokes)・熟語の構成テスト(format=test_structure。1問の差し替えはできない)・対義語・類義語テスト(format=test_pairs。1問の差し替えはできない)・同音異字テスト(format=test_homophones。1問の差し替えはできない)も作れます。プリントの保存と PDF の作成はしません。
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chars'], 'properties': {'chars': {'type': 'array', 'items': {'type': 'string'}, 'maxItems': 48, 'minItems': 1, 'description': 'プリントに載せる字(重複なし)。テスト(書き・読み)は8〜24字、部首・画数テストは4〜6年相当(7〜5級)が6〜12字・ほかは12〜24字、練習は1〜6字。書き・読みのテストで25字以上・8字未満のときは、字の絞り方や分け方の案(proposals)を返す。部首・画数テスト(test_strokes)は6〜12・12〜24字の範囲外なら誤りを返すだけで、proposals は付かない。熟語の構成テスト(test_structure)と対義語・類義語テスト(test_pairs)は14字か22字、同音異字テスト(test_homophones)は8字か12字で、それ以外は誤りを返すだけ。'}, 'grade': {'type': 'integer', 'maximum': 6, 'minimum': 1, 'description': '教育漢字のプリントの学年(1〜6)。省くと字の配当学年の最大。漢検のプリントでは使わない。'}, 'title': {'type': 'string', 'maxLength': 60, 'minLength': 1, 'description': '紙面のタイトル(1〜60文字)。省くと自動で付く。テストのタイトルに出題する字が入っていると、答えが見えるため受け付けない。'}, 'words': {'type': 'array', 'items': {'type': 'string', 'maxLength': 12, 'minLength': 1}, 'maxItems': 40, 'minItems': 1, 'description': '優先して出題する語(例:想像・経験)。指定した字の問題に同じ語があれば先に選ぶ。'}, 'format': {'enum': ['practice', 'test_mixed', 'test_write', 'test_read', 'test_strokes', 'test_structure', 'test_pairs', 'test_homophones'], 'type': 'string', 'description': 'practice(練習)・test_mixed(書きと読み)・test_write(書きだけ)・test_read(読みだけ)・test_strokes(部首・画数テスト。学年か級が必要)・test_structure(熟語の構成テスト。二字熟語の組み立てを記号で答える。5・6年か6〜2級だけ。6・5級は4型、4〜2級は5型)・test_pairs(対義語・類義語テスト。熟語の空いた字を後のひらがなから選んで漢字で書く。4〜6年か7〜2級だけ。4年・7級は対義語だけ、準2・2級は熟語まるごと。字数は14字か22字)・test_homophones(同音異字テスト。同じ音読みで字の違う2問を1組にし、カタカナの読みの漢字を書く。3〜6年か8〜2級だけ。字数は8字(16問)か12字(24問)で、相手の字は自動で選ぶ)。省くと test_mixed。'}, 'practiceMax': {'enum': [3, 6], 'type': 'number', 'description': '練習(format=practice)の1枚に載せる字数の上限。3字までなら3、6字までなら6(字の練習回数ではない)。練習のときは必須。'}, 'learningScope': {'anyOf': [{'type': 'object', 'required': ['system'], 'properties': {'system': {'type': 'string', 'const': 'jp_elementary'}}, 'additionalProperties': False}, {'type': 'object', 'required': ['system', 'level'], 'properties': {'level': {'enum': [10, 9, 8, 7, 6, 5, 4, 3, 'pre2', 2], 'type': ['number', 'string']}, 'system': {'type': 'string', 'const': 'kanken'}, 'edition': {'type': 'string', 'const': '2020', 'description': '級別漢字表の版。省略時は2020年度版。'}}, 'additionalProperties': False}], 'description': '学習範囲。省くと小学校の教育漢字。漢検は {system:\'kanken\', level:10〜3、"pre2"(準2級)、2(2級)}。'}}, 'additionalProperties': False}
find_replacement_questions
差し替えの候補を探す
指定した字の既存の問題を最大20件、問題文と答え付きで返します。プリント案の1問を差し替える候補になります。
Read only Idempotent
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['char'], 'properties': {'char': {'type': 'string', 'description': '候補を調べる字(1字)。'}, 'type': {'enum': ['compound', 'reading', 'okurigana'], 'type': 'string', 'description': '熟語(書き)・読み・送りがなで絞る。'}, 'grade': {'type': 'integer', 'maximum': 6, 'minimum': 1, 'description': '教育漢字のとき、プリントの学年。省けば字の配当学年。'}, 'learningScope': {'anyOf': [{'type': 'object', 'required': ['system'], 'properties': {'system': {'type': 'string', 'const': 'jp_elementary'}}, 'additionalProperties': False}, {'type': 'object', 'required': ['system', 'level'], 'properties': {'level': {'enum': [10, 9, 8, 7, 6, 5, 4, 3, 'pre2', 2], 'type': ['number', 'string']}, 'system': {'type': 'string', 'const': 'kanken'}, 'edition': {'type': 'string', 'const': '2020', 'description': '級別漢字表の版。省略時は2020年度版。'}}, 'additionalProperties': False}], 'description': '学習範囲。省くと教育漢字。漢検の級を指定すると、その級の範囲の問題だけを返す。'}}, 'additionalProperties': False}
replace_question
1問を差し替える
プリント案の1問を同じ字の別の問題に差し替えた新しいプリント案を作り、新しい問題一覧と確認用リンクを返します。元のリンクは元の内容のまま残ります。
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['proposalId', 'index', 'replacement'], 'properties': {'index': {'type': 'integer', 'maximum': 23, 'minimum': 0, 'description': '差し替えるマスの位置(問題一覧の index。0始まりで、番号とは別)。手本・空白のマスは差し替えられない。'}, 'proposalId': {'type': 'string', 'pattern': '^[0-9A-Za-z]{12}$', 'description': '差し替えるプリント案の ID(proposalId)。'}, 'replacement': {'type': 'object', 'required': ['type', 'char', 'itemId'], 'properties': {'char': {'type': 'string'}, 'type': {'enum': ['compound', 'reading', 'okurigana'], 'type': 'string'}, 'itemId': {'type': 'string', 'maxLength': 100, 'minLength': 1}}, 'description': '差し替え先の問題の ref(差し替え候補の検索結果に含まれるもの)。対象マスと同じ字に限る。', 'additionalProperties': False}}, 'additionalProperties': False}
Changed
create_kanji_worksheet
Oct. 5, 2026, 2:42 a.m.
Changed
find_replacement_questions
Oct. 5, 2026, 2:42 a.m.
Changed
create_kanji_worksheet
Oct. 3, 2026, 2:48 a.m.
Changed
find_replacement_questions
Oct. 3, 2026, 2:48 a.m.
Added
replace_question
Oct. 1, 2026, 2:40 a.m.
Added
create_kanji_worksheet
Oct. 1, 2026, 2:40 a.m.
Added
find_replacement_questions
Oct. 1, 2026, 2:40 a.m.
Added
check_available_kanji
Oct. 1, 2026, 2:40 a.m.