Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

agency-hosting_deployNodeStaticWebsite

Deploy a Node.js static site from an archive to an Agency Plan website. Overwrites existing files after a synchronous build and deployment, making the site live immediately upon completion.

Instructions

Deploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. For plain PHP applications that should be extracted as-is, use agencyHosting_deployPhpApplication instead. The website UID is automatically resolved from the domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name of the Agency Plan website (e.g., example.com)
archivePathYesAbsolute or relative path to the website archive file. Supported formats: zip, tar, tar.gz, tgz. The archive must contain the application source files. If user provides a directory path, create an archive from it before proceeding using EXACTLY this naming pattern: directoryname_YYYYMMDD_HHMMSS.zip (e.g., mywebsite_20250115_143022.zip)
removeArchiveNoWhether to remove the local archive file after successful deployment (default: true)
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It prominently warns that the tool overwrites existing content irreversibly and instructs to confirm with the user. It further explains the internal process (TUS upload, build-assets, deployment to public_html) and explicitly notes that completion means the site is live. This is comprehensive behavioral transparency for a mutation tool.

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 value: purpose, warning, applicability, process, synchrony, alternative, and ID resolution. It is well-structured and front-loaded with the most critical info (purpose and warning). Despite its length, it remains efficient and purposeful.

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?

The tool is moderately complex (deployment with build step), and the description covers all essential aspects: what it does, when to use it, the destructive nature, the synchronous behavior, and the outcome (site live). With no output schema, it explains what completion means. The alternative tool is also mentioned, preventing misuse. This is a complete and self-contained description.

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?

While the schema provides 100% coverage of parameter descriptions, the description adds significant extra meaning: it specifies supported archive formats (zip, tar, tar.gz, tgz), instructs on creating an archive from a directory with an exact naming pattern, and clarifies that the domain resolves the website UID automatically. This goes beyond the schema's basic field explanations, enriching param understanding.

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 clearly states the tool's purpose: deploying a node-static Agency Plan website from an archive file. It specifies the target website type (node-static), distinguished from PHP applications via an explicit alternative (agencyHosting_deployPhpApplication). The mention of the build step and deployment to public_html adds precise context, making it unambiguous.

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?

The description explicitly states when to use this tool ('Use this for Agency Plan websites of type node-static') and provides an alternative for PHP apps. It also includes crucial guidance about confirming with the user due to destructive overwriting, and clarifies that the operation is synchronous, so no polling is needed. This fully addresses usage conditions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hostinger/api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server