Skip to main content
Glama

misp_get_galaxy

Retrieve a specific galaxy with its clusters, such as MITRE ATT&CK techniques or threat actor profiles, by providing the galaxy ID.

Instructions

Get a specific galaxy with its clusters (e.g., MITRE ATT&CK techniques, threat actor profiles)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
galaxyIdYesGalaxy ID to retrieve

Implementation Reference

  • The 'misp_get_galaxy' tool handler function registered on the MCP server. It accepts a 'galaxyId' string parameter, calls client.getGalaxy(galaxyId), and returns the galaxy with its clusters (id, uuid, name, type, description, clusters array, cluster_count).
    // Get galaxy clusters
    server.tool(
      "misp_get_galaxy",
      "Get a specific galaxy with its clusters (e.g., MITRE ATT&CK techniques, threat actor profiles)",
      {
        galaxyId: z.string().describe("Galaxy ID to retrieve"),
      },
      async ({ galaxyId }) => {
        try {
          const galaxy = await client.getGalaxy(galaxyId);
    
          const result = {
            id: galaxy.id,
            uuid: galaxy.uuid,
            name: galaxy.name,
            type: galaxy.type,
            description: galaxy.description,
            clusters: (galaxy.GalaxyCluster || []).map((c) => ({
              id: c.id,
              value: c.value,
              description:
                c.description && c.description.length > 200
                  ? c.description.slice(0, 200) + "..."
                  : c.description,
              tag_name: c.tag_name,
            })),
            cluster_count: (galaxy.GalaxyCluster || []).length,
          };
    
          return {
            content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error getting galaxy: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • The input schema for 'misp_get_galaxy' - a single required parameter 'galaxyId' of type string validated with Zod.
    {
      galaxyId: z.string().describe("Galaxy ID to retrieve"),
    },
  • The tool is registered via server.tool() call in the registerGalaxyTools function, with name 'misp_get_galaxy' and description.
    server.tool(
      "misp_get_galaxy",
      "Get a specific galaxy with its clusters (e.g., MITRE ATT&CK techniques, threat actor profiles)",
      {
        galaxyId: z.string().describe("Galaxy ID to retrieve"),
      },
      async ({ galaxyId }) => {
        try {
          const galaxy = await client.getGalaxy(galaxyId);
    
          const result = {
            id: galaxy.id,
            uuid: galaxy.uuid,
            name: galaxy.name,
            type: galaxy.type,
            description: galaxy.description,
            clusters: (galaxy.GalaxyCluster || []).map((c) => ({
              id: c.id,
              value: c.value,
              description:
                c.description && c.description.length > 200
                  ? c.description.slice(0, 200) + "..."
                  : c.description,
              tag_name: c.tag_name,
            })),
            cluster_count: (galaxy.GalaxyCluster || []).length,
          };
    
          return {
            content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error getting galaxy: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • The 'getGalaxy' method on MispClient that the handler calls. Makes a GET request to '/galaxies/view/{galaxyId}' and returns the galaxy object with optional GalaxyCluster array.
    async getGalaxy(galaxyId: string): Promise<{
      id: string;
      uuid: string;
      name: string;
      type: string;
      description: string;
      GalaxyCluster?: MispGalaxyCluster[];
    }> {
      const data = await this.request<{
        Galaxy: { id: string; uuid: string; name: string; type: string; description: string };
        GalaxyCluster?: MispGalaxyCluster[];
      }>("GET", `/galaxies/view/${encodeId(galaxyId, "galaxyId")}`);
    
      return {
        ...data.Galaxy,
        GalaxyCluster: data.GalaxyCluster,
      };
    }
  • The MispGalaxyCluster type definition used in the return type of getGalaxy and in the handler's cluster mapping.
    // MISP Galaxy Cluster
    export interface MispGalaxyCluster {
      id: string;
      uuid: string;
      type: string;
      value: string;
      tag_name: string;
      description: string;
      galaxy_id: string;
    }
Behavior2/5

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

With no annotations provided, the description must fully disclose behavioral traits, but it only states the basic action. It does not mention permissions required, error handling (e.g., 404 if galaxy not found), rate limits, or whether the response includes all clusters or is paginated.

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, concise sentence that includes both the action and illustrative examples. Every word is purposeful, with no redundancy or extraneous content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple retrieval tool with one parameter and no output schema, the description is adequate but lacks details about the response format or behavior on error. Given the lack of annotations, more context would be beneficial, but it meets minimum viability.

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?

The input schema covers the single parameter 'galaxyId' with 100% description coverage. The tool description adds no additional semantic context beyond the schema, so a baseline score of 3 is appropriate per calibration guidelines.

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 that the tool retrieves a specific galaxy with its clusters, and provides concrete examples like MITRE ATT&CK techniques and threat actor profiles. This distinguishes it from sibling tools such as misp_list_galaxies which lists all galaxies, and misp_search_galaxy_clusters which searches clusters.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives like misp_list_galaxies or misp_search_galaxy_clusters. The description implies usage through examples but lacks explicit conditions, exclusions, or references to other tools.

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