get_site_by_url
Fetches a SharePoint site using its hostname and site path, enabling accurate lookup of the site for Microsoft 365 administration.
Instructions
Get a SharePoint site by hostname and path
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": {
"hostname": "<hostname>",
"site_path": "<site_path>"
},
"name": "get_site_by_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | The SharePoint hostname (e.g., contoso.sharepoint.com) | |
| site_path | Yes | The site path (e.g., sites/marketing) |