Skip to main content
Glama

List Domains

list_domains

View verified domains and their verification status to prepare for penetration testing with TurboPentest.

Instructions

List your verified domains and their verification status. Domains must be verified before you can run pentests against them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for list_domains tool, which fetches domains via client.listDomains and formats them for the MCP response.
    async () => {
      try {
        const domains = await client.listDomains();
    
        if (domains.length === 0) {
          return {
            content: [
              {
                type: "text" as const,
                text:
                  "No domains found.\n\n" +
                  "To verify a domain, add a DNS TXT record at turbopentest.com/domains.",
              },
            ],
          };
        }
    
        const lines = [`Domains (${domains.length})`, ""];
    
        for (const d of domains) {
          const verified = d.verifiedAt ? "Verified" : "Pending";
          const expiry = d.expiresAt ? `Expires: ${d.expiresAt}` : "";
    
          lines.push(
            `  ${d.domain}`,
            `    Status:  ${verified}`,
            `    Token:   ${d.token}`,
            expiry ? `    ${expiry}` : "",
            `    Added:   ${d.createdAt}`,
            "",
          );
        }
    
        return {
          content: [
            {
              type: "text" as const,
              text: lines.filter((l) => l !== "").join("\n"),
            },
          ],
        };
      } catch (error) {
        const message = error instanceof Error ? error.message : String(error);
        return {
          content: [{ type: "text" as const, text: `Failed to list domains: ${message}` }],
          isError: true,
        };
      }
    },
  • Tool registration for list_domains.
    server.registerTool(
      "list_domains",
      {
        title: "List Domains",
        description:
          "List your verified domains and their verification status. " +
          "Domains must be verified before you can run pentests against them.",
        inputSchema: z.object({}),
      },
  • The client method that actually makes the API request to fetch domains.
    async listDomains(): Promise<Domain[]> {
      return this.request<Domain[]>("/tlds");
    }
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It implies a read-only operation ('List') and adds useful context about verification status and prerequisites for pentests, but lacks details on permissions, rate limits, or response format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences that are front-loaded with the core purpose and follow with essential context. Every sentence earns its place without redundancy or waste.

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?

For a simple list tool with no parameters, no output schema, and no annotations, the description is reasonably complete—it explains what it does and why it matters. However, it could benefit from mentioning return format or pagination to be fully comprehensive.

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?

With 0 parameters and 100% schema coverage, the baseline is 4. The description adds no parameter-specific information, which is acceptable since there are no parameters to document.

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 clearly states the specific action ('List') and resource ('your verified domains and their verification status'), distinguishing it from siblings like 'list_pentests' or 'get_findings' by focusing on domain verification rather than pentests or findings.

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?

It provides clear context for when to use this tool ('Domains must be verified before you can run pentests against them'), linking it to the pentest workflow. However, it does not explicitly state when not to use it or name alternatives among siblings.

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/IntegSec/turbopentest-mcp'

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