Skip to main content
Glama

Design screens with AI

design
Destructive

Run Sleek's design agent to create or edit screens from a plain-language brief. Send the whole request as ONE message, such as 'a food delivery app with onboarding, restaurants, dish detail, cart, tracking, and profile'. The agent plans the screens together, so separate calls produce mismatched screens. A run uses workspace credits only when it completes or saves changes. By default this waits for the run to finish. If it returns 'queued' or 'running', poll get_design_run. Only one run can be active per project. On CONFLICT, poll get_design_run until the run settles, then retry. cancel_design_run stops it sooner. If a failed run has data.error.url, relay data.error.message to your user with that link. They have to act before you retry. On completion, call show_project with data.runId to show your user what the run made, inline. Use screenshot only where your client cannot show apps. Then share projectUrl with your user.

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>",
      "message": "<message>"
    },
    "name": "design"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait for the run to finish before returning. The wait is capped at 270 seconds, after which you get status 'running' back and poll get_design_run. Set false to return immediately and poll from the start, which is the better choice if your client times tool calls out sooner than that.
messageYesThe full design brief, as one message. Name every screen you want in this single request.
screenIdNoEdit this existing screen instead of creating new ones. Use the screenId from list_components, or from a previous run's data.result.operations (via design or get_design_run). It is not the component id.
imageUrlsNoHTTPS image URLs for visual input, such as screenshots, logos, or style references.
projectIdYesProject id from an item's id in list_projects, or data.id in create_project.
referenceIdNoDesign reference to imitate, from list_references.
idempotencyKeyNoPick a unique key for each new design request, such as a UUID. Reuse it for retries to return the original run instead of starting a second one.

Output Schema

NameRequiredDescriptionDefault
dataYes
projectUrlYesOpen link for the project. Share it with your user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / data / properties / result / properties / operations / description
      Previous value: -"Screen creations, screen updates, theme changes and removals saved by the run."New value: +"What the run saved: screens created and updated, theme changes, new variants and styles, which ones are in use, and removals. New kinds may be added."
    • changedOutput schema / properties / data / properties / result / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "componentId": {
      -        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      -        "type": "string"
      -      },
      -      "screenId": {
      -        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      -        "type": "string"
      -      },
      -      "screenName": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "screen_created",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "screenId",
      -      "screenName",
      -      "componentId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "componentId": {
      -        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      -        "type": "string"
      -      },
      -      "screenId": {
      -        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "screen_updated",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "screenId",
      -      "componentId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "theme_updated",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "screenId": {
      -        "description": "Id of the screen the run deleted.",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "screen_removed",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "screenId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "componentId": {
      -        "description": "The variant the run removed. The screen keeps its others.",
      -        "type": "string"
      -      },
      -      "screenId": {
      -        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "variant_removed",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "screenId",
      -      "componentId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "styleId": {
      -        "description": "The style the run removed, with its screens.",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "style_removed",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "styleId"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "screenName": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "screen_created",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "screenName",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "screen_updated",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "theme_updated",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "The new variant of the screen, beside the one it shows. Use as componentId to fetch HTML or in componentIds to render screenshots.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "variant_created",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "The variant the screen shows now. Use as componentId to fetch HTML or in componentIds to render screenshots.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "variant_used",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "styleId": {
      +        "description": "The new style, with its own screens.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "style_created",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "styleId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "styleId": {
      +        "description": "The style the project uses now.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "style_used",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "styleId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "screenId": {
      +        "description": "Id of the screen the run deleted.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "screen_removed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "The variant the run removed. The screen keeps its others.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "variant_removed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "styleId": {
      +        "description": "The style the run removed, with its screens.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "style_removed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "styleId"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changed
    • changedOutput schema / properties / data / properties / result / properties / operations / description
      Previous value: -"Screen creations, screen updates, and theme changes saved by the run."New value: +"Screen creations, screen updates, theme changes and removals saved by the run."
    • changedOutput schema / properties / data / properties / result / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "componentId": {
      -        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      -        "type": "string"
      -      },
      -      "screenId": {
      -        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      -        "type": "string"
      -      },
      -      "screenName": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "screen_created",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "screenId",
      -      "screenName",
      -      "componentId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "componentId": {
      -        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      -        "type": "string"
      -      },
      -      "screenId": {
      -        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "screen_updated",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "screenId",
      -      "componentId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "theme_updated",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "screenName": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "screen_created",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "screenName",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "Use as componentId to fetch HTML or in componentIds to render screenshots.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "screen_updated",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "theme_updated",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "screenId": {
      +        "description": "Id of the screen the run deleted.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "screen_removed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "componentId": {
      +        "description": "The variant the run removed. The screen keeps its others.",
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "variant_removed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "screenId",
      +      "componentId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "styleId": {
      +        "description": "The style the run removed, with its screens.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "style_removed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "styleId"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / data / properties / result / properties / refused / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "change": {
      -        "description": "A new variant of the screen, or putting a variant in use.",
      -        "enum": [
      -          "variant_created",
      -          "variant_used"
      -        ],
      -        "type": "string"
      -      },
      -      "componentId": {
      -        "description": "The variant the run would have made or put in use.",
      -        "type": "string"
      -      },
      -      "reason": {
      -        "description": "moved: the user put another variant in use while the run worked. missing: the screen or the variant was deleted. refused: the screen can't hold variants, or the variant was removed.",
      -        "enum": [
      -          "moved",
      -          "missing",
      -          "refused"
      -        ],
      -        "type": "string"
      -      },
      -      "screenId": {
      -        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "change",
      -      "screenId",
      -      "componentId",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "change": {
      -        "const": "style_used",
      -        "description": "Putting a style in use.",
      -        "type": "string"
      -      },
      -      "reason": {
      -        "description": "moved: the user put another style in use while the run worked. missing: the style was deleted. refused: the style was removed.",
      -        "enum": [
      -          "moved",
      -          "missing",
      -          "refused"
      -        ],
      -        "type": "string"
      -      },
      -      "styleId": {
      -        "description": "The style the run would have put in use.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "change",
      -      "styleId",
      -      "reason"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "change": {
      +        "description": "A new variant of the screen, putting a variant in use, or removing one.",
      +        "enum": [
      +          "variant_created",
      +          "variant_used",
      +          "variant_removed"
      +        ],
      +        "type": "string"
      +      },
      +      "componentId": {
      +        "description": "The variant the run would have made, put in use or removed.",
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "moved: the user put another variant in use while the run worked. missing: the screen or the variant was deleted. refused: the screen can't hold variants, the variant was removed, or the variant to remove is in use.",
      +        "enum": [
      +          "moved",
      +          "missing",
      +          "refused"
      +        ],
      +        "type": "string"
      +      },
      +      "screenId": {
      +        "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "change",
      +      "screenId",
      +      "componentId",
      +      "reason"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "change": {
      +        "description": "Putting a style in use, or removing one.",
      +        "enum": [
      +          "style_used",
      +          "style_removed"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "moved: the user put another style in use while the run worked. missing: the style was deleted. refused: the style was removed, or the style to remove is in use.",
      +        "enum": [
      +          "moved",
      +          "missing",
      +          "refused"
      +        ],
      +        "type": "string"
      +      },
      +      "styleId": {
      +        "description": "The style the run would have put in use or removed.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "change",
      +      "styleId",
      +      "reason"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / data / properties / result / properties / refused
      Added value: +{
      +  "description": "Changes the project refused because someone else's edit won. The user's edit stands and the run's other changes are saved.",
      +  "items": {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "change": {
      +            "description": "A new variant of the screen, or putting a variant in use.",
      +            "enum": [
      +              "variant_created",
      +              "variant_used"
      +            ],
      +            "type": "string"
      +          },
      +          "componentId": {
      +            "description": "The variant the run would have made or put in use.",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "moved: the user put another variant in use while the run worked. missing: the screen or the variant was deleted. refused: the screen can't hold variants, or the variant was removed.",
      +            "enum": [
      +              "moved",
      +              "missing",
      +              "refused"
      +            ],
      +            "type": "string"
      +          },
      +          "screenId": {
      +            "description": "Id of the screen. Pass it to a later run to edit this screen.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "change",
      +          "screenId",
      +          "componentId",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "change": {
      +            "const": "style_used",
      +            "description": "Putting a style in use.",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "moved: the user put another style in use while the run worked. missing: the style was deleted. refused: the style was removed.",
      +            "enum": [
      +              "moved",
      +              "missing",
      +              "refused"
      +            ],
      +            "type": "string"
      +          },
      +          "styleId": {
      +            "description": "The style the run would have put in use.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "change",
      +          "styleId",
      +          "reason"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "type": "array"
      +}
  4. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / error / properties / limit
      Added value: +{
      +  "description": "The plan or credit limit that caused this error.",
      +  "enum": [
      +    "agent_access",
      +    "credits",
      +    "projects"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / statusUrl
      Removed value: -{
      -  "description": "Relative REST path for polling this run.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "runId",
      -  "status",
      -  "statusUrl"
      -]New value: +[
      +  "runId",
      +  "status"
      +]
  5. Changed2 schema fields changed
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Pick a unique key for each new design request, such as a UUID. Reuse it for retries to return the original run without a second charge."New value: +"Pick a unique key for each new design request, such as a UUID. Reuse it for retries to return the original run instead of starting a second one."
    • changedOutput schema / properties / data / properties / error / properties / url / description
      Previous value: -"Where the caller's user can resolve this error (e.g. top up credits). Relay it to the user."New value: +"Where the caller's user can resolve this error. Relay it to the user."
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations cover only safety flags (destructive, openWorld, non-idempotent); the description adds the material behavior an agent cannot infer: credits are consumed only on completion or save, one run may be active per project, default blocking wait capped at 270s, and the CONFLICT resolution path. It also discloses the error contract (data.error.url plus message must be relayed before retrying), which is exactly the kind of consequence detail annotations do not carry.

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?

Dense but almost every sentence is actionable, and the core instruction (one message, plan together) is front-loaded before the operational edge cases. It is long and runs as a single unbroken block, so the polling/conflict/error guidance is harder to scan than it could be, but there is little filler.

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?

For a complex, credit-consuming, stateful agentic tool with an output schema and full annotation coverage, the definition covers invocation, concurrency limits, wait semantics, failure handling, and the required follow-up call. An agent has everything needed to call it correctly and recover from the documented failure modes.

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

Parameters5/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning on top: the message parameter must contain every screen in a single request because separate calls produce mismatched screens, and the wait behavior is explained in terms of polling. That clarifies intent for the two most consequential parameters rather than restating the schema.

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: 'Run Sleek's design agent to create or edit screens from a plain-language brief.' It distinguishes creation from editing in the same sentence and makes clear this is an agentic screen-generation tool, not a listing or retrieval tool like its siblings.

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 routes the agent: send the whole brief as ONE message, use screenId to edit instead of create, poll get_design_run when status is queued/running, use cancel_design_run to stop sooner, use screenshot only where the client cannot show apps, and call show_project on completion. It also states the CONFLICT retry procedure and the pre-condition for retrying a failed run.

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.