Generate a compliance document
generate_compliance_documentGenerates an SMSF annual compliance document from ledger figures, filling its required fields and listing any still missing. Finalize to freeze it, or mark it not applicable.
Instructions
Generate one of the year's generated compliance documents in Alpha — what the Generate button on the Compliance step does (e.g. operating_statement, statement_of_financial_position, trustee_minutes, trustees_declaration; the part after "compliance_document:" in a check key). Figures come from the ledger; answers fill the document's own fields (the result lists them, with any still missing). Running it again updates the draft. finalize: true freezes it and its check reads Done (refused while required fields are blank); not_applicable: true marks it N/A instead. Uploaded types (bank statements, signed files) are refused — use upload_document + mark_compliance_document_prepared. Refused for a locked year or a document already finalised (reopen it on the web).
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": {
"fund_id": "<fund_id>",
"financial_year": "<financial_year>",
"document_type": "<document_type>"
},
"name": "generate_compliance_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Internal notes on the document | |
| title | No | ||
| answers | No | Field key → value; repeatable fields take an array of row objects | |
| fund_id | Yes | Fund ID (discover via whoami or list_funds) | |
| finalize | No | Freeze the document so it counts as done | |
| reasoning | No | Why you are making this change — recorded on the audit log entry for this write | |
| external_ref | No | Your stable ID for this write (e.g. a statement line or document reference). Repeating a call with the same external_ref replays the first result instead of writing twice. | |
| document_type | Yes | Compliance document type, e.g. "operating_statement" | |
| financial_year | Yes | Financial year — the label "2023-24" or its numeric id (from list_financial_years) | |
| not_applicable | No | Mark it not applicable for this year instead |