Skip to main content
Glama

Turn a photo into a puzzle

puzzle_from_photo

Converts a user-provided photo into a paint-by-number puzzle without AI restyling. Accepts either image_base64 or a public HTTPS image_url, plus optional immersive 2.5D depth, finish_style, and preset ('standard', 'kids_easy', 'large_print'). Spends PaintLoom credits matching app pricing. Returns immediately with status 'generating', a puzzle id, and paint_url; poll get_puzzle until 'ready'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "puzzle_from_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoHow many regions to paint. Default medium. 'detailed' costs 1 more credit.
presetNoAccessibility complexity preset: 'standard' (default), 'kids_easy' (8 colors, large bold shapes), or 'large_print' (10 colors, large readable numbers for seniors/therapy).
style_idNoA style id from list_styles. Default botanical_painterly.
image_urlNoA public HTTPS URL to a JPEG, PNG or WebP photo (up to 10 MB). Provide either image_base64 or image_url.
immersiveNoWhen true, also builds a 2.5D Walk-in Immersive depth version at no extra credit cost (scenes without depth succeed cleanly in Flat mode).
mime_typeNoDefault image/jpeg (only needed with image_base64).
finish_styleNoOptional material finish (e.g. flat, impasto, watercolor, stained_glass, mosaic, embroidery, cloisonne, woodblock, papercut, diamond, photo). Default flat.
image_base64NoThe photo, base64-encoded (JPEG, PNG or WebP, up to 10 MB).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say it is not read-only, not idempotent, open-world), the description discloses the two non-obvious traits: it spends PaintLoom credits matching app pricing, and it is asynchronous — returning status 'generating', a puzzle id, and paint_url. It also notes immersive builds cost no extra credit and that depth-less scenes fall back cleanly to Flat.

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?

Front-loaded with purpose, then inputs, then cost, then return-and-poll behavior — a logical order with no filler. It is dense but the mid-sentence enumeration of finish_style and preset values largely duplicates the enum definitions, which is the only wasted space.

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?

With no output schema and eight parameters, the description carries the return contract itself: status 'generating', a puzzle id, paint_url, and the required follow-up call to get_puzzle. Combined with the credit-cost disclosure and the either/or input rule, nothing essential for a correct first invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; however the description adds a materially useful constraint the schema leaves ambiguous — with zero required parameters, it states that one of image_base64 or image_url must actually be supplied. It also surfaces the cost-relevant detail option and the preset accessibility meanings, though most of this repeats schema text.

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?

States a specific verb and resource ('Converts a user-provided photo into a paint-by-number puzzle') and immediately narrows scope with 'without AI restyling', which separates it from the AI-restyling generation path. An agent can identify the tool from the first clause alone.

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?

Gives clear operational context: accepts image_base64 or a public HTTPS image_url, and tells the caller to poll get_puzzle until status is 'ready' rather than expecting a finished artifact. It does not explicitly say when to prefer a sibling over this one (e.g. the AI-restyling alternative is only implied), so it stops short of full when/when-not 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