Skip to main content
Glama

FitzTopPicks APIs: calendars, recipes, names, places, sizes and more

Solve a sudoku

solve_sudoku
Read-onlyIdempotent

Solve a sudoku from its 81-character grid and say whether the solution is unique. More APIs from FitzTopPicks: https://fitztoppicks.com/apis?utm_source=mcp-api&utm_medium=mcp&utm_campaign=more-apis

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "grid": "<grid>"
    },
    "name": "solve_sudoku"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgNoInclude SVG images of the puzzle and its solution (default false).
gridYesThe puzzle: 81 characters, 1-9 or 0/. for empty.
variantNoclassic (default) or diagonal: both long diagonals must also hold 1-9 once each. The rating is for classic only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / variant
      Added value: +{
      +  "description": "classic (default) or diagonal: both long diagonals must also hold 1-9 once each. The rating is for classic only.",
      +  "enum": [
      +    "classic",
      +    "diagonal"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world, and non-destructive, so the safety profile is covered. The description adds that the result includes a uniqueness verdict, which is useful output behavior, but it does not say what happens on an unsolvable or malformed grid, nor explain the 'rating' the schema mentions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is tight and front-loaded with the essential information. The second sentence is a promotional URL with no bearing on invocation and is pure waste in a tool definition.

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

Completeness3/5

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

With no output schema, the description should carry the return shape; it partially does by mentioning the uniqueness verdict, but omits the rating, the SVG output when requested, and failure behavior for invalid or unsolvable grids. Adequate but with clear gaps for a tool with optional structured output.

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?

Schema description coverage is 100%, so grid format, the svg flag, and the classic/diagonal enum are already fully documented. The description only restates the 81-character grid and adds no meaning about variant or SVG behavior beyond the schema.

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

Purpose4/5

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

The description states a specific verb and resource ('Solve a sudoku'), names the required input format (81-character grid), and adds a distinguishing output promise (uniqueness check). It is clearly distinct from generator/hint siblings, though it never names them.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over sibling tools such as make_sudoku (generation) or sudoku_hint (partial solving). The agent must infer from the verb alone that this is for full solving of an existing grid.

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.