get_bookings_businesses
Retrieve all Microsoft Bookings businesses to manage appointments, staff, and services through the Graph API.
Instructions
Get list of Bookings businesses
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_bookings_businesses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:185-198 (handler)The core implementation of the 'get_bookings_businesses' tool. It queries the Microsoft Graph API endpoint '/solutions/bookingBusinesses', retrieves the list of booking businesses, and returns the JSON-formatted response as MCP tool content.
private async getBookingsBusinesses() { const response = await this.graphClient .api('/solutions/bookingBusinesses') .get(); return { content: [ { type: 'text', text: JSON.stringify(response.value, null, 2), }, ], }; } - src/index.ts:81-88 (registration)Registration of the 'get_bookings_businesses' tool in the ListToolsRequestSchema handler. Defines the tool name, description, and input schema (no required parameters).
{ name: 'get_bookings_businesses', description: 'Get list of Bookings businesses', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:84-87 (schema)Input schema definition for the 'get_bookings_businesses' tool, specifying an empty object (no input parameters required).
inputSchema: { type: 'object', properties: {}, }, - src/index.ts:145-146 (registration)Dispatch logic in the CallToolRequestSchema handler that routes calls to the 'get_bookings_businesses' tool to its handler function.
case 'get_bookings_businesses': return await this.getBookingsBusinesses();