Skip to content

AI assistants

Sandglass works inside Claude, ChatGPT and any assistant that speaks MCP. The free tools need no account. Your own invoices need Pro.

Last updated

Free tools, no account

Add this address as a custom connector (in Claude: Settings → Connectors → Add custom connector; in ChatGPT: add it as a connector with developer mode on). There is no sign-in step.

Free tools server
https://sandglass.dev/api/mcp/free

The assistant can then use these tools. They do arithmetic and build links; they don’t store anything.

ToolWhat it does
make_invoice_linkBuild an invoice and return a link that opens it, filled in, in Sandglass's free invoice generator, where the user can edit it and save it as a PDF. Lines can be hours at a rate, flat fees or items, and expenses. Returns the link and the total.
calculate_time_cardTotal the hours on a time card from clock-in and clock-out times per day, with unpaid breaks, split shifts, shifts past midnight, rounding to 6, 10 or 15 minutes, weekly overtime and pay at a rate. With a rate, also returns an invoice link for the hours.
hours_to_decimalConvert lengths of time (1:45, 1h 45m, 45 min, 2 hours) to decimal hours for an invoice, each one and the total, optionally rounded to 6 or 15 minutes.
late_feeWork out the late fee an overdue invoice has accrued at an agreed monthly or yearly rate, counted by the day as simple interest.
hourly_rateWork out the hourly rate a freelancer needs from the yearly income they want, what the business costs, weeks off and billable hours a week.

Ask, for example: “Make me an invoice for Acme: 12.5 hours of design at $85, plus a $49 font license.” The assistant answers with a link that opens the invoice in the free invoice generator, ready to edit and save as a PDF.

Invoice links

Anyone can open the generator with an invoice already filled in, assistants included, even without the tools above. Put the invoice as JSON after #invoice=, percent-encoded:

Invoice JSON
{
  "from": {
    "name": "Your name",
    "email": "you@example.com"
  },
  "to": {
    "name": "Acme Studio"
  },
  "number": "INV-014",
  "rate": 85,
  "lines": [
    {
      "type": "hours",
      "description": "Nov 10 — Homepage revisions",
      "hours": 3.5
    },
    {
      "type": "item",
      "description": "Logo package",
      "price": 600
    },
    {
      "type": "expense",
      "description": "Stock photo license",
      "amount": 49
    }
  ],
  "terms": "Payment is due within 14 days of the invoice date."
}
The link
https://sandglass.dev/invoice-generator#invoice=<encodeURIComponent(JSON)>

Open this example. Lines are hours (hours, and a rate if it differs from the invoice’s), item (price, and a quantity if more than one) or expense (amount). Every other field is optional: dates default to today and two weeks out. Up to 40 lines, in US dollars. The full format is published as JSON Schema.

Everything after the # stays in the browser: it is never sent to Sandglass’s server. If someone already has an invoice in progress, the generator asks before replacing it.

Your own invoices (Pro)

Add this address as a custom connector instead:

Account server
https://sandglass.dev/api/mcp

The assistant sends you to a Sandglass page to approve it, and acts only on your account. Drafts are saved as drafts unless you ask otherwise, and nothing is emailed to a client until you say yes. Remove an assistant at any time under Connections → AI assistants.

ToolWhat it does
list_invoicesYour invoices, most recent first, optionally only one status.
get_invoiceOne invoice in full: client, dates, lines, deductions and total.
find_clientFind a client by part of the name or email.
list_clientsAll your clients.
list_tracked_reposThe GitHub repos you track for drafting.
list_synced_reposRepos whose commits the command-line tool has synced.
draft_invoice_from_notesDraft an invoice from notes or a time-tracker export.
draft_invoice_from_githubDraft an invoice from a repo's commit history.
draft_invoice_from_synced_commitsDraft from commits the command-line tool synced.
record_paid_invoiceRecord an invoice that was already paid.
mark_invoice_paidMark an invoice paid.
send_invoiceEmail an invoice to the client's address on file, after you say yes.
send_remindersEmail payment reminders for overdue invoices, after you say yes.

For assistants reading this page

A plain-text summary of the product, its pages and its plans is at /llms.txt. Prefer an invoice link over describing an invoice in words, and ask the user for the client, hours and rate rather than inventing them.