Skip to main content
Glama

new_canvas

Create a new, empty photo from scratch (not from a file: that is open_photo). width/height, mode (rgb or grayscale, default rgb), fill for the single background layer (white, black or transparent; default white), optional precision (16-bit; the same promotion as open_photo's precision) and name. Returns the same shape as open_photo (image id, size, color mode, precision, layer list), so every other tool treats it like an opened file. On this server width x height must stay within the workspace's pixel limit; '32' precision is refused, and '16' only up to a smaller size limit (memory). Up to 2 photos stay open at once (the one used least recently is saved and closed to make room, and reopens when named).

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "new_canvas"
  }
}

Input Schema

NameRequiredDescriptionDefault
fillNoThe single background layer's initial content.white
modeNoThe new image's base color mode.rgb
nameNoThe background layer's name. Defaults to 'Background'.
widthYesCanvas width, in pixels.
heightYesCanvas height, in pixels.
precisionNoPromote bit depth at creation, same as open_photo's own `precision` — use this ahead of an aggressive tone move to avoid visible banding. Omit for ordinary 8-bit. The megapixel cap this tool enforces scales down with bit depth (a 16-bit request costs 2x the memory of the same pixel count at 8-bit, 32-bit float 4x): 250 MP at 8-bit, 125 MP at 16-bit, 60 MP at 32-bit — the same per-side 30000px limit applies at every depth.

Output Schema

NameRequiredDescriptionDefault
imageNo
widthNo
heightNo
layersNo
base_typeNo
precisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true); the description goes well beyond that by disclosing the workspace pixel cap, the memory-scaled size limits, and the two-photo LRU policy ("the one used least recently is saved and closed to make room, and reopens when named") — a genuinely important side effect the annotations do not convey. The one defect is that it says "'32' precision is refused" while the schema advertises a 32-bit path with its own megapixel cap, leaving the agent unsure whether 32 is legal; that ambiguity keeps it from a 5.

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?

Purpose and the sibling exclusion are front-loaded in the first clause, and every sentence carries information. The prose is dense and parenthesis-heavy though ("(white, black or transparent; default white)"), and several schema defaults are restated, which is slightly wasteful when defaults are already structured.

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

Completeness4/5

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

For a creation tool with an output schema, this covers the constraints an agent actually needs: size caps, precision refusals, concurrency behavior, and the fact that the result is interchangeable with an opened file. The only gap is the unresolved 32-bit precision contradiction, which is material given the tool's memory limits.

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, but the description adds real meaning on top: it ties `precision` to `open_photo`'s promotion semantics and explains the memory cost trade-off, and clarifies that the layer list contains a single background layer. It does not, however, resolve the 32-bit contradiction with the schema, which is exactly where added semantics were most needed.

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?

Opens with a specific verb and resource ("Create a new, empty photo from scratch") and immediately negates the nearest sibling: "not from a file: that is `open_photo`". An agent can distinguish this from open_photo without consulting either schema.

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

Usage Guidelines5/5

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

Explicitly states the when-not (use `open_photo` for files) and names the sibling that handles the alternative case. It also gives a forward-looking use case for the optional precision parameter ("use this ahead of an aggressive tone move to avoid visible banding"), so the agent knows when to set it rather than just what it is.

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