Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

hosting_replaceNode_jsEnvironmentVariablesV1

Replace all Node.js environment variables for a domain with the provided set, then restart the process. Send an empty array to remove every variable; rebuild your app afterward if it bakes values at build time.

Instructions

Replaces the website's Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty env_vars array deletes every variable. Saving writes the values and restarts the running Node.js process.

A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including NEXT_PUBLIC_*) need a fresh build. After this call, use the Start Node.js build endpoint so those apps pick up the new values.

The List Node.js environment variables endpoint returns masked values (********), so never copy values from it into this request. Always send the full desired set with real values taken from the project .env file or the user prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name
env_varsYesEnvironment variables to set. This is the full desired set: any variable not in this list is deleted, and an empty array deletes every variable.
usernameYesusername parameter
Behavior5/5

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

With no annotations available, the description fully discloses the destructive semantics: variables not in the request are deleted, an empty array deletes everything, saving restarts the Node.js process, and build-time frameworks need a rebuild. It also surfaces the masking pitfall of the list endpoint, which is critical behavioral context beyond the schema.

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 long but each sentence earns its place: core replacement behavior is front-loaded, followed by necessary caveats about restart vs. rebuild, and a practical warning about masked values. No filler or redundant restatement of the tool name.

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, side-effect-heavy operation with no annotations and no output schema, the description covers the full behavioral surface: what is replaced, what triggers a restart, when a build is required, and where to get valid values. The only missing piece is explicit mention of return format, which is not required when no output schema exists and the call semantics are already clear.

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 the schema already documents all three parameters and the env_vars replacement behavior. The description adds practical value by emphasizing that values must be real, never copied from the masked list endpoint, and that the full desired set should be sent every time.

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 ('Replaces') with a clear resource ('the website's Node.js environment variables') and clearly defines the operation as a full replacement. It distinguishes itself from sibling tools by naming the list and build endpoints explicitly, so an agent can tell it apart from hosting_listNode_jsEnvironmentVariablesV1 and hosting_startNode_jsBuildV1.

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?

Provides explicit when-to-use guidance: a restart is sufficient for apps reading env vars at process start, but Next.js standalone and similar build-time frameworks require a follow-up build via the Start Node.js build endpoint. It also warns against copying masked values from the list endpoint, giving concrete direction on how to construct the request safely.

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