Skip to main content
Glama

Yuppsy

website_builder_delete_page

Destructive

Delete a page if it has no child pages or page references.

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": {
      "siteId": "<siteId>",
      "pageId": "<pageId>"
    },
    "name": "website_builder_delete_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesPage ID.
siteIdYesWebsite ID.

Output Schema

NameRequiredDescriptionDefault
pageNoPage data, including the created page on a partial failure.
errorNo
itemsNoPage IDs that reference a page whose deletion was blocked.
catalogNoSlim component catalog returned by get_template_components.
successNo
warningNo
websiteNoComplete website structure returned by get_structure, including template/version, all pages and site-wide components.
componentNoComponent field map and content defaults returned by get_template_component.
websiteIdNoCreated website ID, including on partial creation failure.
statusCodeNo
integrityErrorsNoIntegrity errors, when returned by the checker or repair.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / catalog
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Slim component catalog returned by get_template_components.",
      +  "properties": {
      +    "components": {
      +      "anyOf": [
      +        {
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "items": {
      +        "properties": {
      +          "attributes": {
      +            "anyOf": [
      +              {
      +                "type": "array"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "items": {
      +              "$ref": "#/properties/page/properties/content/items/properties/templateBlockAttributesObject/items"
      +            }
      +          },
      +          "blockName": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Component type to use as blockName when saving content."
      +          },
      +          "blockParseName": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Exact compiled component identifier to use as blockParseName when saving content."
      +          },
      +          "compiledSourceName": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "thumbnail": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "templateId": {
      +      "type": "integer"
      +    },
      +    "templateVersion": {
      +      "anyOf": [
      +        {
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "properties": {
      +        "details": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "headId": {
      +          "type": "integer"
      +        },
      +        "id": {
      +          "type": "integer"
      +        },
      +        "major": {
      +          "type": "integer"
      +        },
      +        "minor": {
      +          "type": "integer"
      +        },
      +        "revision": {
      +          "type": "integer"
      +        },
      +        "templateId": {
      +          "type": "integer"
      +        }
      +      }
      +    },
      +    "websiteId": {
      +      "type": "integer"
      +    }
      +  }
      +}
    • addedOutput schema / properties / component
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Component field map and content defaults returned by get_template_component.",
      +  "properties": {
      +    "attributes": {
      +      "anyOf": [
      +        {
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "items": {
      +        "$ref": "#/properties/page/properties/content/items/properties/templateBlockAttributesObject/items"
      +      }
      +    },
      +    "blockName": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "blockParseName": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "blockTypes": {
      +      "anyOf": [
      +        {
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "items": {
      +        "type": "string"
      +      }
      +    },
      +    "defaultData": {
      +      "description": "Clean content defaults from the editor resolver. Null for editor-ignored components. Serialize this value to JSON for the page component data string."
      +    },
      +    "isDynamic": {
      +      "type": "boolean"
      +    },
      +    "isEditorIgnored": {
      +      "type": "boolean"
      +    },
      +    "isSiteComponent": {
      +      "type": "boolean"
      +    },
      +    "map": {
      +      "anyOf": [
      +        {
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Structured template field map, including nested fields and editability metadata."
      +    },
      +    "templateId": {
      +      "type": "integer"
      +    },
      +    "templateVersion": {
      +      "anyOf": [
      +        {
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "properties": {
      +        "details": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "headId": {
      +          "type": "integer"
      +        },
      +        "id": {
      +          "type": "integer"
      +        },
      +        "major": {
      +          "type": "integer"
      +        },
      +        "minor": {
      +          "type": "integer"
      +        },
      +        "revision": {
      +          "type": "integer"
      +        },
      +        "templateId": {
      +          "type": "integer"
      +        }
      +      }
      +    },
      +    "thumbnail": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "websiteId": {
      +      "type": "integer"
      +    }
      +  }
      +}
    • addedOutput schema / properties / website
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Complete website structure returned by get_structure, including template/version, all pages and site-wide components.",
      +  "properties": {
      +    "companyId": {
      +      "type": "integer"
      +    },
      +    "created": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "domain": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "domainId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "footerData": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "footerParseName": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "guid": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "icon": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "iconFileId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "id": {
      +      "type": "integer"
      +    },
      +    "isDefault": {
      +      "type": "boolean"
      +    },
      +    "isDirty": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "isLive": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "logoText": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "logoUri": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "logoUriFileId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "menuData": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "menuParseName": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "pages": {
      +      "anyOf": [
      +        {
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "items": {
      +        "properties": {
      +          "content": {
      +            "$ref": "#/properties/page/properties/content",
      +            "items": {}
      +          },
      +          "id": {
      +            "type": "integer"
      +          },
      +          "isHidden": {
      +            "type": "boolean"
      +          },
      +          "isHome": {
      +            "type": "boolean"
      +          },
      +          "isNonClick": {
      +            "type": "boolean"
      +          },
      +          "isRef": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "order": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "parentId": {
      +            "type": "integer"
      +          },
      +          "path": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "userSiteId": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "siteComponents": {
      +      "anyOf": [
      +        {
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "items": {
      +        "properties": {
      +          "blockName": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "blockParseName": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "data": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "dataEdit": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "id": {
      +            "type": "integer"
      +          },
      +          "options": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "templateBlockAttributes": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "templateBlockAttributesObject": {
      +            "anyOf": [
      +              {
      +                "type": "array"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "items": {
      +              "$ref": "#/properties/page/properties/content/items/properties/templateBlockAttributesObject/items"
      +            }
      +          },
      +          "userSiteId": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "siteType": {
      +      "enum": [
      +        "Company",
      +        "Agent",
      +        "Property"
      +      ],
      +      "type": "string"
      +    },
      +    "siteTypeData": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "subDomainId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "subdomain": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "templateId": {
      +      "type": "integer"
      +    },
      +    "templateVersion": {
      +      "anyOf": [
      +        {
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "properties": {
      +        "details": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "headId": {
      +          "type": "integer"
      +        },
      +        "id": {
      +          "type": "integer"
      +        },
      +        "major": {
      +          "type": "integer"
      +        },
      +        "minor": {
      +          "type": "integer"
      +        },
      +        "revision": {
      +          "type": "integer"
      +        },
      +        "templateId": {
      +          "type": "integer"
      +        }
      +      }
      +    }
      +  }
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description still adds genuine value beyond them by disclosing the referential-integrity guard: deletion is conditional on the page having no children or references. It stops short of saying what happens when the guard fails (error vs. silent no-op) or whether the operation is reversible.

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?

A single sentence with zero filler, front-loading the action and immediately following with the constraint. Nothing is redundant or padded.

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?

An output schema exists and both parameters are documented, so return values and inputs are covered elsewhere. The remaining gap is the blocked-deletion path: an agent cannot tell from this definition whether the call errors out, no-ops, or requires pre-cleaning of children, which matters for a destructive tool.

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 (siteId, pageId) are documented in the schema, so the description adds no parameter-level meaning. Baseline 3 applies since the schema carries the full burden.

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?

States a specific verb and resource ('Delete a page') plus a gating condition ('if it has no child pages or page references'), which separates it from website_builder_update_page and website_builder_delete. It does not name a sibling explicitly, so differentiation is inferred from the resource noun rather than stated.

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?

The precondition implies when the tool is applicable, but there is no explicit when-not guidance, no instruction for the blocked case (e.g., delete child pages first, or use another tool), and no mention of alternatives among the many sibling delete tools.

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.

Resources