pixelletter-mcp

v1.0.3
io.github.bitterdev/pixelletter-mcp Checked 1 day ago Published 4 months ago

Send physical letters and faxes through the PixelLetter interface, test mode included.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

send_letter Send letter

Sends a letter through PixelLetter, either as ready made documents (absolute file paths, PDF preferred) or as plain text plus a recipient address that PixelLetter typesets. Optionally faxes the same document as well. Returns the result code and the transaction id.

ParameterTypeDescription
testMode *booleanTest mode. true runs the order exactly like a real one but PixelLetter never prints, never sends and never charges. false really sends the letter. Always required, so nothing goes out by accident.
additionalServiceCodesarrayRaw addoption codes for services PixelLetter documents elsewhere or agrees per account. Only use numbers PixelLetter gave you.
addressarrayRecipient address, one line per array entry, country included. PixelLetter typesets it. Required when no file is sent.
alsoSendFaxbooleanSend the same document as a fax too. Needs faxNumber. Additional services stay letter only.
cashOnDeliveryobjectBank details for cash on delivery. Setting this block adds additional service 31.
colorPrintbooleanColour print instead of black and white (addoption 33). Letters only, and not available through every dispatch centre, see error 038.
controlstringRaw value for the control field of the interface. The only value in public use is NODUPLEX, which the duplex parameter sets for you, so only reach for this when PixelLetter gave you another token.
destinationstringDestination country as a two letter ISO code, for example DE, AT, CH. Mandatory for letters, a wrong code leads to wrong postage.
duplexbooleanPrint on both sides (true, the default of PixelLetter) or on one side only (false, sent as control NODUPLEX). Letters only.
faxNumberstringFax number in international format, for example "+49 89 72448483". Only needed with alsoSendFax.
filesarrayAbsolute paths of the documents to send, for example the PDF written by pdf-letter-mcp. Several files are converted and merged into one letter, in this order. Allowed: .pdf, .doc, .xls, .ppt, .rtf, .w…
goGreenbooleanGoGreen, CO2 neutral postage (addoption 44). Letters only.
inlineFilesarrayDocuments passed as base64 instead of a path.
locationstringDispatch centre: 1 = Munich (DE), 2 = Hausleiten near Vienna (AT), 3 = Hamburg (DE). Default of the API is 1.
personalDeliverybooleanEigenhändig, personal delivery (code 29). Only together with registered.
registeredbooleanEinschreiben, registered mail (code 27). Germany only.
registeredDropInbooleanEinschreiben Einwurf, drop-in registered mail (code 30). Cannot be combined with the other registered variants.
returnAddressstringRaw value for the returnaddress field of the interface. Undocumented in the public handbooks.
returnReceiptbooleanRückschein, return receipt (code 28). Only together with registered.
subjectstringSubject of the letter.
textstringLetter text as plain text, no HTML. Long texts run onto more pages automatically, your sender address is added by PixelLetter. "%Unterschrift%" on its own line inserts the signature stored in your Pix…
transactionstringYour own transaction id or short note. PixelLetter returns it with the response.

send_fax Send fax

Sends documents or plain text as a fax through PixelLetter, without posting a letter. Additional services such as registered mail do not apply to faxes.

ParameterTypeDescription
faxNumber *stringFax number in international format, for example "+49 89 72448483".
testMode *booleanTest mode. true runs the order exactly like a real one but PixelLetter never prints, never sends and never charges. false really sends the letter. Always required, so nothing goes out by accident.
addressarrayRecipient address, one line per array entry, country included. PixelLetter typesets it. Required when no file is sent.
controlstringRaw value for the control field of the interface. The only value in public use is NODUPLEX, which the duplex parameter sets for you, so only reach for this when PixelLetter gave you another token.
filesarrayAbsolute paths of the documents to send, for example the PDF written by pdf-letter-mcp. Several files are converted and merged into one letter, in this order. Allowed: .pdf, .doc, .xls, .ppt, .rtf, .w…
inlineFilesarrayDocuments passed as base64 instead of a path.
locationstringDispatch centre: 1 = Munich (DE), 2 = Hausleiten near Vienna (AT), 3 = Hamburg (DE). Default of the API is 1.
subjectstringSubject of the letter.
textstringLetter text as plain text, no HTML. Long texts run onto more pages automatically, your sender address is added by PixelLetter. "%Unterschrift%" on its own line inserts the signature stored in your Pix…
transactionstringYour own transaction id or short note. PixelLetter returns it with the response.

get_account_info Get account info and balance

Reads the stored customer data and the current credit of the PixelLetter account. Use it before sending to make sure the balance covers the order, error 021 means the credit is too low.

cancel_order Cancel order

Cancels a submitted order by its PixelLetter order id, which is on the order confirmation e-mail. Only works while the order has not been printed yet, otherwise PixelLetter answers with error 055.

ParameterTypeDescription
orderId *stringPixelLetter order id from the confirmation e-mail or the customer area.

sign_invoice Sign invoice electronically

Sends documents to the PixelLetter invoice signing service (action 4) and optionally mails the signed PDF to the invoice recipient. The account needs electronic signatures enabled once in the customer area, otherwise PixelLetter answers with error 046.

ParameterTypeDescription
testMode *booleanTest mode. true signs with an advanced signature only, which is not legally sufficient, and costs nothing. false creates the qualified signature.
filesarrayAbsolute paths of the documents to send, for example the PDF written by pdf-letter-mcp. Several files are converted and merged into one letter, in this order. Allowed: .pdf, .doc, .xls, .ppt, .rtf, .w…
inlineFilesarrayDocuments passed as base64 instead of a path.
notificationobjectLeave this out and nothing is mailed to the invoice recipient, you only get the signed file yourself.
transactionstringYour own transaction id or short note. PixelLetter returns it with the response.

get_interface_reference Get interface reference

Returns what the PixelLetter interface documents: action values, dispatch centres, additional service codes, allowed upload types, limits and the published error codes. Offline lookup, no API call.

ParameterTypeDescription
errorCodestringLook up a single error code, for example "021".