Skip to main content
Glama

Yuppsy

website_builder_set_site_map_hierarchy

Destructive

Replace the complete page hierarchy. Include each page once, use zero for root, and do not create cycles.

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>",
      "hierarchy": "<hierarchy>"
    },
    "name": "website_builder_set_site_map_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesWebsite ID.
hierarchyYesComplete page hierarchy with IDs, parent IDs and sibling order.

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.8/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, but the description adds real context: this is a full replacement, not a merge. The invariants (each page once, zero for root, no cycles) tell the agent what a valid payload looks like and imply failure modes on malformed input. It does not say whether omitted pages are deleted or what permissions are required, keeping it below 5.

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?

One sentence, front-loaded with the destructive full-replacement action, followed by three terse constraints. Every clause carries information an agent would otherwise have to guess, and there is no redundant restatement of the schema or title.

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?

The tool is simple (2 parameters, output schema present, annotations present), and the description covers the action, the payload shape expectation, and the validity constraints. Remaining gaps — permission requirements, behavior toward pages absent from the new hierarchy, and error/response semantics — are partly offset by the output schema but not fully covered.

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 coverage is 100%, so the schema already documents siteId and the hierarchy array of id/path/order/parentItemId objects, which sets the baseline at 3. The description adds one genuinely non-obvious semantic — that parentItemId 0 means root, and that cyclic or duplicated entries are invalid — but otherwise does not go beyond the schema. A slight edge over baseline, not enough to move to 4.

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: "Replace the complete page hierarchy." The word "complete" makes clear this is a whole-structure overwrite rather than an incremental edit, which distinguishes it from page-level siblings like update_page. It does not name a sibling alternative explicitly, so it stops short of a 5.

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 description implies the use case (bulk replacement of the whole tree) but never says when to prefer this over per-page tools such as update_page or create_page, nor what happens if the hierarchy is partial. Usage is inferable from "Replace the complete page hierarchy" but no exclusions or prerequisites are stated.

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