get_customer
Retrieve detailed customer information by ID to access shop management data for work orders, vehicles, and inventory within the Shopmonkey system.
Instructions
Get detailed information about a single customer by their ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The customer ID |
Implementation Reference
- src/tools/customers.ts:92-96 (handler)The handler function for get_customer, which fetches customer details from Shopmonkey using the provided ID.
async get_customer(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<Customer>('GET', `/customer/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/customers.ts:21-31 (schema)The tool definition for get_customer, including its input schema.
{ name: 'get_customer', description: 'Get detailed information about a single customer by their ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The customer ID' }, }, required: ['id'], }, },