Skip to main content
Glama
kongyo2

EVE Online OSINT MCP Server

corporation-osint

Read-only

Retrieve OSINT data on EVE Online corporations, including member lists, activity metrics, and detailed profiles, using the corporation name as input.

Instructions

Get OSINT information about an EVE Online corporation by name. Returns member list, activity metrics, and corporation details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
corporationNameYesThe exact name of the EVE Online corporation to investigate

Implementation Reference

  • The execute handler for the corporation-osint tool. Resolves the corporation name to ID using ESI search, fetches detailed corporation information from ESI (including member count, tax rate, CEO, etc.), retrieves member list and stats from EveWho API, and compiles a markdown-formatted OSINT report.
    execute: async (args, { log }) => {
      try {
        log.info("Resolving corporation name to ID", {
          corporationName: args.corporationName,
        });
    
        // Resolve corporation name to ID
        const resolved = await resolveNamesToIds([args.corporationName]);
    
        if (!resolved.corporations || resolved.corporations.length === 0) {
          return `Corporation "${args.corporationName}" not found. Please check the spelling and ensure it's an exact match.`;
        }
    
        const corporation = resolved.corporations[0];
        log.info("Corporation resolved", {
          id: corporation.id,
          name: corporation.name,
        });
    
        // Get corporation information from multiple sources
        log.info("Fetching corporation data from multiple sources", {
          corporationId: corporation.id,
        });
        const [esiCorpInfo, eveWhoCorpData] = await Promise.allSettled([
          getESICorporationInfo(corporation.id),
          getCorporationMembers(corporation.id),
        ]);
    
        let result = `# Corporation OSINT Report: ${corporation.name}\n\n`;
        result += `**Corporation ID:** ${corporation.id}\n`;
        result += `**Corporation Name:** ${corporation.name}\n\n`;
    
        // ESI Corporation Information
        if (esiCorpInfo.status === "fulfilled") {
          const esiInfo = esiCorpInfo.value;
          result += `## ESI Corporation Information\n`;
          result += `**Name:** ${esiInfo.name}\n`;
          result += `**Ticker:** ${esiInfo.ticker}\n`;
          result += `**Member Count:** ${esiInfo.member_count}\n`;
          result += `**Tax Rate:** ${(esiInfo.tax_rate * 100).toFixed(1)}%\n`;
          if (esiInfo.date_founded) {
            result += `**Founded:** ${esiInfo.date_founded}\n`;
          }
          if (esiInfo.alliance_id) {
            result += `**Alliance ID:** ${esiInfo.alliance_id}\n`;
          }
          result += `**CEO ID:** ${esiInfo.ceo_id}\n`;
          result += `**Creator ID:** ${esiInfo.creator_id}\n`;
          if (esiInfo.description) {
            result += `**Description:** ${esiInfo.description}\n`;
          }
          if (esiInfo.url) {
            result += `**URL:** ${esiInfo.url}\n`;
          }
          if (esiInfo.war_eligible !== undefined) {
            result += `**War Eligible:** ${esiInfo.war_eligible ? "Yes" : "No"}\n`;
          }
          result += `\n`;
        }
    
        // EveWho Corporation Data
        if (eveWhoCorpData.status === "fulfilled") {
          const corpData = eveWhoCorpData.value;
          result += `## EveWho Corporation Statistics\n`;
          if (corpData.memberCount !== undefined) {
            result += `**Total Members (EveWho):** ${corpData.memberCount}\n`;
          }
          if (corpData.delta !== undefined) {
            result += `**7-Day Delta:** ${corpData.delta > 0 ? "+" : ""}${corpData.delta}\n`;
          }
          if (corpData.alliance) {
            result += `**Alliance:** ${corpData.alliance.name} (ID: ${corpData.alliance.alliance_id})\n`;
          }
    
          result += `\n## Member List (EveWho)\n`;
          if (corpData.characters && corpData.characters.length > 0) {
            result += `Showing ${Math.min(corpData.characters.length, 50)} members:\n\n`;
            corpData.characters.slice(0, 50).forEach((member, index: number) => {
              result += `${index + 1}. **${member.name}** (ID: ${member.character_id})`;
              if (member.start_date) {
                result += ` - Joined: ${member.start_date}`;
              }
              if (member.security_status !== undefined) {
                result += ` - Sec Status: ${member.security_status.toFixed(2)}`;
              }
              result += `\n`;
            });
    
            if (corpData.characters.length > 50) {
              result += `\n*... and ${corpData.characters.length - 50} more members*\n`;
            }
          } else {
            result += "No member data available.\n";
          }
        }
    
        result += `\n---\n*Data provided by EveWho API*`;
    
        return result;
      } catch (error) {
        log.error("Corporation OSINT failed", {
          error: error instanceof Error ? error.message : String(error),
        });
        return `Error: ${error instanceof Error ? error.message : String(error)}`;
      }
    },
  • Zod schema defining the input parameters for the tool: a required string 'corporationName'.
    parameters: z.object({
      corporationName: z
        .string()
        .describe("The exact name of the EVE Online corporation to investigate"),
    }),
  • src/server.ts:744-864 (registration)
    Registration of the 'corporation-osint' tool via server.addTool(), including annotations, description, name, parameters schema, and execute handler.
    server.addTool({
      annotations: {
        openWorldHint: true,
        readOnlyHint: true,
        title: "Corporation OSINT",
      },
      description:
        "Get OSINT information about an EVE Online corporation by name. Returns member list, activity metrics, and corporation details.",
      execute: async (args, { log }) => {
        try {
          log.info("Resolving corporation name to ID", {
            corporationName: args.corporationName,
          });
    
          // Resolve corporation name to ID
          const resolved = await resolveNamesToIds([args.corporationName]);
    
          if (!resolved.corporations || resolved.corporations.length === 0) {
            return `Corporation "${args.corporationName}" not found. Please check the spelling and ensure it's an exact match.`;
          }
    
          const corporation = resolved.corporations[0];
          log.info("Corporation resolved", {
            id: corporation.id,
            name: corporation.name,
          });
    
          // Get corporation information from multiple sources
          log.info("Fetching corporation data from multiple sources", {
            corporationId: corporation.id,
          });
          const [esiCorpInfo, eveWhoCorpData] = await Promise.allSettled([
            getESICorporationInfo(corporation.id),
            getCorporationMembers(corporation.id),
          ]);
    
          let result = `# Corporation OSINT Report: ${corporation.name}\n\n`;
          result += `**Corporation ID:** ${corporation.id}\n`;
          result += `**Corporation Name:** ${corporation.name}\n\n`;
    
          // ESI Corporation Information
          if (esiCorpInfo.status === "fulfilled") {
            const esiInfo = esiCorpInfo.value;
            result += `## ESI Corporation Information\n`;
            result += `**Name:** ${esiInfo.name}\n`;
            result += `**Ticker:** ${esiInfo.ticker}\n`;
            result += `**Member Count:** ${esiInfo.member_count}\n`;
            result += `**Tax Rate:** ${(esiInfo.tax_rate * 100).toFixed(1)}%\n`;
            if (esiInfo.date_founded) {
              result += `**Founded:** ${esiInfo.date_founded}\n`;
            }
            if (esiInfo.alliance_id) {
              result += `**Alliance ID:** ${esiInfo.alliance_id}\n`;
            }
            result += `**CEO ID:** ${esiInfo.ceo_id}\n`;
            result += `**Creator ID:** ${esiInfo.creator_id}\n`;
            if (esiInfo.description) {
              result += `**Description:** ${esiInfo.description}\n`;
            }
            if (esiInfo.url) {
              result += `**URL:** ${esiInfo.url}\n`;
            }
            if (esiInfo.war_eligible !== undefined) {
              result += `**War Eligible:** ${esiInfo.war_eligible ? "Yes" : "No"}\n`;
            }
            result += `\n`;
          }
    
          // EveWho Corporation Data
          if (eveWhoCorpData.status === "fulfilled") {
            const corpData = eveWhoCorpData.value;
            result += `## EveWho Corporation Statistics\n`;
            if (corpData.memberCount !== undefined) {
              result += `**Total Members (EveWho):** ${corpData.memberCount}\n`;
            }
            if (corpData.delta !== undefined) {
              result += `**7-Day Delta:** ${corpData.delta > 0 ? "+" : ""}${corpData.delta}\n`;
            }
            if (corpData.alliance) {
              result += `**Alliance:** ${corpData.alliance.name} (ID: ${corpData.alliance.alliance_id})\n`;
            }
    
            result += `\n## Member List (EveWho)\n`;
            if (corpData.characters && corpData.characters.length > 0) {
              result += `Showing ${Math.min(corpData.characters.length, 50)} members:\n\n`;
              corpData.characters.slice(0, 50).forEach((member, index: number) => {
                result += `${index + 1}. **${member.name}** (ID: ${member.character_id})`;
                if (member.start_date) {
                  result += ` - Joined: ${member.start_date}`;
                }
                if (member.security_status !== undefined) {
                  result += ` - Sec Status: ${member.security_status.toFixed(2)}`;
                }
                result += `\n`;
              });
    
              if (corpData.characters.length > 50) {
                result += `\n*... and ${corpData.characters.length - 50} more members*\n`;
              }
            } else {
              result += "No member data available.\n";
            }
          }
    
          result += `\n---\n*Data provided by EveWho API*`;
    
          return result;
        } catch (error) {
          log.error("Corporation OSINT failed", {
            error: error instanceof Error ? error.message : String(error),
          });
          return `Error: ${error instanceof Error ? error.message : String(error)}`;
        }
      },
      name: "corporation-osint",
      parameters: z.object({
        corporationName: z
          .string()
          .describe("The exact name of the EVE Online corporation to investigate"),
      }),
    });
  • Helper function to fetch corporation member list from EveWho API, used by the corporation-osint handler.
    async function getCorporationMembers(
      corporationId: number,
    ): Promise<EveWhoCorporationResponse> {
      try {
        const response = await fetchWithRetry(
          `${EVEWHO_BASE_URL}/corplist/${corporationId}`,
          {
            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 EveWhoCorporationResponse;
      } catch (error) {
        throw new Error(
          `Failed to get corporation members: ${error instanceof Error ? error.message : String(error)}`,
        );
      }
  • Helper function to fetch corporation details from ESI API, used by the corporation-osint handler.
    async function getESICorporationInfo(
      corporationId: number,
    ): Promise<ESICorporationInfo> {
      try {
        const response = await fetchWithRetry(
          `${ESI_BASE_URL}/corporations/${corporationId}/`,
          {
            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 ESICorporationInfo;
      } catch (error) {
        throw new Error(
          `Failed to get ESI corporation 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 this is a safe read operation with open-world data. The description adds value by specifying the return content: 'Returns member list, activity metrics, and corporation details,' which gives context on what information is retrieved. It doesn't disclose behavioral traits like rate limits or auth needs, but with annotations covering safety, this is acceptable.

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 two sentences, front-loaded with the core purpose and followed by return details. Every sentence adds value: the first states what the tool does, and the second specifies the output. There is no wasted text, making it highly concise and well-structured.

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 complexity (simple lookup with one parameter), annotations cover safety (readOnlyHint, openWorldHint), and the description specifies return content. There is no output schema, so the description's mention of return values is helpful. However, it could be more complete by addressing potential errors or usage nuances, but it's largely adequate for the 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 'corporationName' documented as 'The exact name of the EVE Online corporation to investigate.' The description adds minimal semantics by reinforcing 'by name' but doesn't provide additional details beyond what the schema already covers. Baseline score of 3 is appropriate as the schema handles parameter documentation effectively.

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 tool's purpose: 'Get OSINT information about an EVE Online corporation by name.' It specifies the verb ('Get'), resource ('OSINT information about an EVE Online corporation'), and scope ('by name'). However, it doesn't explicitly differentiate from sibling tools (alliance-osint, character-osint) beyond mentioning 'corporation' specifically.

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

Usage Guidelines3/5

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

The description implies usage context by stating 'by name,' suggesting this tool is for looking up specific corporations. However, it doesn't provide explicit guidance on when to use this tool versus the sibling tools (alliance-osint, character-osint), nor does it mention any prerequisites or exclusions. The usage is implied but not clearly articulated.

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