freeagent_create_bill
Create a supplier bill in FreeAgent with line items, tax rates, due dates, and an optional receipt attachment to record costs and track payments.
Instructions
Create a new bill in FreeAgent. bill_items should be a JSON string array of objects with category (URL), description, total_value, and sales_tax_rate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contact": "<contact>",
"reference": "<reference>",
"dated_on": "<dated_on>",
"due_on": "<due_on>",
"bill_items": "<bill_items>"
},
"name": "freeagent_create_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due_on | Yes | Bill due date (YYYY-MM-DD) | |
| contact | Yes | Contact URL for the bill | |
| comments | No | Comments on the bill | |
| currency | No | Currency code, e.g. GBP | |
| dated_on | Yes | Bill date (YYYY-MM-DD) | |
| reference | Yes | Bill reference | |
| bill_items | Yes | JSON array of bill items, e.g. [{"category":"https://...","description":"Item","total_value":"100.00","sales_tax_rate":"20.0"}] | |
| attachment_path | No | Path to a local receipt or invoice file to attach (PDF, PNG, JPEG or GIF, max 5MB). Sent in the same request, so the record is never created without its receipt. |