Skip to main content
Glama
hostinger

hostinger-api-mcp

Official

domains_purchaseNewDomainV1

Purchase and register a new domain name using a catalog item ID. Provide optional payment method, WHOIS contact records, and coupon codes.

Instructions

Purchase and register a new domain name.

If registration fails, login to hPanel and check domain registration status.

If no payment method is provided, your default payment method will be used automatically.

If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.

Some TLDs require additional_details to be provided and these will be validated before completing purchase.

Use this endpoint to register new domains for users.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name
item_idYesCatalog price item ID
payment_method_idNoPayment method ID, default will be used if not provided
domain_contactsNoDomain contact information
additional_detailsNoAdditional registration data, possible values depends on TLD
couponsNoDiscount coupon codes
Behavior3/5

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

With no annotations, the description carries the burden of transparency. It discloses that the tool creates a new resource, uses defaults for missing payment/WOHIS, requires WHOIS exist beforehand, and validates additional_details for some TLDs. However, it omits many details: authentication requirements, whether the operation is synchronous, cost implications, idempotency, and exact failure scenarios. The fallback instruction ('login to hPanel') is helpful but not sufficient for full transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is structured with a clear opening sentence and bullet-like conditional clauses. However, it contains repetition: 'Purchase and register a new domain name' and 'Use this endpoint to register new domains for users' convey the same idea. It could be more concise without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (6 parameters, nested objects, no output schema), the description fails to cover important aspects: what the API returns (e.g., success confirmation, order details), error handling beyond 'login to hPanel', and whether prior availability checks are necessary. The description feels incomplete for a purchase operation, leaving the agent with significant gaps in understanding the full behavior.

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 baseline is 3. The description adds some value by clarifying defaults for payment_method_id and domain_contacts, and the need for additional_details validation. However, much of this is already present in the schema definitions (e.g., payment_method_id default). The extra context is minor, so the score remains at the baseline.

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 clearly states the tool's purpose: 'Purchase and register a new domain name.' It uses a specific verb ('purchase and register') and resource ('domain name'), and distinguishes it from sibling tools like domains_checkDomainAvailabilityV1 and domains_getDomainListV1. The final sentence reinforces that it is for registering new domains.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides some context (default payment, WHOIS prerequisites, additional_details validation) but does not explicitly state when to use this tool versus alternatives like checking availability first. There is no mention of when not to use it or recommended preceding steps, which limits guidance for the agent.

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