Skip to main content
Glama
lindoai

mcp-lindoai

Official

Add Custom Domain

add_custom_domain

Add a custom domain to a website by providing the website ID and domain name.

Instructions

Add a custom domain to a website.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
website_idYesThe website ID
domainYesCustom domain to add

Implementation Reference

  • The async handler function that executes the 'add_custom_domain' tool logic. It calls the Lindo API (POST /v1/workspace/website/{website_id}/domain) with the domain payload and returns the result.
    async ({ website_id, domain }) => {
      const data = await apiCall(`/v1/workspace/website/${website_id}/domain`, "POST", { domain });
      return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] };
    }
  • Input schema/validation for the tool, defining website_id (string) and domain (string) as required parameters using Zod.
      inputSchema: {
      website_id: z.string().describe("The website ID"),
      domain: z.string().describe("Custom domain to add"),
    },
  • Registration of the 'add_custom_domain' tool using server.registerTool(), including its title, description, input schema, annotations, and handler.
    server.registerTool(
      "add_custom_domain",
      {
        title: "Add Custom Domain",
        description: "Add a custom domain to a website.",
        inputSchema: {
        website_id: z.string().describe("The website ID"),
        domain: z.string().describe("Custom domain to add"),
      },
        annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: false },
      },
      async ({ website_id, domain }) => {
        const data = await apiCall(`/v1/workspace/website/${website_id}/domain`, "POST", { domain });
        return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] };
      }
    );
  • The apiCall helper function used by the handler to make authenticated HTTP requests to the Lindo API with a Bearer token.
    async function apiCall(path, method, body) {
      const url = `${BASE_URL}${path}`;
      const res = await fetch(url, {
        method,
        headers: {
          Authorization: `Bearer ${API_KEY}`,
          "Content-Type": "application/json",
        },
        ...(body ? { body: JSON.stringify(body) } : {}),
      });
      return res.json();
    }
Behavior2/5

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

Annotations indicate a write operation (readOnlyHint=false), but the description adds no behavioral context beyond that. It does not mention potential side effects, duration, or success/failure conditions, which would be useful for an agent.

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 a single sentence with no wasted words. It is appropriately concise for a simple tool, though it could incorporate slightly more context without becoming verbose.

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 low complexity (2 params, no output schema), the description is too minimal. It lacks behavioral details such as idempotency, verification steps, or error scenarios, which are important for an agent to use the tool correctly.

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 coverage is 100% with descriptions for both parameters. The tool description adds no additional meaning beyond what the schema already provides, so it meets the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'add' and the resource 'custom domain' to 'a website', making the purpose explicit. However, it does not differentiate from sibling tools like assign_website or remove_custom_domain, so it lacks sibling differentiation.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives (e.g., prerequisites like domain ownership verification). The description does not mention any context for usage, leaving the agent without decision support.

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/lindoai/mcp-server'

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