Skip to main content
Glama

HamroLink Business OS MCP Server

page.update

Destructive

Updates an existing page. SUPPORTS DIRECT RAW HTML/CSS/JS INJECTION: Pass 'html', 'css', and optional browser-side 'js' (executed in an isolated sandboxed iframe with restrictive CSP) to update or replace the page content with custom handwritten HTML, scoped CSS, and interactive JavaScript (e.g. calculators, quizzes, dynamic product experiences, personal portfolio showcase, custom landing page). You can also pass 'prompt' to have HamroLink automatically style or rewrite the page using site theme tokens and declarative SDK attributes (data-hl-contact, data-hl-action).

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>",
      "slug": "<slug>"
    },
    "name": "page.update"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsNoOptional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP).
cssNoDirect scoped CSS styling for the custom HTML page. Automatically scoped with PostCSS.
seoNoSEO title, description, keywords, image, and structuredData schema
htmlNoDirect custom HTML markup to update or replace the page content with a custom HTML/CSS/JS layout. Automatically sanitized with DOMPurify.
nameNoUpdated page name
slugYesTarget page slug (e.g. '/' or '/about' or '/portfolio-v2-test')
promptNoInstructions or content brief describing what to update or style on the page.
siteIdYesMongoDB Site ID
newSlugNoOptional new URL slug to rename this page (e.g. '/our-services' or '/' to make it the website homepage)
sectionsNoArray of section objects to replace page content (optional if 'html' or 'prompt' is provided)
publishedNoPublication status (default true)
makeHomePageNoSet to true to make this page the primary homepage ('/') of the website. The current homepage will be safely archived to '/home-previous'.
rehydrateWithAiNoSet to true to automatically rewrite or style the page content with AI matching site brand tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation profile is known, and the description usefully adds that the page content can be fully replaced and that injected JS runs in an isolated sandboxed iframe with restrictive CSP. It does not, however, surface notable side effects documented only in the schema, such as makeHomePage archiving the existing homepage to '/home-previous'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first sentence, but the remainder is padded with all-caps emphasis ('SUPPORTS DIRECT RAW HTML/CSS/JS INJECTION') and a long illustrative list (calculators, quizzes, portfolio showcase, landing page) that repeats points already made. Tightening would improve scannability without losing meaning.

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?

For a 13-parameter mutation tool with no output schema, the description covers the HTML/prompt paths well but is silent on renaming (newSlug), homepage promotion with its archival side effect, publication toggling, and SEO fields. An agent could call it correctly for the covered paths but would miss meaningful behaviors reachable through the uncovered parameters.

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%, so the baseline is 3, but the description genuinely adds cross-parameter semantics: it explains the intended combination of html+css+optional js and clarifies that 'prompt' is an alternative generation path. It does not explain how 'sections' relates to 'html' or when newSlug/makeHomePage/published matter.

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?

The description opens with a specific verb and resource ('Updates an existing page') and goes on to enumerate the distinct content-input modes (raw html/css/js versus prompt-driven restyling), which clearly separates it from a create or section-level tool. It never explicitly names a sibling such as page.create or page.add_section, so an agent must infer the boundary from the word 'existing'.

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?

It gives implied mode selection: hand-write html/css/js for full control, or pass 'prompt' to have the platform rewrite/style using theme tokens. However, it offers no explicit when-to-use versus page.create, page.add_section, or site.update_layout, and no statement of prerequisites or when a prompt-driven rewrite should be preferred over direct HTML.

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.