Skip to main content
Glama

Generate page

generate_html_page
Destructive

Build an interactive page or small tool the user can run, download as an .html file, or open full page: calculators, converters, quizzes. A dashboard over their brain data is a view (generate_view) and a document to read is generate_markdown. Write one self-contained document under about 40,000 characters, with all CSS and JS inline. No external scripts, fonts or images (use data: URLs). No form submits (use input and click handlers). No alert, confirm or prompt. No links that leave the page, no download buttons, no localStorage. Include and a viewport meta, and make it work at 390px wide. Do not put the user's contacts, emails or CRM records into a page unless they asked. The card shows the page, so never paste the HTML into the reply. Pages are free. To change a page later, call update_html_page instead of this. Do not call this again to retry.

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

Input Schema

NameRequiredDescriptionDefault
htmlYesThe whole page: one HTML document with every style and script inline.
titleNoThe page title. Its <title> otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

The description goes well beyond the annotations, disclosing a hard size budget (~40,000 chars), a self-containment rule, a ban on external scripts/fonts/images, form submits, alert/confirm/prompt, outbound links, download buttons and localStorage, plus a 390px responsiveness requirement. It also warns that output renders in a card so HTML must not be pasted into the reply, and states 'Pages are free'. The one gap is that destructiveHint=true is never explained — nothing says what a call overwrites or persists, so the agent must infer the mutation risk.

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?

Purpose and sibling routing are front-loaded, then constraints are delivered as a terse imperative list — almost every sentence carries a distinct rule. It is long, but the length is earned by constraint density rather than padding; only the privacy sentence feels loosely coupled to the rest.

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 generating, side-effecting tool with no output schema, the definition covers the constraints an agent needs to produce a valid artifact and to avoid leaking contact/CRM data. It does not say what the call returns (an id, URL or handle) that update_html_page would later need, which is the main completeness gap given the explicit pointer to that sibling.

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 enriches the 'html' parameter with constraints the schema does not carry: one self-contained document, inline CSS/JS, data: URLs only, a size ceiling, and required <title> and viewport meta. The 'title' parameter is only obliquely addressed ('Include <title>'), so its relationship to the explicit title argument could be clearer.

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?

States a concrete verb and artifact ('Build an interactive page or small tool') with example deliverables (calculators, converters, quizzes) and three consumption modes (run, download .html, open full page). It also names the two nearest siblings, generate_view and generate_markdown, and explains what each of those is for, so an agent can distinguish them without opening a 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 routing: a dashboard over brain data goes to generate_view, a document goes to generate_markdown, and later edits go to update_html_page. It also adds a negative rule ('Do not call this again to retry'), which is exactly the kind of when-not guidance that prevents bad agent loops.

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.