graph-request
Execute raw Microsoft Graph API requests to access Microsoft 365 services. Target specific accounts without switching, supporting any endpoint with custom parameters.
Instructions
Execute a raw Microsoft Graph API request. Supports any Graph API endpoint. Can target specific account without switching.
Documentation:
Graph API Reference: https://learn.microsoft.com/en-us/graph/api/overview
Common endpoints: /me, /users, /groups, /me/messages, /me/calendar/events, /me/drive
OData query params: $select, $filter, $top, $orderby, $expand, $count, $search
Permissions reference: https://learn.microsoft.com/en-us/graph/permissions-reference
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | The Graph API endpoint path (e.g., "/me", "/users", "/me/messages") | |
| method | No | HTTP method | GET |
| body | No | Request body for POST/PUT/PATCH requests (JSON object) | |
| queryParams | No | Query parameters (e.g., {"$select": "displayName", "$top": "10"}) | |
| headers | No | Additional headers to include | |
| apiVersion | No | Graph API version | v1.0 |
| accountId | No | Target a specific account by ID without switching. Use list-accounts to see available IDs. |