get_user
Retrieve detailed user or technician information by ID to manage shop personnel data within the Shopmonkey system.
Instructions
Get detailed information about a single shop user or technician by their ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The user/technician ID |
Implementation Reference
- src/tools/labor.ts:99-103 (handler)The implementation of the get_user handler function.
async get_user(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<User>('GET', `/user/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/labor.ts:48-51 (schema)The schema definition for the get_user tool.
name: 'get_user', description: 'Get detailed information about a single shop user or technician by their ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The user/technician ID' } }, required: ['id'] }, },