Skip to main content
Glama

Publish a website to hosting

spark_publish_site
DestructiveIdempotent

Publish a small website the assistant wrote (index.html plus optional about, services, pricing, gallery, faq, contact .html and styles.css) into the public_html of the chosen domain (one hosting account can hold several, each with its own site). Content is checked and sanitised like Spark sites; existing index and same-named files are copied to a gh-backup folder first, nothing is deleted. No Spark charge. Give files, or read them from a bucket folder with storage_*. Needs confirm: true.

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": {
      "site_name": "<site_name>"
    },
    "name": "spark_publish_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoSite files. Allowed names: index.html, about.html, services.html, pricing.html, gallery.html, faq.html, contact.html, styles.css.
domainNoWhich domain gets the site: the main domain or any other domain on that hosting account (each has its own public_html). Without service_id, the account holding it is found.
confirmNoMust be true. Set it only after the customer has explicitly confirmed this exact change.
site_nameYesBusiness or site name.
service_idNoHosting service id, as returned by the matching list tool.
storage_bucketNo
storage_prefixNoBucket folder that holds the site files, e.g. "sites/example.com/".
storage_regionNo
storage_service_idNoObject Storage service (only when reading the files from a bucket) id, as returned by the matching list tool.

Output Schema

NameRequiredDescriptionDefault
domainNo
writtenNo
warningsNo
backed_upNo
backup_dirNo
existing_siteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations (destructiveHint=true, idempotentHint=true, readOnly=false) are backed by real detail: content is checked/sanitised, existing index and same-named files are copied to gh-backup before overwrite, nothing is deleted, and no Spark charge is made. The confirm:true gate after explicit customer confirmation is also disclosed, which is exactly the mutation context an agent needs.

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 purpose and location, then behavior, then the confirm requirement. Dense and largely waste-free, though some sentences are run-on and the parenthetical file list duplicates the schema's allowed-names description.

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 9-parameter destructive mutation with an output schema present, the description covers the important unknowns: overwrite/backup semantics, sanitisation, cost, and the confirmation gate. Only edge behaviors (validation failures, partial writes) are unaddressed, which is acceptable given the output schema.

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

Parameters3/5

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

Schema coverage is 78%, so the schema already documents files, domain, confirm, service_id and the storage_* fields. The description adds meaning mainly for the input-mode choice (files vs bucket) and reinforces the confirm gate; it adds little on site_name or on how service_id is resolved beyond what the schema says.

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 (publish) and resource (a small website with named files) plus the exact target location (public_html of the chosen domain). It also distinguishes scope from siblings by noting a hosting account can hold several domains, each with its own public_html.

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?

Clear context for when to use it: publishing an assistant-authored small site, with two input routes spelled out (pass files, or read them from a bucket folder via storage_*). It does not name a when-not condition or an alternative sibling such as spark_save_site_to_storage, so routing between the two is left partly to inference.

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.