Skip to main content
Glama
DynamicEndpoints

Microsoft 365 Bookings MCP Server

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
NameRequiredDescriptionDefault
businessIdYesID of the Bookings business

Implementation Reference

  • 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'],
      },
    },
  • 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'],
    },
  • 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);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DynamicEndpoints/m365-bookings-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server