Skip to main content
Glama

misp_list_galaxies

Retrieve available MISP galaxies, including MITRE ATT&CK, threat actors, malware families, and tools, to enrich threat intelligence analysis.

Instructions

List available MISP galaxies (MITRE ATT&CK, threat actors, malware families, tools, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoFilter galaxies by name or type
namespaceNoFilter by namespace (e.g., mitre-attack-pattern, mitre-intrusion-set, mitre-malware)

Implementation Reference

  • The handler function for the 'misp_list_galaxies' tool. It calls client.listGalaxies(), optionally filters by search (name/type/description) and namespace (type), then returns a formatted JSON summary of matching galaxies (id, name, type, description truncated to 150 chars). Errors are caught and returned as isError.
    async ({ search, namespace }) => {
      try {
        const galaxies = await client.listGalaxies();
        let filtered = galaxies;
    
        if (search) {
          const q = search.toLowerCase();
          filtered = filtered.filter(
            (g) =>
              g.name.toLowerCase().includes(q) ||
              g.type.toLowerCase().includes(q) ||
              g.description.toLowerCase().includes(q)
          );
        }
    
        if (namespace) {
          const ns = namespace.toLowerCase();
          filtered = filtered.filter((g) =>
            g.type.toLowerCase().includes(ns)
          );
        }
    
        if (filtered.length === 0) {
          return {
            content: [{ type: "text", text: "No galaxies found matching the criteria." }],
          };
        }
    
        const summary = filtered.map((g) => ({
          id: g.id,
          name: g.name,
          type: g.type,
          description:
            g.description.length > 150
              ? g.description.slice(0, 150) + "..."
              : g.description,
        }));
    
        return {
          content: [{ type: "text", text: JSON.stringify(summary, null, 2) }],
        };
      } catch (err) {
        return {
          content: [
            {
              type: "text",
              text: `Error listing galaxies: ${err instanceof Error ? err.message : String(err)}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Input schema for 'misp_list_galaxies' using Zod: optional 'search' (filter by name/type/description) and optional 'namespace' (filter by galaxy type, e.g. mitre-attack-pattern).
    {
      search: z
        .string()
        .optional()
        .describe("Filter galaxies by name or type"),
      namespace: z
        .string()
        .optional()
        .describe(
          "Filter by namespace (e.g., mitre-attack-pattern, mitre-intrusion-set, mitre-malware)"
        ),
    },
  • The tool is registered via server.tool('misp_list_galaxies', ...) inside registerGalaxyTools(). This function is exported and called from src/index.ts line 39.
    export function registerGalaxyTools(server: McpServer, client: MispClient): void {
      // List galaxies
      server.tool(
        "misp_list_galaxies",
        "List available MISP galaxies (MITRE ATT&CK, threat actors, malware families, tools, etc.)",
        {
          search: z
            .string()
            .optional()
            .describe("Filter galaxies by name or type"),
          namespace: z
            .string()
            .optional()
            .describe(
              "Filter by namespace (e.g., mitre-attack-pattern, mitre-intrusion-set, mitre-malware)"
            ),
        },
        async ({ search, namespace }) => {
          try {
            const galaxies = await client.listGalaxies();
            let filtered = galaxies;
    
            if (search) {
              const q = search.toLowerCase();
              filtered = filtered.filter(
                (g) =>
                  g.name.toLowerCase().includes(q) ||
                  g.type.toLowerCase().includes(q) ||
                  g.description.toLowerCase().includes(q)
              );
            }
    
            if (namespace) {
              const ns = namespace.toLowerCase();
              filtered = filtered.filter((g) =>
                g.type.toLowerCase().includes(ns)
              );
            }
    
            if (filtered.length === 0) {
              return {
                content: [{ type: "text", text: "No galaxies found matching the criteria." }],
              };
            }
    
            const summary = filtered.map((g) => ({
              id: g.id,
              name: g.name,
              type: g.type,
              description:
                g.description.length > 150
                  ? g.description.slice(0, 150) + "..."
                  : g.description,
            }));
    
            return {
              content: [{ type: "text", text: JSON.stringify(summary, null, 2) }],
            };
          } catch (err) {
            return {
              content: [
                {
                  type: "text",
                  text: `Error listing galaxies: ${err instanceof Error ? err.message : String(err)}`,
                },
              ],
              isError: true,
            };
          }
        }
      );
  • The client.listGalaxies() helper method that makes a GET request to /galaxies endpoint and maps the response to extract Galaxy objects (id, name, type, description, uuid).
    async listGalaxies(): Promise<
      Array<{ id: string; name: string; type: string; description: string; uuid: string }>
    > {
      const data = await this.request<
        Array<{ Galaxy: { id: string; name: string; type: string; description: string; uuid: string } }>
      >("GET", "/galaxies");
      return (data || []).map((g) => g.Galaxy);
    }
  • src/index.ts:39-39 (registration)
    Main entry point registration: registerGalaxyTools(server, client) called in src/index.ts to wire up the tool.
    registerGalaxyTools(server, client);
Behavior2/5

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

No annotations provided, so the description must fully disclose behavior. It merely states the purpose without mentioning read-only nature, result volume, pagination, or any side effects. This is minimal behavioral transparency.

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?

Single sentence with no redundant information. Clearly states purpose and provides practical examples, making it efficient and front-loaded.

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 two optional parameters and no output schema, the description is fairly complete. It could mention return format or that it is a safe read operation, but overall it provides adequate context for an agent to use the tool.

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?

Input schema has 100% description coverage for both parameters (search, namespace). The tool description adds examples of namespaces but does not provide extra semantic value beyond what the schema already offers. Baseline score of 3 is appropriate.

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 'List available MISP galaxies' with examples of galaxy types (MITRE ATT&CK, threat actors, etc.), which distinguishes it from sibling tools like misp_get_galaxy (retrieve specific galaxy) and misp_search_galaxy_clusters (search within galaxies).

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?

No explicit guidance on when to use this tool versus alternatives like misp_get_galaxy or misp_search_galaxy_clusters. The description implies listing usage but lacks exclusions or alternative references.

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/solomonneas/misp-mcp'

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