Skip to main content
Glama

Get a design run

get_design_run
Read-onlyIdempotent

Poll a run that design returned as 'queued' or 'running'. Wait a few seconds between polls. On 'completed', data.result.operations lists what the run saved: screens, theme changes, new variants and styles, which ones are in use, and removals. New kinds may be added, so skip any you don't know. Call show_project with this runId to show your user what the run made, inline. Use screenshot only where your client cannot show apps. Then share projectUrl. On 'failed', relay data.error.message to your user, with data.error.url if present. A failed run, including a cancelled one, keeps what it saved in that same list and uses credits only when the list is not empty, as it is for a run that only removed something. Check it before resending the brief.

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>",
      "runId": "<runId>"
    },
    "name": "get_design_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesRun id from data.runId in a design result.
projectIdYesProject id from an item's id in list_projects, or data.id in create_project.

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. Changed1 schema field changed
    • 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.6/5.0
Behavior5/5

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

Annotations already declare this read-only and idempotent, but the description goes well beyond them: it maps each terminal status to behavior, explains that data.result.operations lists saved screens/theme changes/variants/styles/removals, warns that new kinds may appear and should be skipped, and specifies that a failed or cancelled run keeps what it saved and consumes credits only when that list is non-empty. That credit and partial-save semantics are exactly the kind of behavior annotations cannot convey.

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?

The action and polling constraint are front-loaded, then the text branches cleanly by status (completed, failed). It is dense with a slightly stuffed closing sentence about credits, but nearly every clause carries operational meaning.

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 polling tool with an output schema and full annotation coverage, the description supplies everything else an agent needs: polling cadence, status branching, forward-compatibility for unknown operation kinds, how to surface results to the user, error relaying, and credit implications. Nothing material is missing.

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% and both parameters are documented in the schema itself (runId from data.runId, projectId from list_projects or create_project). The description only adds that runId can be reused with show_project, which is a minor increment over the schema's own explanation, so baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Poll a run that design returned as queued or running', which immediately distinguishes it from the sibling that creates runs (design) and the one that cancels them (cancel_design_run). The precondition ('queued' or 'running' status) makes the tool's scope unambiguous without opening the 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?

It states exactly when to call it (a run returned as queued/running), how to call it (wait a few seconds between polls), and which sibling to use next for presentation: show_project with this runId, with screenshot reserved for clients that cannot show apps. It also gives a retry rule at the end: check the run before resending the brief.

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.