get_vehicle
Retrieve detailed vehicle information by ID to access service history, specifications, and maintenance records for shop management workflows.
Instructions
Get detailed information about a single vehicle by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The vehicle ID |
Implementation Reference
- src/tools/vehicles.ts:86-90 (handler)Handler implementation for get_vehicle.
async get_vehicle(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<Vehicle>('GET', `/vehicle/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/vehicles.ts:21-25 (schema)Schema definition for get_vehicle tool.
{ name: 'get_vehicle', description: 'Get detailed information about a single vehicle by its ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The vehicle ID' } }, required: ['id'] }, },