Skip to main content
Glama

misp_update_event

Update an existing MISP event's metadata, including info, threat level, and analysis status. Publishing is handled separately.

Instructions

Update an existing MISP event's metadata (info, threat level, analysis status). Publishing is separate - use misp_publish_event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventIdYesEvent ID to update
infoNoNew event description
threatLevelNo1=High, 2=Medium, 3=Low, 4=Undefined
analysisNo0=Initial, 1=Ongoing, 2=Complete

Implementation Reference

  • Registration of 'misp_update_event' tool via server.tool(), including the handler callback and input schema definition
    // Update event
    server.tool(
      "misp_update_event",
      "Update an existing MISP event's metadata (info, threat level, analysis status). Publishing is separate - use misp_publish_event.",
      {
        eventId: z.string().describe("Event ID to update"),
        info: z.string().optional().describe("New event description"),
        threatLevel: z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4)]).optional()
          .describe("1=High, 2=Medium, 3=Low, 4=Undefined"),
        analysis: z.union([z.literal(0), z.literal(1), z.literal(2)]).optional()
          .describe("0=Initial, 1=Ongoing, 2=Complete"),
      },
      async ({ eventId, info, threatLevel, analysis }) => {
        try {
          const event = await client.updateEvent(eventId, {
            info,
            threat_level_id: threatLevel,
            analysis,
          });
    
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(
                  {
                    id: event.id,
                    info: event.info,
                    threat_level_id: event.threat_level_id,
                    analysis: event.analysis,
                    published: event.published,
                  },
                  null,
                  2
                ),
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              { type: "text", text: `Error updating event: ${err instanceof Error ? err.message : String(err)}` },
            ],
            isError: true,
          };
        }
      }
    );
  • Input schema: eventId (required), info, threatLevel (1-4), analysis (0-2) all optional
    {
      eventId: z.string().describe("Event ID to update"),
      info: z.string().optional().describe("New event description"),
      threatLevel: z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4)]).optional()
        .describe("1=High, 2=Medium, 3=Low, 4=Undefined"),
      analysis: z.union([z.literal(0), z.literal(1), z.literal(2)]).optional()
        .describe("0=Initial, 1=Ongoing, 2=Complete"),
    },
  • Handler: calls client.updateEvent() with the event data and returns the updated event metadata as JSON
    async ({ eventId, info, threatLevel, analysis }) => {
      try {
        const event = await client.updateEvent(eventId, {
          info,
          threat_level_id: threatLevel,
          analysis,
        });
    
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(
                {
                  id: event.id,
                  info: event.info,
                  threat_level_id: event.threat_level_id,
                  analysis: event.analysis,
                  published: event.published,
                },
                null,
                2
              ),
            },
          ],
        };
      } catch (err) {
        return {
          content: [
            { type: "text", text: `Error updating event: ${err instanceof Error ? err.message : String(err)}` },
          ],
          isError: true,
        };
      }
    }
  • MispClient.updateEvent() helper method that sends a POST to /events/edit/{eventId} with the Event payload
    async updateEvent(
      eventId: string,
      params: {
        info?: string;
        threat_level_id?: number;
        analysis?: number;
      }
    ): Promise<MispEvent> {
      const eventData: Record<string, unknown> = {};
      if (params.info !== undefined) eventData.info = params.info;
      if (params.threat_level_id !== undefined)
        eventData.threat_level_id = params.threat_level_id;
      if (params.analysis !== undefined) eventData.analysis = params.analysis;
    
      const data = await this.request<EventResponse>(
        "POST",
        `/events/edit/${encodeId(eventId, "eventId")}`,
        { Event: eventData }
      );
      return data.Event;
    }
  • src/index.ts:31-42 (registration)
    Registration call that wires up registerEventTools() which registers misp_update_event among other event tools
    registerEventTools(server, client);
    registerAttributeTools(server, client);
    registerCorrelationTools(server, client);
    registerTagTools(server, client);
    registerExportTools(server, client);
    registerSightingTools(server, client);
    registerWarninglistTools(server, client);
    registerObjectTools(server, client);
    registerGalaxyTools(server, client);
    registerFeedTools(server, client);
    registerOrganisationTools(server, client);
    registerServerTools(server, client);
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses the behavioral scope (metadata update) and importantly clarifies that publishing is not included. It does not contradict any annotations (none exist). A slightly higher score would require mentioning side effects or permissions, but the description is adequate.

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?

Two sentences, each serving a distinct purpose: first defines the tool's action and scope, second provides a critical usage guideline (no publishing). No wasted words, very efficient.

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?

The tool is simple and the description covers its purpose and a key nuance (separate publishing). With no output schema, a note about return value might be helpful but is not critical. Almost complete for the tool's complexity.

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%, so the schema already documents each parameter well (including enum meanings). The description adds grouping ('info, threat level, analysis status') which provides mild additional context but is not essential. Baseline 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 the verb 'update', the resource 'MISP event', and specifies the metadata fields (info, threat level, analysis status). It also distinguishes from the sibling tool misp_publish_event by noting that publishing is separate.

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

Usage Guidelines5/5

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

The description explicitly says when to use this tool (to update event metadata) and when not to (for publishing), directing to an alternative sibling tool (misp_publish_event). This provides clear usage boundaries.

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