get_order
Retrieve detailed work order information by ID to access customer, vehicle, and service data for shop management operations.
Instructions
Get detailed information about a single work order by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The work order ID |
Implementation Reference
- src/tools/orders.ts:98-102 (handler)The handler implementation for get_order, which takes an ID and performs a GET request to retrieve order details.
async get_order(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<Order>('GET', `/order/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/orders.ts:22-32 (schema)The schema definition for get_order, defining the tool's input parameters and description.
{ name: 'get_order', description: 'Get detailed information about a single work order by its ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The work order ID' }, }, required: ['id'], }, },