get_business_staff
Retrieve staff members for a Microsoft Bookings business using its business ID to manage team assignments and scheduling.
Instructions
Get staff members for a Bookings business
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| businessId | Yes | ID of the Bookings business |
Implementation Reference
- src/index.ts:200-213 (handler)Executes the get_business_staff tool logic by querying the Microsoft Graph API for staff members of the specified booking business and returning the result as JSON text.private async getBusinessStaff(businessId: string) { const response = await this.graphClient .api(`/solutions/bookingBusinesses/${businessId}/staffMembers`) .get(); return { content: [ { type: 'text', text: JSON.stringify(response.value, null, 2), }, ], }; }
- src/index.ts:89-102 (registration)Registers the get_business_staff tool in the MCP server's tool list, providing name, description, and input schema.{ name: 'get_business_staff', description: 'Get staff members for a Bookings business', inputSchema: { type: 'object', properties: { businessId: { type: 'string', description: 'ID of the Bookings business', }, }, required: ['businessId'], }, },
- src/index.ts:92-101 (schema)Input schema for the get_business_staff tool, requiring a businessId string.inputSchema: { type: 'object', properties: { businessId: { type: 'string', description: 'ID of the Bookings business', }, }, required: ['businessId'], },
- src/index.ts:147-150 (handler)Dispatches the CallToolRequest for get_business_staff to the handler function, extracting businessId from arguments.case 'get_business_staff': { const args = request.params.arguments as { businessId: string }; return await this.getBusinessStaff(args.businessId); }