create_subscription
Set up a webhook subscription to receive change notifications for a Microsoft Graph resource such as messages, events, or drive files by specifying the resource and notification URL.
Instructions
Create a webhook subscription for a resource. resource: e.g. 'me/messages', 'me/events', 'me/drive/root'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"notification_url": "<notification_url>",
"resource": "<resource>"
},
"name": "create_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | ||
| change_type | No | created,updated | |
| client_state | No | ||
| notification_url | Yes | ||
| expiration_datetime | No |