Skip to main content
Glama

solve_sudoku

Read-only

Solve a sudoku puzzle completely with step-by-step logical deduction. Input: 81-character string of digits (0 or . for empty cells). Whitespace is tolerated. Returns: every solving step with technique name + human-readable explanation + action, the final solution string, a technique summary (counts), and tutorial links. Only uses logical techniques — never guesses. If the puzzle cannot be solved logically, the steps will end before completion. Use this when the user wants to understand how to solve a puzzle from scratch. The response includes a solve_url for continuing the same board interactively and tutorial_links for techniques used in the solution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
puzzleYes81-character sudoku string. Digits 1–9 for given cells, 0 or . for empty. Whitespace is ignored.
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses key behavioral traits: it 'only uses logical techniques — never guesses' and that steps will 'end before completion' if the puzzle cannot be solved logically. It also explains the response includes every solving step, a technique summary, and a solve_url, giving the agent a clear model of call behavior.

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 description is organized into short labeled sections and front-loads the primary purpose before input and return details. It loses a point for minor redundancy: 'tutorial links' appears in the returns list and is then restated as 'tutorial_links' in the final sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a single parameter and no output schema, the description supplies all essential context: exact input format, return contents, logical-only behavior, early termination condition, and an explicit use case. It also mentions the interactive solve_url and tutorial links, which are valuable for an agent deciding to invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter, puzzle, is already fully documented in the schema (81-character string, 0 or ., whitespace ignored), so the description merely repeats schema content. With 100% schema description coverage, the baseline of 3 is appropriate; the description adds no significant parameter meaning beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('solve') and resource ('a sudoku puzzle'), and specifies the manner: 'completely with step-by-step logical deduction.' It also states when to use it — 'when the user wants to understand how to solve a puzzle from scratch' — helping differentiate it from sibling tools like explain_next_step or get_sudoku_puzzle.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly names its intended use case: 'Use this when the user wants to understand how to solve a puzzle from scratch.' However, it does not state when not to use it or explicitly mention alternatives such as explain_next_step for a single step or check_progress for tracking existing progress, so it falls slightly short of full alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources