Skip to main content
Glama
agentpages-mcp

agentpages-mcp

create_website

Publish static website files as a public site and return its URL. Upload HTML, CSS, JS, SVG, and images to host generated pages without external dependencies.

Instructions

Publish a static website on AgentPages and return its public URL.

Pass every file of the site in files. Each file has a path (relative, e.g. "index.html" or "css/style.css"), its content, and an encoding: "utf8" for text files (the default) or "base64" for binary files such as images.

Limits (the API rejects anything else):

  • index.html is required at the root.

  • Allowed extensions: html, css, js, svg, png, jpg, jpeg, webp, ico, txt, json.

  • At most 100 files per site, 1 MiB per file after decoding, 5 MiB per request.

  • At most 10 sites per API key.

Sandbox rules (sites are served in a sandbox with an opaque origin):

  • Only classic <script src="..."> works. No ES modules (type="module", import).

  • No fetch/XHR of the site's own files: inline any data in a JS file or the HTML.

  • No localStorage, sessionStorage or cookies.

  • No external network resources: no CDNs, web fonts, remote images or APIs. Ship everything as files in the site, or inline it.

On an error the tool returns ": " from the API (for example index_missing, path_invalid, payload_too_large, validation_error). Fix the files and call the tool again.

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": {
      "files": "<files>"
    },
    "name": "create_website"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full disclosure burden and does it well: it enumerates hard limits (100 files, 1 MiB per file, 5 MiB per request, 10 sites per API key), the sandbox restrictions that will silently break ordinary web code, and the error string format with example codes. The notable omission is whether re-publishing to an existing site replaces it or creates a new one, which affects how an agent retries.

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?

Purpose and return value are front-loaded in one sentence, then constraints are grouped into labeled bullet blocks (limits, sandbox rules) and closed with error handling. Every line supplies information an agent needs to build an accepted payload; there is no filler or restatement of the tool name.

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 mutation tool with no annotations and no output schema, the definition covers the return value, the failure mode, and the payload constraints, which is most of what an agent needs. The gap is lifecycle behavior on repeat calls (overwrite vs. new site) and what a successful response looks like beyond the URL, but nothing essential to a first correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is reported as 0%, so the description must compensate, and it does: it defines `files` as an array carrying every file of the site, explains `path` as relative with concrete examples, `content` as text or base64 depending on encoding, and `encoding` as defaulting to utf8 with base64 for binary assets. It also adds semantics the schema does not carry, such as the required root `index.html` and the allowed extension list.

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 first sentence names a specific verb and resource ('Publish a static website on AgentPages') and states the outcome ('return its public URL'). There are no siblings to disambiguate from, and the scope is unambiguous from the opening line alone.

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 makes clear this is the tool for shipping a complete self-contained site and tells the agent what to do after a failure ('Fix the files and call the tool again'). With no sibling tools, no alternative routing is needed, though it never explicitly says which situations are out of scope (e.g. updating or deleting an existing site).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools