API & MCP

Everything a person can do on Pattern Matrix Puzzle Generator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://mindquarrymatrixpuzzle.usefulweb.app/api/v1/calculate – run Pattern Matrix Puzzle Generator
  • GET https://mindquarrymatrixpuzzle.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Pattern Matrix Puzzle Generator

Builds a 3 × 3 matrix of figures whose last cell is missing, in the style of progressive-matrix puzzles: shape, number, fill and size follow rules along the rows (constant, step-by-step progression or each value once per row). Eight answer options are generated and the puzzle is only returned when an independent check finds exactly one option that fits every reading of the rules. Returns the puzzle as SVG, the answer, and the rules in plain words. These are practice puzzles, not an intelligence test.

Inputs of Pattern Matrix Puzzle Generator
FieldTypeDefaultDescription
levelinteger5Difficulty (1–10). Higher levels vary more attributes at once and use the “each value once per row” rule.
seedtext"mindquarry"Seed (same seed = same puzzle)
showAnswerbooleanfalseMark the answer in the picture

Example request

Medium puzzle (level 5)

curl -X POST https://mindquarrymatrixpuzzle.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"level":5,"seed":"mindquarry"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://mindquarrymatrixpuzzle.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: mindquarry_matrix_puzzle
  • Local stdio connector: node src/mcp-stdio.ts --tool=mindquarry-matrix-puzzle
{
  "mcpServers": {
    "mindquarry-matrix-puzzle": { "type": "http", "url": "https://mindquarrymatrixpuzzle.usefulweb.app/mcp" }
  }
}