Skip to content

Cannot book event with attendee via create-calendar-event tool #123

@RuxuePeng

Description

@RuxuePeng

Looked at the inputSchema returned by the server, the attendees field does not include property such as name or emailAddress.
which seems to be different from the actual graph API
We should be able to pass attendees' name and email address when booking an event on the calendar.

Tried to pass the below event data

event_data = {"body":{
                                "subject": "Test Event booked by MCP Client",
                                "body": {
                                    "contentType": "html",
                                    "content": "This is a test meeting created via the Outlook MCP client."
                                },
                                "start": {
                                    "dateTime": start,
                                    "timeZone": "Pacific Standard Time"
                                },
                                "end": {
                                    "dateTime": end,
                                    "timeZone": "Pacific Standard Time"
                                },
                                "location": {
                                    "displayName": "Bunny's house",
                                    "address": {
                                        "street": "123 Test St",
                                        "city": "San Francisco",
                                        "state": "CA",
                                        "countryOrRegion": "US",
                                        "postalCode": "12345"
                                    }
                                },
                                "attendees": [{"name":"Joe"}]
                            }
        }

And got this below error

mcp.shared.exceptions.McpError: MCP error -32602: Invalid arguments for tool create-calendar-event: [
  {
    "code": "unrecognized_keys",
    "keys": [
      "name"
    ],
    "path": [
      "body",
      "attendees",
      0
    ],
    "message": "Unrecognized key(s) in object: 'name'"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions