Loading...
Loading...
Execute Microsoft Graph API calls against Microsoft 365 tenants. Use when the user asks about Microsoft 365 data including users, groups, mail, calendar, Teams, SharePoint, OneDrive, Intune, Entra ID, or any Azure AD / Microsoft 365 administration task.
npx skill4agent add merill/msgraph msgraphmsgraph-skillmsgraph-skill auth statusmsgraph-skill auth signinmsgraph-skill graph-call GET /me--device-code| Command | Description |
|---|---|
| Sign in to Microsoft 365 |
| Sign in using device code flow |
| Sign in requesting specific scopes |
| Clear the current session |
| Check if signed in and show account info |
| Switch to a different M365 tenant |
msgraph-skill graph-call <METHOD> <URL># Get current user profile
msgraph-skill graph-call GET /me
# List users with selected fields
msgraph-skill graph-call GET /users --select "displayName,mail,userPrincipalName" --top 10
# Get user's mail with filtering
msgraph-skill graph-call GET /me/messages --filter "isRead eq false" --top 5 --select "subject,from,receivedDateTime"
# List groups
msgraph-skill graph-call GET /groups --select "displayName,description" --top 25
# Get team channels
msgraph-skill graph-call GET /teams/{team-id}/channels
# Search users
msgraph-skill graph-call GET /users --filter "startsWith(displayName,'John')"--allow-writes# Send a message (ask user first!)
msgraph-skill graph-call POST /me/sendMail --body '{"message":{"subject":"Hello","body":{"content":"Hi there"},"toRecipients":[{"emailAddress":{"address":"user@example.com"}}]}}' --allow-writes
# Update user properties (ask user first!)
msgraph-skill graph-call PATCH /me --body '{"jobTitle":"Engineer"}' --allow-writes| Flag | Description | Example |
|---|---|---|
| OData $select | |
| OData $filter | |
| OData $top (limit results) | |
| OData $expand | |
| OData $orderby | |
| API version (v1.0 or beta) | |
| Request additional scopes | |
| Custom HTTP headers | |
| Output format (json or raw) | |
/me/users/users/{id}/me/messages/groups/teams/{id}/channelsmsgraph-skill openapi-search --query "send mail"
msgraph-skill openapi-search --resource users --method GET
msgraph-skill openapi-search --query "calendar events" --method POST# Search by keyword
msgraph-skill openapi-search --query "list users"
# Search by resource and method
msgraph-skill openapi-search --resource messages --method GET
# Combined search
msgraph-skill openapi-search --query "create" --resource groups --method POST--allow-writes--api-version v1.0statusCodebodymsgraph-skill auth signin| Variable | Description | Default |
|---|---|---|
| Custom Azure AD app registration client ID | Microsoft Graph CLI Tools app |
| Target tenant ID | |
| Default API version | |
| Path to OpenAPI index JSON | Auto-detected |