Skip to main content
Glama

Publish files you wrote

publish_files
Destructive

Publishes one or more files written here — markdown, HTML, CSS, JSON, source code, any text — as a site, and returns its URL. A single page goes at index.html; a single .md or .markdown file is a site on its own, served through the documents viewer. Text only: this connector cannot publish a PDF, an image or an Office file. To hold an address before the content exists — the person asks for the site first and the files later — publish a placeholder index.html with subdomain, then publish the real files over it with site. There is no way to create an empty site.

Input Schema

NameRequiredDescriptionDefault
siteNoSubdomain or site id to publish over. Omit to create a new site.
filesYesThe files to publish.
folderNoFolder to file the new site in, when the person asked for one: its path of names such as Clients/Acme, or its id from list_folders. Only for a new site — do not pass it together with `site`; moving an existing site is update_site's `folder`. It never creates a folder: a folder that does not exist is refused with the list of those that do, and nothing is published.
subdomainNoSubdomain to create the new site under, when the person asked for a particular address. Only for a new site: leave it out to publish over an existing one, and do not pass it together with `site`. Ask rather than inventing one — the name is the URL somebody will be given, changing it later spends one of the few changes a site gets, and an unused site made under a guessed name has to be deleted by hand.

Output Schema

NameRequiredDescriptionDefault
urlYesThe live URL of the published site.
filesYesHow many files the site now serves.
siteIdYesIdentifier of the site, stable across publishes.
subdomainYesThe site's subdomain, which is what `site` accepts.
unchangedYesTrue when every file already matched what the site served, so no new version was published.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds real constraints beyond the annotations: text-only (no PDF, image, or Office files), always returns a URL, and no empty sites are possible. Annotations already declare destructive/non-idempotent/openWorld, so the bar is lower; the description could go further in spelling out what gets overwritten when publishing over an existing site.

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 return value, then layered with constraints and workflow. It is longer than most definitions but each sentence carries a distinct rule; the middle clause about markdown serving through the documents viewer is the only slightly expendable part.

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?

Covers content-type limits, the new-site vs existing-site flows, the placeholder pattern, and the empty-site impossibility, and an output schema exists so return-value detail is unnecessary. For a destructive, open-world publish tool, little an agent needs is missing.

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 genuine meaning: the subdomain-vs-site decision, the placeholder-then-overwrite workflow, and the warning that a guessed subdomain is costly and changeable only a few times. File path/content semantics are left to the schema, which is acceptable.

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 specific verb and resource — publishes files as a site and returns its URL — plus the accepted content types. It clearly separates itself from siblings like update_site and get_site by describing the create/publish action rather than retrieval or modification.

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?

Gives conditional guidance: use a placeholder index.html plus `subdomain` when an address is needed before content exists, then publish the real files with `site`, and notes an empty site is impossible. It stops short of naming update_site/rollback_site as alternatives for later content edits, though the schema's `folder` field covers the update_site routing.

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.