Skip to main content
Glama

Deploy a static site

deploy_site
Destructive

Publishes a static website to harvis.dev and returns its live public URL. No account or authentication is needed. Takes every file of the site (HTML, CSS, JS, images...) with its path relative to the site root; an index.html is expected. Returns the live 'url', a private 'claimUrl' and a private 'deployToken'. Opening claimUrl and signing in (free) attaches the site to an account so it can be edited or deleted later; the link cannot be recovered if lost, and an unclaimed site is permanently deleted 24 hours after its last deploy. Passing deployToken on a later call replaces that site's files in place (before or after claiming) instead of creating a new site. The token identifies the site by itself; subdomain is an optional guard against updating the wrong site.

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": "deploy_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional human-friendly site name.
filesYesEvery file of the site. Total size limit: 50 MB.
subdomainNoOptional check when updating: the subdomain of the site the deployToken belongs to. Has no effect without deployToken.
deployTokenNoTo UPDATE an existing site: the private deploy token returned by the deploy that created it (also shown in the dashboard).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / deployToken / description
      Previous value: -"The site's private deploy token returned by the deploy that created it (also shown in the dashboard). Requires subdomain."New value: +"To UPDATE an existing site: the private deploy token returned by the deploy that created it (also shown in the dashboard)."
    • changedInput schema / properties / subdomain / description
      Previous value: -"To UPDATE an existing site instead of creating a new one: the site's subdomain from an earlier deploy. Requires deployToken."New value: +"Optional check when updating: the subdomain of the site the deployToken belongs to. Has no effect without deployToken."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destruction (destructiveHint=true) and non-idempotency, and the description adds genuinely new behavioral facts: no auth required, claimUrl is irrecoverable, and unclaimed sites are permanently deleted 24 hours after the last deploy. That deletion/claim lifecycle is the key context an agent needs before invoking it and is not present in structured fields.

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 return values, then the claim/token lifecycle. Dense but each sentence carries operational information; minor cost is that the claim/deletion rules and update rules sit in one long block.

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?

With no output schema, the description compensates by naming the three returned values (url, claimUrl, deployToken) and by explaining the update path and unclaimed-site expiry. Only minor gaps remain, such as how errors surface on deploy failure.

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 meaning beyond it by clarifying that deployToken alone identifies the site and that subdomain is only a guard against updating the wrong site. Files semantics (paths relative to root, index.html expected) also enrich rather than repeat the schema.

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 a static website to harvis.dev") plus the return value, so an agent knows exactly what the tool produces. Adding the deployment target host makes it distinguishable from any generic file-writing tool.

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?

Provides a clear create-vs-update branch: a call without deployToken creates a new site, while passing deployToken replaces files in place, and subdomain has no effect without deployToken. It stops short of naming alternative tools or explicit exclusions, but no realistic ambiguity remains.

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.

Resources