Skip to main content
Glama

Write site files

write_site_files
Destructive

Push files (HTML/CSS/JS/images) into a site's DRAFT — use this when YOU are writing the code yourself instead of asking sitectrl's AI. Text files go in 'content'; binary files (images/fonts) in 'content_base64'. Max 40 files/call, 2 MB/file. Keep the include on every HTML page (the site's built-in private analytics — publish re-adds it if missing). Use clearly-marked placeholder contact info unless the user provided real details. For working forms, POST to /_sc/form/submit with a hidden _form name field — submissions reach the owner's dashboard + email (never use mailto:). Follow with publish_site to go live.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes
filesYes

TDQS

A5/5.0
Behavior5/5

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

Beyond annotations, the description reveals important behavioral constraints: the 40-file/2MB limits, the content vs content_base64 split, the mandatory sc-track.js include and that publish re-adds it, placeholder contact info expectations, and the form submission mechanism with the no-mailto rule. This is substantial context that annotations alone do not provide.

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?

The description is dense but every sentence adds actionable guidance: when to use, file placement, limits, required script, placeholder rules, form handling, and next step. It is front-loaded with the core purpose and avoids filler.

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 write tool with no output schema, the description covers input semantics, limits, required content conventions, and the follow-up publish step. Nothing critical is missing for an agent to correctly invoke the tool and understand the draft vs live workflow.

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 0%, so the description must carry parameter meaning. It explicitly maps text files to 'content' and binary files to 'content_base64', and the path parameter already has schema guidance. The slug parameter is not explicitly explained, but the phrase 'a site's DRAFT' makes its role inferable.

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 starts with a specific verb and resource: 'Push files into a site's DRAFT' and clarifies the author is writing code directly rather than delegating to sitectrl's AI. It also names publish_site as the follow-up, distinguishing the write action from going live.

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?

Explicitly states the trigger condition: 'use this when YOU are writing the code yourself instead of asking sitectrl's AI.' It also gives post-condition guidance with 'Follow with publish_site to go live,' which tells the agent what to do next after writing files.

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.

TDQS

A4.1/5.0
Disambiguation4/5

Each tool maps to a distinct action/resource, with create, edit, file access, publishing, status, analytics, domains, and account clearly separated. The only possible ambiguity is edit_site vs write_site_files, since both modify a draft, but the descriptions clarify AI edit vs direct file push.

Naming Consistency4/5

Most tools follow a predictable verb_noun snake_case pattern (create_site, list_sites, publish_site), which makes the set easy to navigate. Minor deviations: whoami doesn't follow the pattern, and get_analytics omits the site qualifier.

Tool Count5/5

Twelve tools is a well-scoped size for a hosted website builder; the set covers creation, editing, file management, publishing, build status, analytics, domains, and account access. Each tool earns its place without bloating the surface.

Completeness4/5

The surface covers the core lifecycle well: create, draft/file read/write, publish, status, listing/details, analytics, and account. Missing delete/unpublish and a tool for reading form submissions are gaps, but they are minor relative to the covered workflows.

Resources