Skip to main content
Glama

misp_attach_galaxy_cluster

Attach a threat intelligence galaxy cluster, such as a MITRE ATT&CK technique or threat actor, to a MISP event or attribute for enrichment.

Instructions

Attach a galaxy cluster (MITRE ATT&CK technique, threat actor, etc.) to an event or attribute

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetTypeYesAttach to an event or attribute
targetIdYesEvent ID or attribute ID
galaxyClusterIdYesGalaxy cluster ID to attach

Implementation Reference

  • Registers the 'misp_attach_galaxy_cluster' MCP tool handler with Zod schema validation for targetType (event or attribute), targetId, and galaxyClusterId, calling client.attachGalaxyCluster.
    // Attach galaxy cluster to event
    server.tool(
      "misp_attach_galaxy_cluster",
      "Attach a galaxy cluster (MITRE ATT&CK technique, threat actor, etc.) to an event or attribute",
      {
        targetType: z
          .enum(["event", "attribute"])
          .describe("Attach to an event or attribute"),
        targetId: z.string().describe("Event ID or attribute ID"),
        galaxyClusterId: z
          .string()
          .describe("Galaxy cluster ID to attach"),
      },
      async ({ targetType, targetId, galaxyClusterId }) => {
        try {
          await client.attachGalaxyCluster(targetType, targetId, galaxyClusterId);
          return {
            content: [
              {
                type: "text",
                text: `Galaxy cluster ${galaxyClusterId} attached to ${targetType} ${targetId}.`,
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error attaching galaxy cluster: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • Zod schema defining input parameters: targetType (enum event/attribute), targetId (string), galaxyClusterId (string).
    {
      targetType: z
        .enum(["event", "attribute"])
        .describe("Attach to an event or attribute"),
      targetId: z.string().describe("Event ID or attribute ID"),
      galaxyClusterId: z
        .string()
        .describe("Galaxy cluster ID to attach"),
    },
  • Registration of the tool via server.tool() inside registerGalaxyTools(), which is called from src/index.ts line 39.
    // Attach galaxy cluster to event
    server.tool(
      "misp_attach_galaxy_cluster",
      "Attach a galaxy cluster (MITRE ATT&CK technique, threat actor, etc.) to an event or attribute",
      {
        targetType: z
          .enum(["event", "attribute"])
          .describe("Attach to an event or attribute"),
        targetId: z.string().describe("Event ID or attribute ID"),
        galaxyClusterId: z
          .string()
          .describe("Galaxy cluster ID to attach"),
      },
      async ({ targetType, targetId, galaxyClusterId }) => {
        try {
          await client.attachGalaxyCluster(targetType, targetId, galaxyClusterId);
          return {
            content: [
              {
                type: "text",
                text: `Galaxy cluster ${galaxyClusterId} attached to ${targetType} ${targetId}.`,
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error attaching galaxy cluster: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • Client helper method that sends a POST request to /galaxies/attachCluster/{targetId}/{targetType} with the galaxy cluster ID in the body.
    async attachGalaxyCluster(
      targetType: "event" | "attribute",
      targetId: string,
      galaxyClusterId: string
    ): Promise<unknown> {
      if (!ID_PATTERN.test(galaxyClusterId)) {
        throw new Error(`Invalid galaxyClusterId: ${JSON.stringify(galaxyClusterId)}`);
      }
      return this.request(
        "POST",
        `/galaxies/attachCluster/${encodeId(targetId, "targetId")}/${targetType}`,
        { Galaxy: { target_id: galaxyClusterId } }
      );
    }
  • src/index.ts:39-39 (registration)
    Top-level registration call in the main entry point that wires up the galaxy tools including misp_attach_galaxy_cluster.
    registerGalaxyTools(server, client);
Behavior2/5

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

With no annotations, the description carries the full burden. It only says 'Attach', implying a write operation, but does not disclose side effects, permissions, or whether the attachment is additive or replaces existing ones. Behavioral transparency is minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that is concise and front-loaded with the verb and resource. It earns its place, but could include slightly more detail without losing brevity.

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

Completeness2/5

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

Given the absence of annotations and no output schema, the description is too minimal. It lacks return value info, error conditions, and usage guidelines, leaving gaps for an AI agent.

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 coverage is 100%, so baseline is 3. The description does not add parameter-specific details beyond the schema. The examples (MITRE ATT&CK) provide some context for galaxyClusterId but not direct parameter semantics.

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 'Attach a galaxy cluster' with examples (MITRE ATT&CK technique, threat actor) and specifies the target as 'event or attribute'. This distinguishes it from sibling tools like misp_tag_event or misp_add_attribute, as it focuses on galaxy clusters specifically.

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?

The description gives no guidance on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or related tools. Usage is only implied by the action verb.

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