build_mls_message
Build a document-level MLS response with acknowledgment, acceptance, or rejection codes, and return it base64-encoded.
Instructions
Build a document-level MLS response and return it base64-encoded.
For per-line responses, build the document directly with
mcp_einvoicing_core.peppol.mls.build_mls.
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": {
"mls_id": "<mls_id>",
"issue_date": "<issue_date>",
"sender_scheme_id": "<sender_scheme_id>",
"sender_value": "<sender_value>",
"receiver_scheme_id": "<receiver_scheme_id>",
"receiver_value": "<receiver_value>",
"document_reference_id": "<document_reference_id>",
"response_code": "<response_code>"
},
"name": "build_mls_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mls_id | Yes | The ``cbc:ID`` of this MLS document. | |
| issue_date | Yes | ISO date string, e.g. "2026-08-23". | |
| issue_time | No | Optional ISO time string, e.g. "12:00:00Z". | |
| description | No | Optional human-readable response text. | |
| sender_value | Yes | Sending Access Point's endpoint value. | |
| response_code | Yes | "AB" (Acknowledged), "AP" (Accepted), or "RE" (Rejected). | |
| receiver_value | Yes | Receiving endpoint value. | |
| sender_scheme_id | Yes | ICD scheme of the sending Access Point's endpoint. | |
| receiver_scheme_id | Yes | ICD scheme of the receiving endpoint (normally the original message's SBDH ``MLS_TO`` scheme). | |
| status_reason_code | No | Optional: "SV", "BV", "BW", or "FD" (required by the Schematron when response_code is "RE"). | |
| document_reference_id | Yes | The SBDH ``InstanceIdentifier`` of the source message this MLS reports on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||