Skip to main content
Glama

list_ai_bots

Identify AI bots by user-agent, company, and description to manage access permissions in robots.txt files for web crawler control.

Instructions

List all known AI bots with their user-agents, companies, and descriptions. Useful for deciding which bots to block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the `list_ai_bots` tool handler, which iterates over `ALL_BOTS` to format and return a list of known AI bots.
    server.tool(
      "list_ai_bots",
      "List all known AI bots with their user-agents, companies, and descriptions. Useful for deciding which bots to block.",
      {},
      async () => {
        const lines: string[] = [];
    
        lines.push("# Known AI & Search Engine Bots\n");
    
        const groups: Record<string, Bot[]> = {};
        for (const bot of ALL_BOTS) {
          const key = bot.type;
          if (!groups[key]) groups[key] = [];
          groups[key].push(bot);
        }
    
        const typeLabels: Record<string, string> = {
          "ai-crawler": "AI Crawlers (Training Data)",
          "ai-search": "AI Search Bots",
          "search-engine": "Search Engines",
          other: "Other Bots",
          social: "Social Bots",
        };
    
        for (const [type, bots] of Object.entries(groups)) {
          lines.push(`## ${typeLabels[type] || type}\n`);
          for (const bot of bots) {
            lines.push(`- **${bot.name}**`);
            lines.push(`  - User-Agent: \`${bot.userAgent}\``);
            lines.push(`  - Company: ${bot.company}`);
            lines.push(`  - ${bot.description}`);
            lines.push(
              `  - Default blocked: ${bot.defaultBlocked ? "Yes" : "No"}`
            );
            lines.push(`  - Docs: ${bot.docsUrl}`);
          }
          lines.push("");
        }
    
        return {
          content: [
            {
              type: "text" as const,
              text: lines.join("\n"),
            },
          ],
        };

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/sharozdawa/robotstxt-ai'

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