Raw Microsoft Graph Request
graph_queryExecute arbitrary Microsoft Graph API requests to perform Microsoft 365 operations not covered by other tools, with configurable method, path, headers, and JSON body.
Instructions
Execute an arbitrary Microsoft Graph API query. Use this for operations not covered by other tools.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "graph_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body as a string | |
| path | Yes | Graph API path (e.g., /me/memberOf) | |
| method | Yes | HTTP method: GET, POST, PUT, PATCH, or DELETE | |
| headers | No | Extra request headers, e.g. { "If-Match": "<etag>" } for concurrency-controlled writes. Allowed: Accept, Accept-Language, client-request-id, ConsistencyLevel, Content-Type, If-Match, If-None-Match, Prefer | |
| version | No | API version: v1.0 or beta (default: v1.0) |