get_canned_service
Retrieve detailed information about a specific service template using its ID to access predefined service configurations for automotive repair shops.
Instructions
Get detailed information about a single canned service template by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The canned service ID |
Implementation Reference
- src/tools/services.ts:70-74 (handler)The handler function implementation for the 'get_canned_service' tool, which fetches details of a canned service by its ID from the Shopmonkey API.
async get_canned_service(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<CannedService>('GET', `/canned_service/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/services.ts:32-36 (schema)The definition and input schema for the 'get_canned_service' tool, specifying that it requires an 'id' parameter.
{ name: 'get_canned_service', description: 'Get detailed information about a single canned service template by its ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The canned service ID' } }, required: ['id'] }, },