Skip to main content
Glama

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

Implementation Reference

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

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