Skip to main content
Glama

Change a site Pugi built

edit
DestructiveIdempotent

Use this when the person asks to change a Pugi website or app from this conversation: "change the headline", "make the buttons green", "add a menu page". instruction is the change in the customer's own words, with only what they asked for. job_id or project_id comes from the last build result. It starts no new site or app. 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.

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": {
      "instruction": "<instruction>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pickNoConsole gallery starter slug.
themeNoConsole theme slug.
job_idNoThe job_id of the build (or of an earlier edit) of the site to change.
localeNoSite language (legacy alias for site_language).
logo_idNoSelected logo_id returned by make_logo.
max_usdNoThe run ceiling in USD; plan edits are included in the subscription. For credit edits, the most this change may cost. Default 2.
languageNoThe language the person is writing in, as a BCP 47 tag such as "ru".
project_idNoOr the project_id of that site.
instructionYesThe change to make, in plain words.
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. 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."
  2. 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"
      +}
  3. 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 change may cost, in USD. Default 2."New value: +"The run ceiling in USD; plan edits are included in the subscription. For credit edits, the most this change may cost. Default 2."
    • addedInput schema / properties / site_language
      Added value: +{
      +  "description": "Language for the website content; independent of the chat card language.",
      +  "type": "string"
      +}
  4. 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"
      +}
  5. Added
  6. Removed
  7. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=true, so the bar is lower, and the description still adds host-dependent behavior: card-tracked progress in MCP Apps/ChatGPT widgets vs. polling job_status in Claude Code or the API. It also discloses the confirmation gate ("without it nothing starts and the summary comes back"). What it does not disclose is the blast radius of a destructive edit — whether a change can overwrite prior site content — leaving that to the annotation 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?

The trigger condition and example utterances are front-loaded where an agent will read them first, and the closing sentence covers host variation without repetition. It is a single dense paragraph, however, and the progress-reporting clause could have been split out for faster 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 15-parameter, non-read-only tool with no output schema, the description covers the conversational trigger, identifier sourcing, the confirmation requirement and how completion is observed. It stops short of saying what a successful edit returns or how a failed/stopped job should be surfaced to the person, though the job_status reference partly covers the latter.

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%, which normally sets a baseline of 3, but the description earns extra credit by constraining how instruction should be authored: "the change in the customer's own words, with only what they asked for". It also fixes the provenance of job_id/project_id, which the schema only labels as identifiers.

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 concrete verb and resource ("change a Pugi website or app") and gives three literal example requests ("change the headline", "make the buttons green", "add a menu page"). It also draws an explicit boundary against the sibling that could be confused with it: "It starts no new site or app", separating it from build_site/build_app.

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 reach for it (the person asks to modify something built in this conversation) and where the identifiers come from ("job_id or project_id comes from the last build result"). It names the alternative tracking path when no card renders — "job_status reports it until the job is finished, stopped or failed" — so the agent knows which sibling to call next.

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.