Implementation
gradeNot graded
gradeNot graded
calculate_invoice_totalsAction
Calculates HT subtotal, total VAT amount, and TTC total for invoice items.
View tool JSON
{
"name": "calculate_invoice_totals",
"kind": "act",
"impl": "imperative",
"description": "Calculates HT subtotal, total VAT amount, and TTC total for invoice items.",
"inputSchema": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"enum": [
"EUR",
"USD",
"GBP",
"CHF"
],
"default": "EUR"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"quantity": {
"type": "number"
},
"unitPrice": {
"type": "number"
},
"vatRate": {
"type": "number"
}
},
"required": [
"quantity",
"unitPrice",
"vatRate"
]
}
}
},
"required": [
"items"
]
}
}validate_invoice_dataAction
Validates invoice fields against Factur-X / EN 16931 requirements.
View tool JSON
{
"name": "validate_invoice_data",
"kind": "act",
"impl": "imperative",
"description": "Validates invoice fields against Factur-X / EN 16931 requirements.",
"inputSchema": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"date": {
"type": "string"
},
"seller": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"siret": {
"type": "string"
},
"vatNumber": {
"type": "string"
},
"iban": {
"type": "string"
},
"bic": {
"type": "string"
},
"bankName": {
"type": "string"
}
},
"required": [
"name"
]
},
"buyer": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"siret": {
"type": "string"
},
"vatNumber": {
"type": "string"
},
"taxId": {
"type": "string"
}
},
"required": [
"name"
]
},
"buyerType": {
"type": "string",
"enum": [
"business",
"individual"
]
},
"currency": {
"type": "string",
"enum": [
"EUR",
"USD",
"GBP",
"CHF"
]
},
"purchaseOrder": {
"type": "string",
"description": "Order / Commitment Ref (EJ) for French public sector / Chorus Pro (BT-13)"
},
"serviceCode": {
"type": "string",
"description": "Service Code for French public sector entities (DefinedTradeContact/DepartmentName)"
},
"items": {
"type": "array"
}
},
"required": [
"number",
"date",
"seller",
"buyer",
"items"
]
}
}generate_facturx_xmlAction
Generates raw Factur-X / EN 16931 XML string for an invoice.
View tool JSON
{
"name": "generate_facturx_xml",
"kind": "act",
"impl": "imperative",
"description": "Generates raw Factur-X / EN 16931 XML string for an invoice.",
"inputSchema": {
"type": "object",
"properties": {
"invoice": {
"type": "object"
}
},
"required": [
"invoice"
]
}
}generate_facturx_invoiceAction
Generates and downloads the complete Factur-X hybrid PDF file.
View tool JSON
{
"name": "generate_facturx_invoice",
"kind": "act",
"impl": "imperative",
"description": "Generates and downloads the complete Factur-X hybrid PDF file.",
"inputSchema": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"date": {
"type": "string"
},
"dueDate": {
"type": "string"
},
"currency": {
"type": "string",
"enum": [
"EUR",
"USD",
"GBP",
"CHF"
]
},
"buyerType": {
"type": "string",
"enum": [
"business",
"individual"
]
},
"purchaseOrder": {
"type": "string",
"description": "Order / Commitment Ref (EJ) for French public sector / Chorus Pro (BT-13)"
},
"serviceCode": {
"type": "string",
"description": "Service Code for French public sector entities (DefinedTradeContact/DepartmentName)"
},
"seller": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"siret": {
"type": "string"
},
"vatNumber": {
"type": "string"
},
"iban": {
"type": "string"
},
"bic": {
"type": "string"
},
"bankName": {
"type": "string"
}
},
"required": [
"name"
]
},
"buyer": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"siret": {
"type": "string"
},
"vatNumber": {
"type": "string"
},
"taxId": {
"type": "string"
}
},
"required": [
"name"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"quantity": {
"type": "number"
},
"unitPrice": {
"type": "number"
},
"vatRate": {
"type": "number"
},
"unitCode": {
"type": "string"
}
},
"required": [
"description",
"quantity",
"unitPrice",
"vatRate"
]
}
},
"lang": {
"type": "string",
"enum": [
"fr",
"en"
]
}
},
"required": [
"number",
"date",
"seller",
"buyer",
"items"
]
}
}