Send an approved draft to SEF
sef_send_invoiceUploads a previously approved draft invoice to SEF using the draft ID and approval code, after the user explicitly approves that exact draft.
Instructions
Uploads a previously drafted invoice to SEF. Requires the draftId and the approvalCode the user approved. Only call after the user explicitly approved this exact draft. In prod it also requires SEF_MCP_ALLOW_PROD_WRITE=true. Sends without SEF's own validation by default, like the SEF portal (SEF support: the option is not in operation yet). Pass executeValidation=true only if the user explicitly asks for it. A draft that was already sent successfully is not uploaded again: the result has alreadySent=true and the earlier SEF response.
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": {
"draftId": "<draftId>",
"approvalCode": "<approvalCode>"
},
"name": "sef_send_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| approvalCode | Yes | ||
| executeValidation | No | Default false (as the SEF portal). true only on the user's explicit request; SEF says the option is not in operation yet. |