Skip to main content
Glama

Crossword MCP Server

by watamoo

register_candidates

Add candidate words to crossword clues that match the required character length. Returns registered words and rejected mismatches for solving Japanese crosswords.

Instructions

指定したカギに対して文字数がマッチする候補語を追加登録する。登録済みと除外された語をまとめて返す。

Args: clue_id (str): 登録対象のカギ ID。setup で読み込んだカギ定義に存在している 必要がある。前後の空白は自動で除去される。 candidates (list[str]): 追加したい候補語のリスト。空文字は許容されない。 カギの length と文字数が一致しない語は登録されず、除外リストに入る。

Returns: dict[str, list[str]]: registered に登録後の候補語リスト(過去の登録分を含む)、 rejected に長さ不一致で追加できなかった語のリストを格納する辞書。

Notes: 長さが一致した語のみ状態に追加され、既存の候補リストは保持したまま追記される。 同じ語が既に登録済みの場合は無視される。

Raises: RuntimeError: setup をまだ呼び出していない場合。 ValueError: clue_id が空、または候補語が空文字だった場合。 KeyError: 指定した clue_id のカギが存在しない場合。

Input Schema

NameRequiredDescriptionDefault
candidatesYes
clue_idYes

Input Schema (JSON Schema)

{ "properties": { "candidates": { "items": { "type": "string" }, "type": "array" }, "clue_id": { "type": "string" } }, "required": [ "clue_id", "candidates" ], "type": "object" }

Other Tools from Crossword MCP Server

Related Tools

    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/watamoo/mcp-crossword-tools'

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