Skip to main content
Glama

Create a landing page

create_page

Generate a new landing page from a description. Creates a real page in the workspace (HTML with copy, layout, and imagery), saved as a draft you can open in the editor or publish. Returns the page id, a shareable preview URL to view the result, and its edit URL. Publishing is a separate step. The page is built with the brand you pass as brandId. With none, HTML v2 pages (the default) use the workspace's default brand (see list_brands / save_brand).

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": {
      "description": "<description>"
    },
    "name": "create_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional page name shown in the dashboard. Defaults to a title derived from the description.
brandIdNoOptional brand to build with (id from list_brands / save_brand). Omit to use the workspace's default brand, if it has one.
outlineNoOptional explicit section outline (markdown or plain text). When omitted, the page is structured from the description.
descriptionYesWhat the page is for: the business/offer, audience, key sections, and the primary call to action. The richer this is, the better the page.
workspace_idNoWhich workspace to act in. Only meaningful when this connection can access more than one workspace: omit it and you get an error listing the available workspace ids (also available from list_sites) to choose from. On a single-workspace connection, omit it or pass that workspace's own id; a different id is rejected.

Output Schema

NameRequiredDescriptionDefault
nameYes
noteYesHuman-readable summary of what to do next.
pageIdYesUUID of the new page.
statusYes
editUrlYes
finalizedYesFalse when the page generated and saved but its dashboard record didn't finish updating. The page itself is fine; the list may lag.
truncatedYesTrue if generation hit the output cap and may be cut short.
previewUrlYesShareable link. When previewCurrent is false it may not show the new page for a moment.
imagesFailedYes
previewCurrentNoWhether previewUrl already serves the new page. False means it is saved but the preview may lag a moment; editUrl shows it now. Absent on pages built by the older engine, which serve it at once.
imagesGeneratedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / brandId
      Added value: +{
      +  "description": "Optional brand to build with (id from list_brands / save_brand). Omit to use the workspace's default brand, if it has one.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / previewCurrent
      Added value: +{
      +  "description": "Whether previewUrl already serves the new page. False means it is saved but the preview may lag a moment; editUrl shows it now. Absent on pages built by the older engine, which serve it at once.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / previewUrl / description
      Previous value: -"Shareable link that works immediately."New value: +"Shareable link. When previewCurrent is false it may not show the new page for a moment."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the lone readOnlyHint=false annotation, the description discloses the draft-state outcome, the separate publish step, the returned page id plus preview and edit URLs, and the default-brand fallback behavior. It also conveys the workspace_id error behavior, giving an agent a full picture of what happens on invocation.

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?

The description is front-loaded with the core action and outcome, and every sentence carries useful information. The brand sentence is slightly convoluted ("With none, HTML v2 pages (the default) use..."), which costs a point but does not obscure meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with five parameters and an output schema, the description covers creation, draft state, publishing separation, return values, and brand defaults. An agent has everything needed to call it correctly without additional context.

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 meaning about brandId's default-brand behavior and notes that a richer description yields a better page. It reinforces the optional nature of name and outline rather than merely restating the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 ("Generate a new landing page from a description") and immediately clarifies the concrete effect: a real HTML page saved as a draft in the workspace. This distinguishes it from siblings like add_page_to_site, create_site, and edit_page without needing to open any schema.

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?

It clearly states that publishing is a separate step and explains brand selection, pointing to list_brands / save_brand for ids. It does not explicitly contrast itself with page-creation-adjacent siblings such as add_page_to_site, leaving the agent to infer which entry point to use in multi-page scenarios.

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