Invoice by Ouroboros Apps

v1.0.3
io.github.LAHutchins91/invoice Checked 12 hours ago Published 1 month ago

Freelance invoice line items, rates, due dates, and late terms for AI assistants

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_invoices list invoices

List the signed-in freelancer's invoices. Use a returned id with read_invoice. Do not guess an invoice.

ParameterTypeDescription
offsetinteger

begin_invoice begin invoice

Start a draft invoice. Draft figures are not an approved commitment until seal_invoice. Currency is a three-letter code. Amounts later are minor units of that currency and are the freelancer's figures.

ParameterTypeDescription
clientName *string
currency *string
number *string
title *

read_invoice read invoice

Read the invoice before answering. Quote only this record. Draft status is not an approved commitment. Proposed changes do not authorize a new line, a different rate, a discount, or a new due date.

ParameterTypeDescription
invoiceId *string

place_line place line

Add one line: description, quantity, rate in whole minor units, and unit hour, each, or day. After the invoice is sealed, a new line is refused until accept_invoice_change applies an add_line suggestion.

ParameterTypeDescription
description *string
invoiceId *string
quantity *integer
rateMinor *integer
unit *string

describe_line describe line

Correct a line description while the invoice is still a draft. After approval, a different description is refused. Use suggest_invoice_change with add_line for a different line.

ParameterTypeDescription
description *string
invoiceId *string
lineId *

quote_line_rate quote line rate

Set the rate already chosen for one line, as a whole number of minor units in the invoice currency. After the invoice is sealed, a different rate is refused until accept_invoice_change applies a change_rate suggestion.

ParameterTypeDescription
invoiceId *string
lineId *
rateMinor *integer

set_line_quantity set line quantity

Set the quantity on one line. After the invoice is sealed, a different quantity is refused until accept_invoice_change applies an adjust_quantity suggestion.

ParameterTypeDescription
invoiceId *string
lineId *
quantity *integer

set_invoice_due set invoice due

Set the due date as a calendar day in YYYY-MM-DD form. After the invoice is sealed, a different date is refused until accept_invoice_change applies a move_due_date suggestion.

ParameterTypeDescription
dueOn *string
invoiceId *string

write_late_terms write late terms

Record late terms: grace days, and a basis of none, flat_fee, or percent_per_period. flat_fee uses feeMinor and a percent of 0. percent_per_period uses percent and a fee of 0. After approval, a different basis, grace, fee, or percent is refused until an accepted revise_late_terms suggestion.

ParameterTypeDescription
basis *string
feeMinor *integer
graceDays *integer
invoiceId *string
note *string
percent *integer

offer_discount offer discount

Record a discount the freelancer is putting on the invoice. kind none uses value 0. kind percent takes a whole number from 1 to 100. kind fixed takes a whole number of minor units. After the invoice is sealed, a different discount is refused until accept_invoice_change applies an apply_discount suggestion. Do not invent a discount.

ParameterTypeDescription
invoiceId *string
kind *string
note *string
value *integer

seal_invoice seal invoice

Mark the current draft as the approved invoice. Pass confirmed true only after the freelancer explicitly approves the lines, quantities, rates, due date, late terms, and any discount already on the draft.

ParameterTypeDescription
confirmed *boolean
invoiceId *string

suggest_invoice_change suggest invoice change

Record a suggested change. This does not change the invoice. kind add_line requires description, quantity, rateMinor, and unit. kind change_rate requires lineId and rateMinor. kind apply_discount requires discountKind, discountValue, and discountNote. kind move_due_date requires dueOn. kind adjust_quantity requires lineId and quantity. kind revise_late_terms requires graceDays, lateBasis, feeMinor, latePercent, and lateNote.

ParameterTypeDescription
invoiceId *string
kind *string
summary *string
descriptionstring
discountKindstring
discountNote
discountValueinteger
dueOnstring
feeMinorinteger
graceDaysinteger
lateBasisstring
lateNote
latePercentinteger
lineId
quantityinteger
rateMinorinteger
unitstring

accept_invoice_change accept invoice change

Apply one suggested invoice change after the freelancer explicitly approves that change. Pass confirmed true only then. This is the path that may add a line, change a rate, apply a discount, or move the due date. Calling it is not a substitute for the freelancer's approval.

ParameterTypeDescription
changeId *
confirmed *boolean
invoiceId *string