Skip to main content
Glama
Kartha-AI

MCP Server for Google Cloud Healthcare API

by Kartha-AI

get_appointments

Retrieve patient appointments by specifying a patient ID and date range to streamline scheduling and healthcare workflows using Google Cloud Healthcare API.

Instructions

Get patient's Appointments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateFromNoYYYY-MM-DD
dateToNoYYYY-MM-DD
patientIdYes

Implementation Reference

  • The core handler function that executes the get_appointments tool by querying the FHIR Appointment resource with patient ID and optional date filters.
    async getPatientAppointments(args: any) { const params = new URLSearchParams(); params.append('patient', `${args.patientId}`); if (args.dateFrom) params.append('date', `ge${args.dateFrom}`); if (args.dateTo) params.append('date', `le${args.dateTo}`); const response = await this.client.get(`/Appointment?${params}`); return this.formatResponse(`fhir://Patient/${args.patientId}/appointments`, response.data); }
  • The switch case in the main tool handler that routes get_appointments calls to the FhirClient implementation.
    case "get_appointments": return await this.fhirClient.getPatientAppointments(request.params.arguments);
  • The tool definition including name, description, and input schema used for registration and validation.
    { name: "get_appointments", description: "Get patient's Appointments", inputSchema: { type: "object", properties: { patientId: { type: "string" }, dateFrom: { type: "string", description: "YYYY-MM-DD" }, dateTo: { type: "string", description: "YYYY-MM-DD" } }, required: ["patientId"] } },
  • The list tools handler that returns the TOOL_DEFINITIONS array containing the get_appointments tool definition.
    private handleList = async () => ({ tools: TOOL_DEFINITIONS

Other Tools

Related Tools

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/Kartha-AI/google-cloud-healthcare-api-mcp'

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