Skip to main content
Glama

buy_domain_crypto

Initiate domain purchases using USDC crypto via the x402 protocol for autonomous agents. Receive order IDs and payment URLs to complete checkout programmatically without browser interaction.

Instructions

Start the purchase flow for a domain using USDC crypto payment (x402 protocol).

This is a 2-step process for autonomous agent payments:

Step 1: Call this tool to get an order_id and pay_url. Step 2: Make an HTTP GET request to the pay_url. Your x402-enabled HTTP client will receive an HTTP 402 response with payment requirements, then automatically pay with USDC on Base. The payment and settlement happen via the x402 protocol (no browser or human needed).

After payment, call get_domain_status(order_id) to poll until complete.

Requires: An x402-compatible HTTP client with a funded USDC wallet on Base.

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.

IMPORTANT: Before calling this tool, you MUST first call check_domain to get the price and confirm it with the user.

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, pay_url (full URL to GET with x402 client), price_usdc, price_cents, network, and asset contract address.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full disclosure burden. It explains the x402 protocol mechanics (HTTP 402 response, automatic USDC settlement on Base), WHOIS privacy defaults, legal ownership transfer via registrant details, and post-payment polling requirements. Minor gap: doesn't explicitly characterize the operation as destructive/mutating, though 'purchase' implies this.

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?

Well-structured with logical flow: purpose → process steps → requirements → contact explanation → parameters → returns. Front-loaded with critical context. Slightly verbose but justified by the novel x402 protocol complexity and 11 parameters requiring documentation.

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 11 parameters, 0% schema coverage, no annotations, and a novel crypto payment protocol, the description is remarkably complete. It documents the return dict contents (order_id, pay_url, price_usdc, etc.), prerequisites, legal implications, and polling workflow. No gaps remain for safe invocation.

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 has 0% description coverage, but the description compensates perfectly via an 'Args:' section documenting all 11 parameters with specific formats (e.g., phone: '+1.5551234567', country: '2-letter ISO country code', org_name: 'optional, leave empty for individuals'). Fully compensates for the schema deficiency.

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 explicitly states 'Start the purchase flow for a domain using USDC crypto payment (x402 protocol)' — specific verb (start/purchase), resource (domain), and payment method (USDC/x402) that clearly distinguishes it from the sibling 'buy_domain' tool (presumably for fiat payments).

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 prerequisites: 'IMPORTANT: Before calling this tool, you MUST first call check_domain to get the price and confirm it with the user.' Also details the 2-step process (get order_id/pay_url, then HTTP GET to pay_url) and requires 'x402-compatible HTTP client with a funded USDC wallet on Base.'

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/nach-dakwale/instadomain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server