graph_search_all
Search mail, calendar, files, and Teams in one relevance-ranked query to locate items when you do not know where they live.
Instructions
Search mail, calendar, files, and Teams in one relevance-ranked query.
Use this when you do not know where something lives. chatMessage cannot be combined with SharePoint entity types like site, list, listItem, drive, or driveItem, so search Teams messages separately.
Args: query: Search query string (KQL is supported). entity_types: Resource types to search (default ["message", "event", "driveItem"]). One or more of: message, event, driveItem, drive, site, list, listItem, chatMessage, person. size: Maximum number of hits to return (default 25, maximum 50). from: Number of hits to skip for paging (default 0). compact: Whether to flatten the response into one list of hits, each reduced to {id, rank, summary, resource_type, name_or_subject, web_url} (default false, which returns the full hitsContainers payload). id is the hitId, falling back to the resource id; name_or_subject is the resource subject, name, displayName or title; web_url is its webUrl or webLink; a field the hit does not carry is omitted.
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": "graph_search_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | ||
| size | No | ||
| query | Yes | ||
| compact | No | ||
| entity_types | No |