Skip to main content
Glama

create_project

Create a new pixel art project by specifying canvas dimensions and a unique identifier. This tool initiates a blank canvas for drawing pixel art.

Instructions

Create a new pixel art project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesUnique identifier for the project
widthYesCanvas width in pixels
heightYesCanvas height in pixels
nameNoProject name (optional)

Implementation Reference

  • The createProject method serves as the handler for the 'create_project' tool, initializing a new Piskel project instance and adding it to the server's projects map.
    private createProject(
      projectId: string,
      width: number,
      height: number,
      name?: string
    ): object {
      if (this.projects.has(projectId)) {
        throw new Error(`Project "${projectId}" already exists`);
      }
    
      const descriptor = { name: name ?? projectId };
      const piskel = new Piskel(width, height, 1, descriptor);
    
      // Add a default layer with one frame
      const defaultLayer = new Layer('Layer 0');
      defaultLayer.addFrame(new Frame(width, height));
      piskel.addLayer(defaultLayer);
    
      this.projects.set(projectId, piskel);
    
      return {
        success: true,
        projectId,
        width,
        height,
        name: name ?? projectId,
      };
    }
  • The tool 'create_project' is defined and registered within the getTools method in PiskelServer.ts, specifying its description and inputSchema.
    {
      name: 'create_project',
      description: 'Create a new pixel art project',
      inputSchema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'Unique identifier for the project',
          },
          width: {
            type: 'number',
            description: 'Canvas width in pixels',
          },
          height: {
            type: 'number',
            description: 'Canvas height in pixels',
          },
          name: {
            type: 'string',
            description: 'Project name (optional)',
          },
        },
        required: ['projectId', 'width', 'height'],
  • The inputSchema for 'create_project', defining the expected parameters: projectId, width, height, and optional name.
    inputSchema: {
      type: 'object',
      properties: {
        projectId: {
          type: 'string',
          description: 'Unique identifier for the project',
        },
        width: {
          type: 'number',
          description: 'Canvas width in pixels',
        },
        height: {
          type: 'number',
          description: 'Canvas height in pixels',
        },
        name: {
          type: 'string',
          description: 'Project name (optional)',
        },
      },
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool creates a project but doesn't mention any behavioral traits: whether it's idempotent, what happens on duplicate projectId, if it requires specific permissions, what the response contains, or error conditions. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.

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?

The description is a single, efficient sentence that directly states the tool's purpose without any fluff. It's appropriately sized and front-loaded, making it easy to parse. Every word earns its place by conveying the essential action and resource.

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

Completeness2/5

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

Given the tool's complexity (a mutation operation with 4 parameters) and the lack of annotations and output schema, the description is incomplete. It doesn't explain what happens after creation (e.g., returns a project object, error handling), behavioral traits, or usage context. For a create tool with no structured support, more detail is needed to be fully helpful to an agent.

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?

The description adds no parameter semantics beyond what the input schema provides. With 100% schema description coverage, the schema already documents all four parameters clearly (projectId, width, height, name). The baseline is 3 since the schema does the heavy lifting, and the description doesn't compensate with additional context like default values or constraints.

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 clearly states the action ('create') and resource ('new pixel art project'), making the purpose immediately understandable. It distinguishes this from sibling tools like 'delete_project' or 'list_projects' by specifying creation. However, it doesn't explicitly differentiate from other creation-like tools (none exist in the sibling list), so it doesn't reach the highest level of sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether projects must be unique), when not to use it (e.g., for updating existing projects), or refer to related tools like 'list_projects' for context. The agent must infer usage from the tool name alone.

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/yafeiaa/piskel-mcp-server'

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