Skip to main content
Glama
merajmehrabi

Outlook Calendar MCP

by merajmehrabi

update_event

Modify existing calendar events by updating details like subject, date, time, location, or description directly in Microsoft Outlook, ensuring changes are managed locally for privacy.

Instructions

Update an existing calendar event

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoNew event description/body (optional)
calendarNoCalendar name (optional)
endDateNoNew end date in MM/DD/YYYY format (optional)
endTimeNoNew end time in HH:MM AM/PM format (optional)
eventIdYesEvent ID to update
locationNoNew event location (optional)
startDateNoNew start date in MM/DD/YYYY format (optional)
startTimeNoNew start time in HH:MM AM/PM format (optional)
subjectNoNew event subject/title (optional)

Implementation Reference

  • The specific handler function for the 'update_event' MCP tool. It extracts parameters, calls the updateEvent helper function from scriptRunner.js, and formats the response as MCP content with error handling.
    handler: async ({ eventId, subject, startDate, startTime, endDate, endTime, location, body, calendar }) => {
      try {
        const result = await updateEvent(eventId, subject, startDate, startTime, endDate, endTime, location, body, calendar);
        return {
          content: [
            {
              type: 'text',
              text: result.success 
                ? `Event updated successfully` 
                : `Failed to update event`
            }
          ]
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: `Error updating event: ${error.message}`
            }
          ],
          isError: true
        };
      }
    }
  • Input schema for the 'update_event' tool, defining all parameters with types, descriptions, and required fields.
    inputSchema: {
      type: 'object',
      properties: {
        eventId: {
          type: 'string',
          description: 'Event ID to update'
        },
        subject: {
          type: 'string',
          description: 'New event subject/title (optional)'
        },
        startDate: {
          type: 'string',
          description: 'New start date in MM/DD/YYYY format (optional)'
        },
        startTime: {
          type: 'string',
          description: 'New start time in HH:MM AM/PM format (optional)'
        },
        endDate: {
          type: 'string',
          description: 'New end date in MM/DD/YYYY format (optional)'
        },
        endTime: {
          type: 'string',
          description: 'New end time in HH:MM AM/PM format (optional)'
        },
        location: {
          type: 'string',
          description: 'New event location (optional)'
        },
        body: {
          type: 'string',
          description: 'New event description/body (optional)'
        },
        calendar: {
          type: 'string',
          description: 'Calendar name (optional)'
        }
      },
      required: ['eventId']
    },
  • src/index.js:34-39 (registration)
    Registers all Outlook tools, including 'update_event', by calling defineOutlookTools() and loading them into the MCP server's tool registry.
    // Define the tools
    this.tools = defineOutlookTools();
    
    // Set up request handlers
    this.setupToolHandlers();
  • Helper function that executes the VBScript 'updateEvent.vbs' with the provided event update parameters using the general executeScript utility.
    export async function updateEvent(eventId, subject, startDate, startTime, endDate, endTime, location, body, calendar) {
      return executeScript('updateEvent', {
        eventId,
        subject,
        startDate,
        startTime,
        endDate,
        endTime,
        location,
        body,
        calendar
      });
    }
  • src/index.js:66-95 (registration)
    MCP server request handler for calling any tool (including 'update_event') by looking up in the tool registry and invoking its handler.
    this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
      
      // Find the requested tool
      const tool = this.tools[name];
      
      if (!tool) {
        throw new McpError(
          ErrorCode.MethodNotFound,
          `Tool not found: ${name}`
        );
      }
      
      try {
        // Call the tool handler
        return await tool.handler(args);
      } catch (error) {
        console.error(`Error executing tool ${name}:`, error);
        
        return {
          content: [
            {
              type: 'text',
              text: `Error executing tool ${name}: ${error.message}`,
            },
          ],
          isError: true,
        };
      }
    });
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is an update operation, implying mutation, but fails to describe critical behaviors: whether it requires specific permissions, if changes are reversible, how partial updates are handled, error conditions, or what the response looks like. For a mutation tool with zero annotation coverage, this is a significant gap in 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?

The description is a single, efficient sentence that front-loads the core purpose ('Update an existing calendar event') with zero wasted words. It is appropriately sized for a tool with a clear name and well-documented schema, making it easy for an agent to parse quickly.

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 complexity of a mutation tool with 9 parameters, no annotations, and no output schema, the description is incomplete. It lacks behavioral context (e.g., permissions, error handling), usage guidelines, and details on return values, leaving significant gaps for an agent to operate effectively. The high schema coverage helps but doesn't compensate for these omissions.

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 schema description coverage is 100%, with all 9 parameters well-documented in the input schema (e.g., formats like 'MM/DD/YYYY' for dates). The description adds no additional parameter semantics beyond what's in the schema, such as explaining interdependencies or default behaviors. With high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.

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 verb ('Update') and resource ('an existing calendar event'), making the tool's function immediately understandable. It distinguishes this from 'create_event' (creating new) and 'delete_event' (removing), though it doesn't explicitly mention these siblings. The purpose is specific but lacks explicit sibling differentiation for a perfect score.

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 provides no guidance on when to use this tool versus alternatives like 'create_event' or 'delete_event', nor does it mention prerequisites (e.g., needing an existing event ID) or contextual constraints. It simply states what the tool does without indicating appropriate scenarios, leaving the agent to infer usage from the tool name alone.

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/merajmehrabi/Outlook_Calendar_MCP'

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