Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

hosting_patchNode_jsVulnerabilitiesV1

Patches Node.js vulnerabilities by updating package versions and creating a pull request for automated deployment.

Instructions

Patches the selected Node.js vulnerabilities by updating the affected package versions in package.json and opening a GitHub pull request in the connected repository. The customer reviews and merges the pull request; merging triggers the automatic deployment.

Auto-fix is only available for websites deployed from a connected GitHub repository. Websites deployed from an archive have no auto-fix path and return a 404. The Hostinger GitHub App needs write access to the repository; without it the request fails with a 403 explaining the missing permission.

Only vulnerabilities with is_patchable set to true can be patched. Non-patchable IDs in the selection are skipped; the pull request covers the patchable subset, listed in patched_vulnerability_ids. Selections without any patchable vulnerability are rejected with a 422. Only one patch pull request can be open at a time per website; close or merge it before patching again. Available on Business and Cloud Hosting plans.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name
usernameYesusername parameter
vulnerability_idsYesList of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint.
Behavior5/5

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

With no annotations, the description fully discloses important behaviors: it modifies package.json, opens a PR, triggers deployment on merge, and lists error conditions (404, 403, 422) and plan limitations. This provides comprehensive understanding of the tool's actions and side effects.

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 a single paragraph that is well-structured, starting with the main purpose then providing details on constraints and edge cases. It is thorough without being verbose, though it could be slightly more concise by combining some related sentences.

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?

Given no output schema, the description effectively explains the output (pull request creation, deployment trigger) and all important preconditions and error scenarios. It covers plan requirements, GitHub connectivity, mutation behavior, and concurrency limits, making it complete for an agent to decide when and how to use the 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 coverage is 100% so baseline is 3. The description adds value by explaining that vulnerability_ids should come from the list endpoint and that only patchable IDs are processed, and non-patchable ones are skipped. This enriches parameter understanding beyond the schema's brief 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?

Clearly states it patches Node.js vulnerabilities by updating package.json and creating a pull request. Distinguishes from sibling tools like hosting_listNode_jsVulnerabilitiesV1 which lists vulnerabilities, making the purpose 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?

Explicitly specifies when to use: only for patchable vulnerabilities (is_patchable=true), requires connected GitHub repo with write access, and plan restrictions (Business/Cloud). Also clarifies behavior for non-patchable IDs and archive deployments, and that only one open PR per website is allowed.

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