Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

agency-hosting_deployPhpApplication

Deploy a PHP application to a Hostinger Agency Plan website by uploading an archive that overwrites the existing content and goes live immediately.

Instructions

Deploy a PHP (or other non-build) 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 where the archive contents should be extracted and served as-is with no build step (e.g., PHP applications). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the import-archive process which overwrites the website contents with the archive contents. This operation is synchronous: the archive is extracted and deployed 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 node-static websites that require a build step, use agencyHosting_deployNodeStaticWebsite 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. 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 clearly warns that the operation overwrites existing contents and cannot be undone, explains the synchronous deployment behavior, describes the upload/import process, and notes that the website UID is auto-resolved from the domain.

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 front-loaded with the most critical warning, then covers use case, mechanism, synchronicity, and alternatives. Every sentence earns its place, and there is no redundant or filler content.

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?

For a destructive deployment operation with no output schema, this description is comprehensive: it explains prerequisites, process, overwrite risk, synchronous behavior, and the relevant sibling alternative. The rich parameter schema covers the remaining operational details.

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 description coverage is 100%, so the schema already provides strong parameter semantics. The description adds contextual details like TUS upload and auto-resolution of the website UID, but does not substantially extend the meaning of individual parameters beyond what the schema already states.

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 uses a specific verb+resource combination: 'Deploy a PHP (or other non-build) Agency Plan (h5g) website from an archive file.' It clearly distinguishes this from sibling deploy tools by specifying 'no build step' and directly naming the alternative for node-static builds.

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 the tool ('Use this for Agency Plan websites where the archive contents should be extracted and served as-is with no build step') and points to an alternative: 'For node-static websites that require a build step, use agencyHosting_deployNodeStaticWebsite instead.' It also adds a critical warning about confirming with the user before proceeding.

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