Skip to main content
Glama
Stitch MCP Server

Stitch MCP Server

Upload Image/File to Project

stitch_upload_image

Uploads a design file (PNG, JPG, WEBP, or HTML) to a Stitch project and creates new screen canvases from its contents, so agents can bring existing designs into Stitch.

Instructions

Upload a design file (PNG, JPG, WEBP, HTML) to a Stitch project. Creates new screen canvases from the file contents.

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": {
      "projectId": "<projectId>",
      "filePath": "<filePath>"
    },
    "name": "stitch_upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional title for the uploaded screen
filePathYesAbsolute or relative path to the file (PNG, JPG, WEBP, HTML)
projectIdYesStitch project ID
createScreenInstancesNoWhether to create screen instances from the upload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare a mutating, non-idempotent, non-destructive, closed-world operation, and the description usefully adds one fact the annotations do not: the upload materializes new screen canvases rather than just storing a file. It does not address the consequences of the non-idempotent flag (e.g., whether re-uploading the same file duplicates screens), file size limits, or what happens with an unsupported or unreadable path.

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?

Two compact sentences with no filler, leading with the action and format list and following with the outcome. Every clause carries information an agent needs.

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

Completeness3/5

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

With no output schema and a fully documented 4-parameter schema, the description covers the basics, but for a non-idempotent upload that creates screens it omits the return value (e.g., created screen identifiers) and duplicate-upload behavior. An agent can call it correctly but cannot predict the result precisely.

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 every parameter is already documented in the schema, and the description only echoes the accepted file formats for filePath. It does not clarify the effect of setting createScreenInstances to false, which is the one parameter whose behavioral meaning is non-obvious, so it stays near the baseline rather than clearly exceeding it.

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 gives a specific verb and resource ('Upload a design file ... to a Stitch project') and enumerates the accepted formats (PNG, JPG, WEBP, HTML). It also explains the resulting effect ('Creates new screen canvases from the file contents'), which distinguishes it from a pure generation tool, though it never names a sibling such as stitch_generate_screen as the alternative for creating screens from scratch.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for bringing an existing local design file into a project, as opposed to generating a screen from a prompt. There is no explicit statement of when to prefer it over stitch_generate_screen, no prerequisites (project must exist, file must be reachable from the server), and no exclusions.

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