Skip to main content
Glama

Build a website

build_site
DestructiveIdempotent

Use this when the person wants a marketing website for a business, for example "a site for my bakery". Something people use (upload a photo, AI pictures, sign-in, a tool, a game) is an app, made with build_app. brief is the customer's request in the customer's own words, with only the features they asked for (no sign-up, accounts, subscriptions or payments they did not name). The first call starts nothing and returns a summary; its action.arguments start the build once the person agrees. In hosts that render the build card (MCP Apps or ChatGPT widget) the card tracks progress; in hosts without one (Claude Code or API) job_status reports it until the job is finished, stopped or failed. Changes to a built site go through edit.

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": {
      "brief": "<brief>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "build_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
pickNoConsole gallery starter slug.
briefYesThe customer's request in their own words: what the site is for and any pages, texts, colours or style they named, with only the features they asked for.
themeNoConsole theme slug.
localeNoSite language (legacy alias for site_language).
as_siteNoTrue only when Pugi said this sounds like an app (app_suggested) and the person chose a marketing website anyway.
logo_idNoSelected logo_id returned by make_logo.
max_usdNoThe run ceiling in USD; plan builds are included in the subscription. For credit builds, the most this build may cost. Default 5. Credit accounts pay actual cost, usually less.
languageNoThe language the person is writing in, as a BCP 47 tag such as "ru".
without_logoNoTrue only when the person said this site should not use the logo they picked.
brief_versionNoWith brief_confirmed: the version of the summary the person agreed to, as returned with that summary.
site_languageNoLanguage for the website content; independent of the chat card language.
brandHandoffIdNoBrandHandoff from logo.pugi.io.
brief_confirmedNoTrue only after the person has seen the summary and agreed. In a chat, without it nothing starts and the summary comes back.
idempotency_keyYesA unique string naming this job. The same key returns the same job and is never charged twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / brief / description
      Previous value: -"The customer's request in their own words: what the site is for and any pages, texts, colours or style they named. Do not add features they did not ask for."New value: +"The customer's request in their own words: what the site is for and any pages, texts, colours or style they named, with only the features they asked for."
  2. Changed1 schema field changed
    • addedInput schema / properties / as_site
      Added value: +{
      +  "description": "True only when Pugi said this sounds like an app (app_suggested) and the person chose a marketing website anyway.",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / brief_confirmed / description
      Previous value: -"With logo_id: true only after the person has seen the summary from select_logo and agreed. Without it nothing starts and the summary comes back."New value: +"True only after the person has seen the summary and agreed. In a chat, without it nothing starts and the summary comes back."
    • changedInput schema / properties / brief_version / description
      Previous value: -"With brief_confirmed: the version of the summary the person agreed to, from select_logo."New value: +"With brief_confirmed: the version of the summary the person agreed to, as returned with that summary."
  4. Changed4 schema fields changed
    • addedInput schema / properties / brief_confirmed
      Added value: +{
      +  "description": "With logo_id: true only after the person has seen the summary from select_logo and agreed. Without it nothing starts and the summary comes back.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / brief_version
      Added value: +{
      +  "description": "With brief_confirmed: the version of the summary the person agreed to, from select_logo.",
      +  "maxLength": 32,
      +  "type": "string"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "The language the person is writing in, as a BCP 47 tag such as \"ru\".",
      +  "maxLength": 35,
      +  "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
      +  "type": "string"
      +}
    • addedInput schema / properties / without_logo
      Added value: +{
      +  "description": "True only when the person said this site should not use the logo they picked.",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / brief / description
      Previous value: -"What the site is for, who it is for, the pages and sections it needs, and any texts, colours or style it should use."New value: +"The customer's request in their own words: what the site is for and any pages, texts, colours or style they named. Do not add features they did not ask for."
  6. Changed3 schema fields changed
    • changedInput schema / properties / locale / description
      Previous value: -"Site language."New value: +"Site language (legacy alias for site_language)."
    • changedInput schema / properties / max_usd / description
      Previous value: -"The most this build may cost, in USD. Default 5. You pay the actual cost, usually less."New value: +"The run ceiling in USD; plan builds are included in the subscription. For credit builds, the most this build may cost. Default 5. Credit accounts pay actual cost, usually less."
    • addedInput schema / properties / site_language
      Added value: +{
      +  "description": "Language for the website content; independent of the chat card language.",
      +  "type": "string"
      +}
  7. Changed5 schema fields changed
    • addedInput schema / properties / brandHandoffId
      Added value: +{
      +  "description": "BrandHandoff from logo.pugi.io.",
      +  "type": "string"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Site language.",
      +  "type": "string"
      +}
    • addedInput schema / properties / logo_id
      Added value: +{
      +  "description": "Selected logo_id returned by make_logo.",
      +  "type": "string"
      +}
    • addedInput schema / properties / pick
      Added value: +{
      +  "description": "Console gallery starter slug.",
      +  "type": "string"
      +}
    • addedInput schema / properties / theme
      Added value: +{
      +  "description": "Console theme slug.",
      +  "type": "string"
      +}
  8. Added
  9. Removed
  10. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the non-obvious two-phase protocol: the first call 'starts nothing and returns a summary' whose action.arguments begin the build only after agreement. It also explains how progress is observed differently by host (build card in MCP Apps/ChatGPT vs job_status in Claude Code/API) and constrains brief content ('no sign-up, accounts, subscriptions or payments they did not name'). This is material behavior an agent could not infer from openWorldHint/destructiveHint/idempotentHint alone.

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?

It is front-loaded with the selection rule and a concrete example, and every sentence carries routing or protocol information. The middle section runs long without paragraphing, packing brief hygiene, the two-step confirm flow, and progress-reporting into one dense block, which slightly slows scanning.

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?

For a 14-parameter, world-touching mutation with no output schema, the description covers the decision rule, the confirmation protocol, and progress observation. What it omits is the cost dimension: max_usd and the credit/plan distinction live only in the schema, and the description never warns that a build spends money, which is relevant given destructiveHint=true.

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 description coverage is 100%, so the baseline is 3; the description still earns a point by giving the rationale behind the most important parameter — brief must be in the customer's own words and contain only requested features, which reinforces the schema's wording and prevents scope-creep. It adds nothing for the other 13 parameters (pick, theme, max_usd, brandHandoffId, etc.), which are left entirely to 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?

The description names the concrete artifact ('a marketing website for a business') with a concrete example, and explicitly separates it from the sibling it is most likely to be confused with: 'Something people use (upload a photo, AI pictures, sign-in, a tool, a game) is an app, made with build_app.' An agent can route between build_site and build_app without opening either 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 gives an explicit trigger condition ('when the person wants a marketing website for a business'), an explicit exclusion with the correct alternative (apps go to build_app), and a follow-on route for post-build changes ('Changes to a built site go through edit'). It also states the prerequisite for the build actually starting (the person agreeing to the summary), which is the key usage gate.

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.