Skip to main content
Glama

buy_domain

Start the purchase flow for an available domain via Stripe checkout.

IMPORTANT: Before calling this tool, you MUST first call check_domain to get the price, then clearly show the user the price and get their explicit confirmation before proceeding. Never call buy_domain without the user seeing and approving the price first.

The registrant contact details are required because the domain will be registered in the buyer's name (they become the legal owner). WHOIS privacy is enabled by default, so these details are not publicly visible.

Creates a Stripe checkout session. IMPORTANT: After this tool returns, you MUST open the checkout_url by running the shell command open "<checkout_url>" (macOS/Linux) so the payment page launches automatically in the user's default browser. Do NOT paste the URL as a link. Tell the user the page has been opened and they can complete payment there.

Args: domain: The domain to purchase (e.g. "coolstartup.com"). first_name: Registrant's first name. last_name: Registrant's last name. email: Registrant's email address. address1: Registrant's street address. city: Registrant's city. state: Registrant's state or province. postal_code: Registrant's postal/zip code. country: 2-letter ISO country code (e.g. "US", "GB", "DE"). phone: Phone number in format +1.5551234567. org_name: Organization name (optional, leave empty for individuals).

Returns: Dict with order_id, checkout_url, price_cents, and price_display.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes
emailYes
phoneYes
stateYes
domainYes
countryYes
address1Yes
org_nameNo
last_nameYes
first_nameYes
postal_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the tool creates a Stripe checkout session, explains why registrant details are required (legal ownership), notes WHOIS privacy, and lists return fields. It does not address failure modes or whether funds are charged immediately, but the core behavior is transparent.

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 long, but every section earns its place: critical warnings, parameter explanations, and return values. It front-loads the most important prerequisite. Minor redundancy exists with the repeated 'IMPORTANT' emphasis, but overall structure is clear and actionable.

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?

The description covers the complete transactional context: prerequisite check, user confirmation, registrant rationale, payment method, and required post-action. The Returns section complements the existing output schema. It does not cover error handling, but that is not critical given the rich guidance provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the Args section gives meaningful descriptions for all 11 parameters, including an example for domain, a format for phone, and explicit optionality for org_name. This fully compensates for the schema's lack of per-field documentation.

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 opens with 'Start the purchase flow for an available domain via Stripe checkout,' which clearly identifies the action, resource, and payment method. It differentiates from sibling tools like buy_domain_crypto and buy_domain_mpp by specifying Stripe, and the word 'available' implies a prerequisite check.

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, mandatory usage instructions: call check_domain first, show the price to the user, obtain explicit confirmation, and never call without approval. It also dictates the post-return action of opening the checkout_url, making the transactional flow unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct action or payment method. The three buy tools are clearly differentiated by payment flow (Stripe checkout, crypto x402, Stripe MPP) with explicit guidance on when to use each. All other tools have unique purposes (check, status, renew, transfer).

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using lowercase snake_case (e.g., check_domain, suggest_domains, verify_transfer_code). There are no mixed conventions or ambiguous prefixes.

Tool Count5/5

With 12 tools, the set is well-scoped for a domain purchase and management service. Each tool covers a necessary step in the workflow (check, buy via 3 methods, status, renew, transfer), without unnecessary bloat.

Completeness4/5

The tool surface covers the core domain lifecycle: check availability, purchase (with multiple payment options), renew, and transfer (code request, verify, unlock). Minor gaps like listing owned domains or managing DNS are absent, but the primary use case is well-supported.

Resources