Skip to main content
Glama

Save page content

save_page_content

Save a new version of a Convika landing page's HTML. ページ内容の保存・更新・デザイン変更。

What a save changes: it adds the HTML as a new version and removes or overwrites nothing. The live page and the current preview link stay as they are until you call create_preview (and publish_site, when the user asks), so call create_preview after saving for the user to review.

Saved versions stay in the page's history for rollback_site (how many: see rollback_site).

Workflow: create_site (if new) → save_page_content → create_preview. Use publish_site only after explicit user approval to go live. Adding a form to a new page: create_landing_page_preview → create_form → save_page_content with the form embed → create_preview.

Use "sections" to describe each in your HTML. Each section needs a "description" (what it does and why, at least 20 characters) and a "sequencePosition" (0-indexed, matching order). The "patterns" parameter is also accepted for backward compatibility.

HTML guidelines:

  • Complete HTML document (...) with Tailwind CSS v3

  • Include in :

  • Each section MUST be wrapped in a tag (for content tracking)

  • css parameter: only for styles Tailwind cannot express

  • js parameter: Pro plan and above only

  • If the page has cta_click goals (check with list_goals), add data-cta="primary" to the main CTA buttons/links for accurate conversion tracking

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>",
      "html": "<html>"
    },
    "name": "save_page_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsNoJavaScript for interactive elements (Pro plan and above only)
cssNoCustom CSS for styles that cannot be expressed with Tailwind utilities
htmlYesComplete HTML document using Tailwind CSS v3 utility classes. Must include Tailwind CDN script in <head>. The page (html, css, and js together) can be up to 2 MB.
siteIdYesThe ID of the page to save content to
patternsNoPatterns used in this page. Accepted for backward compatibility — prefer sections instead.
sectionsNoSections in the page. Each describes a <section> in the HTML with its purpose, position, and optional layout geometry used for optimization and DCNv3 features.
changelogNoDescription of changes in this version
designOverridesNoOptional bounded design knob overrides. Supported keys: ctaEmphasis, visualDensity, contrastStrength, motionIntensity, cornerRoundness, shadowDepth, trustSignalDensity, proofProminence.
designProfileIdNoOptional design profile ID.
designRationaleNoShort explanation for why this design profile or override set was chosen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / html / description
      Previous value: -"Complete HTML document using Tailwind CSS v3 utility classes. Must include Tailwind CDN script in <head>. The page (html, css, and js together) can be up to 4 MB."New value: +"Complete HTML document using Tailwind CSS v3 utility classes. Must include Tailwind CDN script in <head>. The page (html, css, and js together) can be up to 2 MB."
  2. Changed1 schema field changed
    • changedInput schema / properties / html / description
      Previous value: -"Complete HTML document using Tailwind CSS v3 utility classes. Must include Tailwind CDN script in <head>. The page (html, css, and js together) can be up to 2 MB."New value: +"Complete HTML document using Tailwind CSS v3 utility classes. Must include Tailwind CDN script in <head>. The page (html, css, and js together) can be up to 4 MB."
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to save content to"New value: +"The ID of the page to save content to"
  5. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description explains the actual mutation semantics: it appends a new version, "removes or overwrites nothing," and the live page plus current preview link stay unchanged until create_preview. The js Pro-plan restriction and rollback history retention are also disclosed. Minor gap: the 2 MB page-size limit lives only in the schema, and no error/failure behavior is described.

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-loaded with the core action and its consequences, then organized into labeled workflow and HTML-guideline lists that are easy to scan. It is on the long side and duplicates some schema text (sections/patterns, css/js), and the stray Japanese sentence adds no new information for an English-reading agent.

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 10-parameter, nested-object mutation tool with no output schema, the definition covers the sequencing, the destructive-safety story, the required HTML structure (DOCTYPE, Tailwind CDN, <section> wrappers), and conversion-tracking attributes. What is missing is modest: it never says what the call returns (version identifier, success shape), which an agent would otherwise need after saving.

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 earns more by restating the intended usage of `sections` (one entry per <section>, description of at least 20 characters, 0-indexed sequencePosition matching HTML order) and by flagging `patterns` as backward-compatibility only. The css/js constraints are also reinforced: css only for what Tailwind cannot express, js for Pro plan and above.

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?

Opens with a specific verb+resource: "Save a new version of a Convika landing page's HTML," and immediately distinguishes it from create_preview and publish_site by contrast. An agent knows this is the versioning write step, not the publish or preview step, without opening 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 Guidelines5/5

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

Gives explicit workflow chains (create_site → save_page_content → create_preview, and the form variant create_landing_page_preview → create_form → save_page_content → create_preview) plus a clear guardrail: publish_site only after explicit user approval. It also names the read-side prerequisite list_goals when cta_click goals exist.

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.