Raw Microsoft Graph Request
graph_queryExecute arbitrary Microsoft Graph API requests for Microsoft 365 operations not covered by other tools, supporting custom paths, methods, headers, and request bodies.
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 | |
| version | No | API version: v1.0 or beta (default: v1.0) |