Time Tracking & Invoicing

Time Tracking & Invoicing

Track billable time with duration entries linked to cases, clients, and invoices.

Creating Duration Entries

{
  "name": "create_duration",
  "arguments": {
    "case_id": "#1:0",
    "start_time": "2025-12-26T09:00:00Z",
    "end_time": "2025-12-26T11:30:00Z",
    "description": "API development",
    "billable": true
  }
}

Invoicing Workflow

  1. Create duration entries for work performed
  2. Link durations to invoices using link_items
  3. Generate LaTeX invoice with generate_invoice_tex
  4. Query durations for billing period with get_durations_for_client

Client Rates

Clients have a default hourly rate that can be used for invoice calculations:

{
  "name": "create_client",
  "arguments": {
    "name": "Acme Corp",
    "default_rate": 150.00,
    "currency": "USD"
  }
}