Skip to main content
Glama

HamroLink Business OS MCP Server

add_website_page

Adds a new page to the user's EXISTING site and links it in the navbar. Exact pre-built page templates exist for /blog (live blog API), /about, /services, /contact, /privacy, and /terms. For all other page intents (e.g. personal portfolio showcases, facility tours, admissions, team, custom landing pages, product showcases), HamroLink builds a theme-aligned custom HTML/CSS page using our declarative SDK attributes (data-hl-contact, data-hl-action) and site theme tokens. You can also pass 'html', 'css', optional browser-side 'js' (executed in an isolated sandboxed iframe), or 'prompt' directly.

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": {
      "pageName": "<pageName>"
    },
    "name": "add_website_page"
  }
}

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).
cssNoOptional scoped CSS styling for the custom HTML page.
htmlNoOptional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page.
slugNoURL path slug (e.g. '/blog', '/services', '/about', '/contact', '/portfolio-v2', '/facility')
promptNoOptional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio with projects and contact form' or 'School science lab and campus facilities').
siteIdNoOptional Site ID. If omitted, applies to the user's active/latest website.
pageNameYesName of the page (e.g. 'Blog', 'Services', 'About Us', 'Contact', 'Portfolio V2', 'Facility')
pageTypeNoTemplate layout structure. Exact templates exist for blog, services, about, contact, privacy, and terms. Use 'custom' or 'blank_html' for custom HTML/CSS/JS pages.
useCustomPrimitivesNoSet to true only if the user explicitly commanded building a custom section-by-section layout instead of using the standard template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds real behavior beyond the annotations (which only say non-read-only, non-destructive, open-world): the page gets linked into the navbar, custom pages are theme-aligned via site theme tokens and data-hl-contact/data-hl-action SDK attributes, and 'js' runs in an isolated sandboxed iframe. It does not say what happens if the slug already exists (error vs overwrite), nor whether the page is live immediately or requires website.publish — a meaningful omission for a mutating tool.

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?

Front-loads the core action and navbar side effect before the template-vs-custom branch, and the long parenthetical example list is the only slightly bloated part. Every sentence carries usable information; nothing is pure filler.

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?

Nine parameters and no output schema mean the description should carry more weight on outcomes. It covers the build paths well, but is silent on the return value (page id/slug/handle), on slug collisions, and on whether a subsequent publish step is needed before the page is public — all of which an agent needs to sequence this call correctly.

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%, so the baseline is 3 and the schema already explains pageName, slug, pageType enum values, and the iframe sandbox for js. The description adds a little beyond that, notably the data-hl-* attributes and theme tokens for composing custom HTML, but it does not clarify how pageType interacts with html/css/js when both are supplied, nor how useCustomPrimitives changes behavior.

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 ('Adds a new page'), plus a concrete scope constraint in caps ('user's EXISTING site') and a side effect ('links it in the navbar'). That implicitly separates it from website.create, but the definition never addresses how it differs from the closely-named sibling page.create, which an agent will also see in the tool list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear decision path: use the exact pre-built templates for /blog, /about, /services, /contact, /privacy, /terms, and use the custom HTML/CSS/SDK path for everything else, with concrete examples of 'other' intents. It also tells the caller they may supply html/css/js/prompt directly. What it lacks is any guidance on choosing between this tool and page.create, or when to use it versus page.update on an existing page.

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.