Skip to main content
Glama

Create Document

photopea_create_document

Start a new design project by creating a blank document with custom width, height, resolution, color mode, and background fill. Use this as the first step for image editing or graphic design workflows.

Instructions

Create a new blank document and make it the active document. This is typically the first step in a workflow. The document opens with a Background layer. Use open_file instead to edit an existing image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthYesDocument width in pixels (e.g. 1920 for full HD)
heightYesDocument height in pixels (e.g. 1080 for full HD)
resolutionNoResolution in DPI (72 for screen, 300 for print)
nameNoDocument name shown in the title barUntitled
modeNoColor mode (use RGB for most workflows)RGB
fillColorNoBackground fill color as hex (e.g. #ffffff for white, #000000 for black). Defaults to white if omitted.
Behavior4/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false. Description adds context: makes document active, opens with Background layer. No contradictions; could mention creation side effects but sufficient.

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

Conciseness5/5

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

Three concise sentences with key information front-loaded. No unnecessary words.

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?

Given high schema coverage and annotations, description covers when to use, behavior (active, background layer), and alternative. Could mention return value or confirmation, but overall complete.

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%; all parameters have descriptions. Description does not add additional meaning beyond schema, meeting baseline of 3.

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?

Description clearly states 'Create a new blank document' with specific verb and resource. Explicitly distinguishes from sibling 'open_file' by saying 'Use open_file instead to edit an existing image.'

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?

States 'This is typically the first step in a workflow' and provides clear alternative 'Use open_file instead to edit an existing image.'

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attalla1/photopea-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server