Search Microsoft 365 Directory
search_m365_directorySearch your organization's Microsoft 365 directory for users by name or email. Returns matching users with their title, department, and contact info.
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": {
"query": "<query>"
},
"name": "search_m365_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 10, max 25) | |
| query | Yes | Name or email to search for, e.g. 'Sarah' or 'sarah@contoso.com' | |
| account | No | Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| query | No | ||
| users | No | ||
| account | No | The email (UPN) of the Microsoft 365 account this call used. |