import { z } from 'zod'; import type { ChargebeeClient } from '../client/chargebee-client.js'; export default [ { name: 'chargebee_list_credit_notes', description: 'Lists credit_notes from Chargebee with pagination. Up to 100 per page.', inputSchema: { type: 'object' as const, properties: { limit: { type: 'number', default: 100 }, offset: { type: 'string' }, }, }, handler: async (input: any, client: ChargebeeClient) => { const result = await client.get('/credit_notes', input); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }] }; }, }, { name: 'chargebee_get_credit_notes', description: 'Retrieves a credit_notes by ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string' } }, required: ['id'], }, handler: async (input: any, client: ChargebeeClient) => { const result = await client.get(`/credit_notes/${input.id}`); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }] }; }, }, ];