A Next.js web application for LLM-powered board game battles (Gomoku, Xiangqi, Chess). Provides an API endpoint for LLM move generation and a frontend for configuring and running games between two LLM players.
Single tool 'llm_move_completion' has a complete input schema with proper types and descriptions, but the tool definition itself lacks critical context. The description is functional but generic (97 chars), failing to explain WHEN to use this tool vs alternatives, what prerequisites exist, or what the output structure contains. No output schema is documented. The tool accepts raw API credentials as parameters (baseURL, apiKey, model), violating the secret-injection pattern, credentials should never be exposed in tool parameters. Parameter descriptions are present but minimal. The tool name 'llm_move_completion' is unclear: does it complete moves, generate moves, or validate moves? The verb 'completion' is ambiguous in a game context.
Generates LLM text completion for board game moves. Accepts LLM configuration (baseURL, apiKey, model, temperature) and a message history, returns the LLM's text response and model name.
API credentials (apiKey, baseURL) exposed as tool parameters. Credentials must never appear in tool parameters, they are logged in traces and prompt history. Use server-side secret injection via environment variables or vault.
No output schema documented. LLMs cannot plan downstream calls or extract fields without knowing the response structure. Document the shape of 'text' and 'model' fields returned.
Tool name 'llm_move_completion' is ambiguous. In a chess context, does it complete a move, generate a move, or validate a move? Rename to 'generate_llm_move' or 'get_llm_move_suggestion' to clarify intent.
Tool description (97 chars) lacks context for LLM selection. Does not explain WHEN to call this tool, what prerequisites exist (e.g., valid board state), or error conditions. Expand to 150-250 chars with selection guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 37 | 2026-07-28+ | v2 |
No error handling guidance. If the LLM API returns 404, 502, or timeout, the tool returns a generic error message. LLMs need actionable recovery hints: 'Invalid baseURL, verify the API endpoint is reachable' or 'API timeout, retry with a shorter temperature or smaller message history'.