Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

Purchase new domain

domains_purchaseNewDomainV1

Purchase and register a new domain name using your Hostinger account. Configure WHOIS contacts, apply coupons, and select payment method to complete the order.

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 the response is 202 Accepted, the payment is still being processed and the domain was not registered. Once the order completes, register the domain from hPanel.

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
couponsNoDiscount coupon codes
item_idYesCatalog price item ID
domain_contactsNoDomain contact information
payment_method_idNoPayment method ID, default will be used if not provided
additional_detailsNoAdditional registration data, possible values depends on TLD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0
  2. Removedv1.2.1
  3. Addedv0.2.2
  4. Removedv0.2.1
  5. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral detail beyond the annotations: automatic fallback to the default payment method, default WHOIS contact fallback, the fact that 202 Accepted means the domain is NOT registered and payment is still processing, and the instruction to complete registration manually via hPanel after the order completes. These are non-obvious behaviors an agent needs to know. No contradiction with annotations.

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 organized with the core action first, then operational caveats in separate short sentences. It is slightly redundant: the opening 'Purchase and register a new domain name' is repeated in the closing 'Use this endpoint to register new domains for users,' and the hPanel instructions appear twice. Still, every sentence carries useful info.

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?

The description covers preconditions, default behaviors, failure handling, and the async 202 case, which is strong for a purchase endpoint. It does not describe a successful synchronous response format (no output schema exists), nor how to obtain the required item_id from the catalog, leaving minor gaps for an agent.

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?

Although the schema already covers all parameters (100% coverage), the description adds meaning for payment_method_id (default fallback), domain_contacts (default WHOIS, precondition that contact info must exist), and additional_details (TLD-dependent validation). It does not add anything for coupons or item_id beyond the schema, but the overall supplement is meaningful.

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 and resource: 'Purchase and register a new domain name' and closes with 'Use this endpoint to register new domains for users.' This clearly differentiates from sibling domain tools like availability checks or free-domain claims, even though no sibling is named.

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?

Provides concrete operational guidance: default payment method usage, the need to ensure WHOIS information exists before calling, additional_details validation for certain TLDs, and explicit handling of 202 Accepted responses. It states the intended use case ('register new domains for users') but does not explicitly compare against alternative tools, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools