Skip to main content
Glama

HamroLink Business OS MCP Server

page.create

Creates and publishes a new page on an existing website and links it to the navbar. Exact pre-built 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, interactive calculators/quizzes, product catalogs), HamroLink automatically constructs a tailored, theme-aligned custom HTML/CSS page with declarative SDK actions. You can 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": {
      "siteId": "<siteId>",
      "name": "<name>",
      "slug": "<slug>"
    },
    "name": "page.create"
  }
}

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.
seoNoSEO title, description, keywords, image, and structuredData schema
htmlNoOptional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page.
nameYesName of the new page (e.g. 'Portfolio V2', 'Blog', 'About Us', 'Facility', 'Scholarships')
slugYesURL slug for the new page (e.g. '/portfolio-v2', '/blog', '/about', '/facility', '/scholarships')
promptNoOptional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio showcase with projects and interactive contact form' or 'School science lab and campus facilities').
siteIdYesMongoDB Site ID
sectionsNoOptional. Leave omitted to automatically use HamroLink's pre-built template or custom synthesis. Only provide if constructing custom sections, and include complete data for each section.
publishedNoSet true to publish immediately
templateIdNoTemplate layout key. Use 'blank_html' for an empty custom HTML/CSS/JS canvas page, or 'about'/'services'/'contact'/'privacy'/'terms' for exact page templates.
useCustomPrimitivesNoSet true only if the user explicitly requests custom primitives instead of the standard template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the page is published and linked into the navbar immediately, and browser-side JS runs in an isolated sandboxed iframe with a restrictive CSP. It also discloses the automatic custom-synthesis fallback. It does not say what happens on a slug collision or what identifier is returned, which is a gap for a create tool.

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?

Front-loaded with the core action in the first sentence, then template coverage, then custom synthesis, then input modes. The parenthetical list of example intents is long but each example disambiguates the custom-synthesis path, so nothing is wasted.

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 12-parameter mutation tool with nested objects and no output schema, the description covers templates, publishing, navbar linking, the sandbox for JS, and the prompt-driven fallback. It omits the return value, slug-conflict behavior, and how it differs from add_website_page.

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 adds genuine meaning: it explains the alternative construction paths ('html', 'css', optional 'js', or 'prompt' directly) and the template-versus-custom split. That helps an agent choose among mutually exclusive parameters rather than just reading them.

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 plus a side effect: 'Creates and publishes a new page on an existing website and links it to the navbar.' That goes beyond restating the name. It does not distinguish itself from the sibling add_website_page or from page.update, so an agent facing those names must infer the difference.

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 clear routing logic: exact pre-built templates exist for /blog, /about, /services, /contact, /privacy, /terms, and every other intent is handled by automatic theme-aligned custom synthesis. It also says which input mode to use (html/css/js versus a prompt). It never says when to call page.update or add_website_page instead, so the exclusion guidance is incomplete.

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.