suggest_domains
Generate domain name ideas from a keyword and check their availability in real time.
Instructions
Generate domain name ideas from a keyword and check their availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | A keyword or short business name (e.g. "taskflow"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- instadomain/mcp_server.py:78-88 (handler)The suggest_domains tool handler: an async function decorated with @mcp.tool() that takes a keyword string, calls the backend /suggest endpoint with the keyword as a query parameter, and returns the JSON response containing domain name suggestions with availability info.
@mcp.tool() async def suggest_domains(keyword: str) -> dict: """Generate domain name ideas from a keyword and check their availability. Args: keyword: A keyword or short business name (e.g. "taskflow"). """ async with httpx.AsyncClient(base_url=BACKEND_URL, timeout=30) as client: resp = await client.get("/suggest", params={"keyword": keyword}) resp.raise_for_status() return resp.json() - instadomain/mcp_server.py:78-78 (registration)The @mcp.tool() decorator registers suggest_domains as an MCP tool on the FastMCP server instance. The tool is named 'suggest_domains' (the function name) and the docstring serves as its description.
@mcp.tool()