Skip to main content
Glama
cmendezs

mcp-einvoicing-de

build_mls_message

Generate a base64-encoded document-level MLS response for German e-invoicing, with sender/receiver endpoints and response codes to acknowledge, accept, or reject an invoice.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mls_idYesThe ``cbc:ID`` of this MLS document.
issue_dateYesISO date string, e.g. "2026-08-23".
issue_timeNoOptional ISO time string, e.g. "12:00:00Z".
descriptionNoOptional human-readable response text.
sender_valueYesSending Access Point's endpoint value.
response_codeYes"AB" (Acknowledged), "AP" (Accepted), or "RE" (Rejected).
receiver_valueYesReceiving endpoint value.
sender_scheme_idYesICD scheme of the sending Access Point's endpoint.
receiver_scheme_idYesICD scheme of the receiving endpoint (normally the original message's SBDH ``MLS_TO`` scheme).
status_reason_codeNoOptional: "SV", "BV", "BW", or "FD" (required by the Schematron when response_code is "RE").
document_reference_idYesThe SBDH ``InstanceIdentifier`` of the source message this MLS reports on.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does state that the result is base64-encoded, which is an important characteristic. However, it does not mention validation behavior, error handling, or whether the operation has any side effects, leaving some important traits unspecified for a tool with zero annotation hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no filler. The core action and output format are front-loaded, and the alternative is given in the second sentence. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description explains the tool's purpose, output encoding, and the key distinction from per-line building, while the output schema covers return details and the input schema covers parameters. It does not elaborate on the 'document-level' concept further, but for a builder with complete schemas, the provided context is largely sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in the input schema. The description does not add additional parameter-level meaning, which is acceptable and matches the baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Build') with a clearly defined resource ('document-level MLS response') and specifies the return format ('base64-encoded'). It also distinguishes this tool from per-line response building, removing ambiguity about its scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second sentence explicitly tells the agent when *not* to use this tool: for per-line responses, it should build the document directly with `mcp_einvoicing_core.peppol.mls.build_mls`. This is clear, actionable, and directly addresses the key alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmendezs/mcp-einvoicing-de'

If you have feedback or need assistance with the MCP directory API, please join our Discord server