Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

Generate upload URL

hosting_generateUploadURLV1

Generate an authenticated upload URL and auth keys for uploading files directly to a website's public_html via TUS resumable upload.

Instructions

Generate a file browser upload URL with authentication credentials for uploading files directly to a website's file storage.

Returns url, auth_key and rest_auth_key. Use these to upload a file to the website's public_html directory via the TUS resumable upload protocol (TUS 1.0.0). Send X-Auth: {auth_key} and X-Auth-Rest: {rest_auth_key} headers on every request below.

  1. Create the upload: POST to {url}/{relative_file_path}?override=true with headers upload-length: {file size in bytes} and upload-offset: 0. Expect 201 Created.

  2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or PATCH requests with an upload-offset header tracking progress) until complete.

relative_file_path is the destination path inside public_html, e.g. app.zip.

Instead of a TUS client, plain curl also works:

FILE=app.zip
SIZE=$(stat -f%z "$FILE")   # stat -c%s on Linux

curl -i -X POST "{url}/${FILE}?override=true" \
  -H "X-Auth: {auth_key}" \
  -H "X-Auth-Rest: {rest_auth_key}" \
  -H "Tus-Resumable: 1.0.0" \
  -H "Upload-Length: ${SIZE}" \
  -H "Upload-Offset: 0"
# -> 201 Created

curl -i -X PATCH "{url}/${FILE}?override=true" \
  -H "X-Auth: {auth_key}" \
  -H "X-Auth-Rest: {rest_auth_key}" \
  -H "Tus-Resumable: 1.0.0" \
  -H "Content-Type: application/offset+octet-stream" \
  -H "Upload-Offset: 0" \
  --data-binary "@${FILE}"
# -> 204 No Content, Upload-Offset response header equals SIZE when done

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesWebsite domain
usernameYesAccount username

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.44.0

TDQS

A4/5.0
Behavior3/5

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

Annotations provide readOnlyHint=false and destructiveHint=false, which offer minimal safety context. The description discloses the outputs (url, auth_key, rest_auth_key) and the intended upload flow, but does not state whether generating the URL has any side effects (e.g., creating a session or consuming quota). It implies a non-destructive operation but does not explicitly say so.

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 lengthy but well-organized: it starts with the return values and core purpose, then gives numbered steps and a concrete curl example. Every section contributes value, and the structure makes the long content easy to scan. The detail is justified by the need to explain the TUS protocol.

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?

With no output schema, the description fully covers return values and usage: it explains what to do with url, auth_key, and rest_auth_key, provides headers, expected status codes, and both TUS-client and curl workflows. The examples are complete and actionable, leaving no obvious gaps for an agent to call this tool correctly.

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?

Input schema covers both parameters (domain and username) with 100% coverage, giving each a basic description. The tool description does not add further meaning about these parameters beyond integrating them into the upload context (e.g., 'relative_file_path' is not a parameter). Baseline of 3 applies given schema coverage; description adds minimal value.

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 states a specific verb ('Generate') and resource ('file browser upload URL') and explains its purpose: 'for uploading files directly to a website's file storage.' It clearly distinguishes itself from the many deployment and hosting tools in the sibling list by focusing on URL generation rather than file transfer or site management.

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 step-by-step instructions on how to use the returned URL and credentials, including the TUS protocol workflow and a plain curl alternative. It does not explicitly discuss when to avoid this tool or name alternatives, but within the sibling set there is no direct equivalent (except agency-hosting_generateUploadURLV1, which is distinct by namespace), so context is sufficient.

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