Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

agency-hosting_replaceWebsitePHPExtensionsV1

Replace the enabled PHP extensions on an Agency Plan website with a specified set. Fetch the current extensions first, then send the full desired list to activate or disable toggleable options while preserving built-in ones.

Instructions

Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the "built-in" state, are always active and are unaffected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
extensionsYesExtension names, exactly as returned by the extensions endpoint.
website_uidYesAgency Plan website UID
Behavior4/5

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

With no annotations provided, the description carries the burden and discloses key behavioral traits: omitted extensions are disabled, and built-in extensions are always active and unaffected. This is valuable for a mutation tool, but it does not mention permissions, reversibility, or response characteristics, leaving some opaqueness.

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 three sentences, each with a distinct purpose: state the core action, warn about the replacement behavior and required workflow, and clarify the unaffected built-in extensions. No unnecessary words or repetition.

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 only two parameters, no output schema, and no annotations, the description effectively covers the essential context: what the tool does, how to prepare inputs (call extensions endpoint first), and what to expect regarding disabled and built-in extensions. It could mention return values or error scenarios, but the description is sufficient for correct invocation.

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?

The input schema already has 100% description coverage: 'extensions' is described as 'Extension names, exactly as returned by the extensions endpoint' and 'website_uid' as 'Agency Plan website UID'. The description reinforces the need to send the full set but adds minimal new parameter-specific detail beyond the schema.

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 begins with a specific action: 'Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided.' This clearly distinguishes it from sibling tools like hosting_updatePHPExtensionsV1, emphasizing replacement rather than incremental updates, and scopes it to Agency Plan websites.

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: 'call the extensions endpoint first and send the full desired set' and warns that omitted toggleable extensions are disabled. While it does not name alternative tools explicitly, the 'replace' semantics make the usage context clear. It could have provided more explicit 'when not to use' guidance.

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