Skip to main content
Glama
kongyo2

EVE Online OSINT MCP Server

alliance-osint

Read-only

Retrieve detailed OSINT data for EVE Online alliances, including member corporations, total member count, and alliance specifics, using precise alliance name input.

Instructions

Get OSINT information about an EVE Online alliance by name. Returns member corporations, total member count, and alliance details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allianceNameYesThe exact name of the EVE Online alliance to investigate

Implementation Reference

  • The main execution handler for the 'alliance-osint' tool. It resolves the alliance name to an ID using ESI, fetches alliance details from ESI and member corporations from EveWho API, then formats and returns a comprehensive Markdown OSINT report.
    execute: async (args, { log }) => {
      try {
        log.info("Resolving alliance name to ID", {
          allianceName: args.allianceName,
        });
    
        // Resolve alliance name to ID
        const resolved = await resolveNamesToIds([args.allianceName]);
    
        if (!resolved.alliances || resolved.alliances.length === 0) {
          return `Alliance "${args.allianceName}" not found. Please check the spelling and ensure it's an exact match.`;
        }
    
        const alliance = resolved.alliances[0];
        log.info("Alliance resolved", { id: alliance.id, name: alliance.name });
    
        // Get alliance information from multiple sources
        log.info("Fetching alliance data from multiple sources", {
          allianceId: alliance.id,
        });
        const [esiAllianceInfo, eveWhoAllianceData] = await Promise.allSettled([
          getESIAllianceInfo(alliance.id),
          getAllianceCorps(alliance.id),
        ]);
    
        let result = `# Alliance OSINT Report: ${alliance.name}\n\n`;
        result += `**Alliance ID:** ${alliance.id}\n`;
        result += `**Alliance Name:** ${alliance.name}\n\n`;
    
        // ESI Alliance Information
        if (esiAllianceInfo.status === "fulfilled") {
          const esiInfo = esiAllianceInfo.value;
          result += `## ESI Alliance Information\n`;
          result += `**Name:** ${esiInfo.name}\n`;
          result += `**Ticker:** ${esiInfo.ticker}\n`;
          result += `**Founded:** ${esiInfo.date_founded}\n`;
          result += `**Creator Corporation ID:** ${esiInfo.creator_corporation_id}\n`;
          result += `**Creator ID:** ${esiInfo.creator_id}\n`;
          if (esiInfo.executor_corporation_id) {
            result += `**Executor Corporation ID:** ${esiInfo.executor_corporation_id}\n`;
          }
          if (esiInfo.faction_id) {
            result += `**Faction ID:** ${esiInfo.faction_id}\n`;
          }
          result += `\n`;
        }
    
        // EveWho Alliance Data
        if (eveWhoAllianceData.status === "fulfilled") {
          const allianceData = eveWhoAllianceData.value;
          result += `## EveWho Alliance Statistics\n`;
          if (allianceData.memberCount !== undefined) {
            result += `**Total Members:** ${allianceData.memberCount}\n`;
          }
          if (allianceData.corporationCount !== undefined) {
            result += `**Total Corporations:** ${allianceData.corporationCount}\n`;
          }
          if (allianceData.delta !== undefined) {
            result += `**7-Day Delta:** ${allianceData.delta > 0 ? "+" : ""}${allianceData.delta}\n`;
          }
    
          result += `\n## Member Corporations\n`;
          if (allianceData.corporations && allianceData.corporations.length > 0) {
            allianceData.corporations.forEach((corp, index: number) => {
              result += `${index + 1}. **${corp.name}** (ID: ${corp.corporation_id})`;
              if (corp.memberCount !== undefined) {
                result += ` - ${corp.memberCount} members`;
              }
              if (corp.delta !== undefined) {
                result += ` (${corp.delta > 0 ? "+" : ""}${corp.delta} 7d)`;
              }
              if (corp.start_date) {
                result += ` - Joined: ${corp.start_date}`;
              }
              result += `\n`;
            });
          } else {
            result += "No corporation data available.\n";
          }
        }
    
        result += `\n---\n*Data provided by EveWho API*`;
    
        return result;
      } catch (error) {
        log.error("Alliance OSINT failed", {
          error: error instanceof Error ? error.message : String(error),
        });
        return `Error: ${error instanceof Error ? error.message : String(error)}`;
      }
    },
  • Zod input schema defining the 'allianceName' parameter for the alliance-osint tool.
    parameters: z.object({
      allianceName: z
        .string()
        .describe("The exact name of the EVE Online alliance to investigate"),
    }),
  • src/server.ts:867-972 (registration)
    The server.addTool registration block that defines and registers the 'alliance-osint' tool with FastMCP, including annotations, description, execute handler, name, and parameters schema.
    server.addTool({
      annotations: {
        openWorldHint: true,
        readOnlyHint: true,
        title: "Alliance OSINT",
      },
      description:
        "Get OSINT information about an EVE Online alliance by name. Returns member corporations, total member count, and alliance details.",
      execute: async (args, { log }) => {
        try {
          log.info("Resolving alliance name to ID", {
            allianceName: args.allianceName,
          });
    
          // Resolve alliance name to ID
          const resolved = await resolveNamesToIds([args.allianceName]);
    
          if (!resolved.alliances || resolved.alliances.length === 0) {
            return `Alliance "${args.allianceName}" not found. Please check the spelling and ensure it's an exact match.`;
          }
    
          const alliance = resolved.alliances[0];
          log.info("Alliance resolved", { id: alliance.id, name: alliance.name });
    
          // Get alliance information from multiple sources
          log.info("Fetching alliance data from multiple sources", {
            allianceId: alliance.id,
          });
          const [esiAllianceInfo, eveWhoAllianceData] = await Promise.allSettled([
            getESIAllianceInfo(alliance.id),
            getAllianceCorps(alliance.id),
          ]);
    
          let result = `# Alliance OSINT Report: ${alliance.name}\n\n`;
          result += `**Alliance ID:** ${alliance.id}\n`;
          result += `**Alliance Name:** ${alliance.name}\n\n`;
    
          // ESI Alliance Information
          if (esiAllianceInfo.status === "fulfilled") {
            const esiInfo = esiAllianceInfo.value;
            result += `## ESI Alliance Information\n`;
            result += `**Name:** ${esiInfo.name}\n`;
            result += `**Ticker:** ${esiInfo.ticker}\n`;
            result += `**Founded:** ${esiInfo.date_founded}\n`;
            result += `**Creator Corporation ID:** ${esiInfo.creator_corporation_id}\n`;
            result += `**Creator ID:** ${esiInfo.creator_id}\n`;
            if (esiInfo.executor_corporation_id) {
              result += `**Executor Corporation ID:** ${esiInfo.executor_corporation_id}\n`;
            }
            if (esiInfo.faction_id) {
              result += `**Faction ID:** ${esiInfo.faction_id}\n`;
            }
            result += `\n`;
          }
    
          // EveWho Alliance Data
          if (eveWhoAllianceData.status === "fulfilled") {
            const allianceData = eveWhoAllianceData.value;
            result += `## EveWho Alliance Statistics\n`;
            if (allianceData.memberCount !== undefined) {
              result += `**Total Members:** ${allianceData.memberCount}\n`;
            }
            if (allianceData.corporationCount !== undefined) {
              result += `**Total Corporations:** ${allianceData.corporationCount}\n`;
            }
            if (allianceData.delta !== undefined) {
              result += `**7-Day Delta:** ${allianceData.delta > 0 ? "+" : ""}${allianceData.delta}\n`;
            }
    
            result += `\n## Member Corporations\n`;
            if (allianceData.corporations && allianceData.corporations.length > 0) {
              allianceData.corporations.forEach((corp, index: number) => {
                result += `${index + 1}. **${corp.name}** (ID: ${corp.corporation_id})`;
                if (corp.memberCount !== undefined) {
                  result += ` - ${corp.memberCount} members`;
                }
                if (corp.delta !== undefined) {
                  result += ` (${corp.delta > 0 ? "+" : ""}${corp.delta} 7d)`;
                }
                if (corp.start_date) {
                  result += ` - Joined: ${corp.start_date}`;
                }
                result += `\n`;
              });
            } else {
              result += "No corporation data available.\n";
            }
          }
    
          result += `\n---\n*Data provided by EveWho API*`;
    
          return result;
        } catch (error) {
          log.error("Alliance OSINT failed", {
            error: error instanceof Error ? error.message : String(error),
          });
          return `Error: ${error instanceof Error ? error.message : String(error)}`;
        }
      },
      name: "alliance-osint",
      parameters: z.object({
        allianceName: z
          .string()
          .describe("The exact name of the EVE Online alliance to investigate"),
      }),
    });
  • Helper function to retrieve member corporations of an alliance from the EveWho API, used by the alliance-osint handler.
    async function getAllianceCorps(
      allianceId: number,
    ): Promise<EveWhoAllianceResponse> {
      try {
        const response = await fetchWithRetry(`${EVEWHO_BASE_URL}/allilist/${allianceId}`, {
          headers: {
            "User-Agent": "EVE-OSINT-MCP/1.0.0",
          },
        });
    
        if (!response.ok) {
          throw new Error(
            `EveWho API error: ${response.status} ${response.statusText}`,
          );
        }
    
        return (await response.json()) as EveWhoAllianceResponse;
      } catch (error) {
        throw new Error(
          `Failed to get alliance corporations: ${error instanceof Error ? error.message : String(error)}`,
        );
      }
    }
  • Helper function to fetch basic alliance information (name, ticker, founded date, executor, etc.) from ESI API, used by the alliance-osint handler.
    async function getESIAllianceInfo(
      allianceId: number,
    ): Promise<ESIAllianceInfo> {
      try {
        const response = await fetchWithRetry(`${ESI_BASE_URL}/alliances/${allianceId}/`, {
          headers: {
            "User-Agent": "EVE-OSINT-MCP/1.0.0",
          },
        });
    
        if (!response.ok) {
          throw new Error(
            `ESI API error: ${response.status} ${response.statusText}`,
          );
        }
    
        return (await response.json()) as ESIAllianceInfo;
      } catch (error) {
        throw new Error(
          `Failed to get ESI alliance info: ${error instanceof Error ? error.message : String(error)}`,
        );
      }
    }
Behavior4/5

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

Annotations provide readOnlyHint=true and openWorldHint=true, indicating it's a safe read operation with open-world data. The description adds value by specifying the return content (member corporations, total member count, alliance details), which isn't covered by annotations. It doesn't contradict annotations, as 'Get' aligns with read-only behavior.

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?

The description is a single, efficient sentence that front-loads the purpose and key details without any wasted words. It's appropriately sized for a simple tool with one parameter and clear annotations.

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?

Given the tool's low complexity (one parameter, read-only, open-world), annotations cover safety and data scope, and the description specifies return content. However, there's no output schema, so the description could benefit from more detail on output structure or error handling, but it's largely complete for this context.

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 description coverage is 100%, with the parameter 'allianceName' well-documented in the schema. The description adds minimal semantic context by mentioning 'by name', but doesn't provide additional details beyond what the schema already specifies. Baseline 3 is appropriate given high schema coverage.

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 verb ('Get OSINT information') and resource ('about an EVE Online alliance by name'), and distinguishes it from sibling tools by specifying it's for alliances rather than characters or corporations. It provides a concrete outcome: 'Returns member corporations, total member count, and alliance details.'

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?

The description implies usage context by specifying 'by name' and listing what it returns, which helps differentiate it from siblings like character-osint and corporation-osint. However, it lacks explicit guidance on when to use this tool versus alternatives or any prerequisites or exclusions.

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

Related 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/kongyo2/EVE-Online-OSINT-MCP'

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