Skip to main content
Glama
hostinger

hostinger-api-mcp

Official

hosting_createNodeJSBuildFromArchiveV1

Upload a Node.js project archive to auto-detect build settings and trigger an immediate build.

Instructions

Upload a project archive, auto-detect build settings, and immediately start a Node.js build.

This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website's file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB.

Before archiving, exclude node_modules/ and any build output directories (e.g. dist/, .next/, build/) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit.

Example (zip):

zip -r archive.zip . --exclude "node_modules/*" --exclude "dist/*"

The returned build uuid can be used to poll progress and retrieve logs via the Get Node.js Build Logs endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesusername parameter
domainYesDomain name
archiveYesProject archive file (.zip, .tar.gz, or .tgz), maximum 50MB
node_versionNoNode.js version override (auto-detected from package.json if omitted)
app_typeNoNode.js application type override
root_directoryNoApplication root directory override (where package.json is located) relative to public_html
output_directoryNoBuild output directory override relative to the root directory
build_scriptNoBuild script override
entry_fileNoMain entry point file override
package_managerNoPackage manager override
Behavior4/5

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

No annotations provided, so the description carries the full burden. It discloses that the archive is uploaded to file storage, build settings are auto-detected, the build starts automatically, max size 50MB, override fields take precedence, and returned uuid can poll progress. It does not cover error handling or concurrency, but covers key behaviors adequately.

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?

The description is well-structured with a clear first sentence, followed by bullet-like explanations, a practical example, and a note on returned value. It is appropriately sized without redundancy, though a slightly more compact presentation could be possible.

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?

Given the complexity (10 parameters, no output schema), the description covers the main points: purpose, archive size limit, auto-detection, overrides, example, and follow-up polling. It lacks details on error handling or failure behavior, but is otherwise complete for an initiate-build tool.

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 description coverage is 100%, so baseline is 3. The description adds value by explaining that 'Optional override fields take precedence over auto-detected values' and provides an example of excluding directories to keep archive size small, adding context beyond the schema descriptions.

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 action: 'Upload a project archive, auto-detect build settings, and immediately start a Node.js build.' It specifies the resource (project archive for Node.js) and distinguishes itself as 'the recommended single-step approach for deploying a Node.js application.' This differentiates it from sibling tools like hosting_deployJsApplication and hosting_deployStaticWebsite.

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?

The description provides explicit guidance on when to use this tool ('recommended single-step approach for deploying a Node.js application'), what to exclude (node_modules, build output directories), and gives a zip example. It does not explicitly list when not to use it or alternatives, but the context is clear from sibling tool names.

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