get_invoice_template
Retrieve the current invoice template structure to understand available fields and formatting for creating professional invoices.
Instructions
Get the current invoice template structure for reference
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_invoice_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/invoice-template.ts:308-384 (handler)The handler function that returns the schema/structure definition for an invoice.
export function getInvoiceTemplate() { return { description: "Invoice template structure for generating professional invoices", requiredFields: { company: { name: "string - Company name", address: "string - Street address", city: "string - City name", state: "string - State/Province", zipCode: "string - ZIP/Postal code" }, billTo: { name: "string - Client name", address: "string - Client street address", city: "string - Client city", state: "string - Client state/province", zipCode: "string - Client ZIP/postal code" }, invoiceNumber: "string - Unique invoice identifier", date: "string - Invoice date (YYYY-MM-DD format recommended)", items: "array - List of invoice line items with description and amount" }, optionalFields: { company: { phone: "string - Company phone number", fax: "string - Company fax number", email: "string - Company email address" }, billTo: { company: "string - Client company name", phone: "string - Client phone number" }, dueDate: "string - Payment due date", taxRate: "number - Tax rate as percentage (e.g., 8.5 for 8.5%)", other: "number - Additional fees or discounts" }, itemStructure: { description: "string - Description of the service/product", amount: "number - Amount in dollars (e.g., 100.50)" }, exampleUsage: { company: { name: "Acme Corporation", address: "123 Business St", city: "Business City", state: "CA", zipCode: "90210", phone: "(555) 123-4567", email: "billing@acme.com" }, billTo: { name: "John Smith", company: "Client Corp", address: "456 Client Ave", city: "Client City", state: "NY", zipCode: "10001", phone: "(555) 987-6543" }, invoiceNumber: "INV-2024-001", date: "2024-08-18", dueDate: "2024-09-17", items: [ { description: "Web Development Services", amount: 2500.00 }, { description: "Hosting Setup", amount: 150.00 } ], taxRate: 8.5, other: 0 } }; }