get_appointment
Retrieve detailed appointment information by ID to access customer, vehicle, and service details for shop management workflows.
Instructions
Get detailed information about a single appointment by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The appointment ID |
Implementation Reference
- src/tools/appointments.ts:90-94 (handler)The handler function that executes the logic for 'get_appointment', calling the Shopmonkey API.
async get_appointment(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<Appointment>('GET', `/appointment/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/appointments.ts:23-27 (schema)The MCP tool definition and input schema for 'get_appointment'.
{ name: 'get_appointment', description: 'Get detailed information about a single appointment by its ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The appointment ID' } }, required: ['id'] }, },