get_business_services
Retrieve the list of services available from a Microsoft Bookings business using its business ID to manage appointments and offerings.
Instructions
Get services offered by a Bookings business
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| businessId | Yes | ID of the Bookings business |
Implementation Reference
- src/index.ts:215-227 (handler)The handler function that executes the get_business_services tool. It queries the Microsoft Graph API for services of the specified booking business and returns the JSON response as text content.private async getBusinessServices(businessId: string) { const response = await this.graphClient .api(`/solutions/bookingBusinesses/${businessId}/services`) .get(); return { content: [ { type: 'text', text: JSON.stringify(response.value, null, 2), }, ], };
- src/index.ts:106-115 (schema)Input schema definition for the get_business_services tool, specifying businessId as a required string.inputSchema: { type: 'object', properties: { businessId: { type: 'string', description: 'ID of the Bookings business', }, }, required: ['businessId'], },
- src/index.ts:104-116 (registration)Tool registration in the tools array, including name, description, and input schema.name: 'get_business_services', description: 'Get services offered by a Bookings business', inputSchema: { type: 'object', properties: { businessId: { type: 'string', description: 'ID of the Bookings business', }, }, required: ['businessId'], }, },
- src/index.ts:151-154 (registration)Dispatch/registration in the switch statement for handling CallToolRequest for get_business_services.case 'get_business_services': { const args = request.params.arguments as { businessId: string }; return await this.getBusinessServices(args.businessId); }