Document Tools
Batch generate printable labels with QR code and barcode in a single PDF
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-qr-barcode-labels' \
-H 'Content-Type: application/json' \
-d '{"labelsJson":"[\n {\n \"title\": \"SKU-AX-001\",\n \"subtitle\": \"Warehouse A / Rack 03\",\n \"qrText\": \"https://example.com/inventory/SKU-AX-001\",\n \"barcodeText\": \"AX00193018\"\n },\n {\n \"title\": \"SKU-BX-204\",\n \"subtitle\": \"Warehouse B / Rack 12\",\n \"qrText\": \"https://example.com/inventory/SKU-BX-204\",\n \"barcodeText\": \"BX20488271\"\n }\n]","pageSize":"A4","landscape":false,"columns":2,"rows":6,"labelWidthMm":90,"labelHeightMm":42,"marginMm":10,"gapMm":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/pdf-qr-barcode-labels| Name | Type | Required | Description |
|---|---|---|---|
| labelsJson | textarea | Yes | — |
| pageSize | select | No | — |
| landscape | checkbox | No | — |
| columns | number | No | — |
| rows | number | No | — |
| labelWidthMm | number | No | — |
| labelHeightMm | number | No | — |
| marginMm | number | No | — |
| gapMm | number | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-pdf-qr-barcode-labels": {
"name": "pdf-qr-barcode-labels",
"description": "Batch generate printable labels with QR code and barcode in a single PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-qr-barcode-labels",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-qr-barcode-labels",
"arguments": {
"labelsJson": "[\n {\n \"title\": \"SKU-AX-001\",\n \"subtitle\": \"Warehouse A / Rack 03\",\n \"qrText\": \"https://example.com/inventory/SKU-AX-001\",\n \"barcodeText\": \"AX00193018\"\n },\n {\n \"title\": \"SKU-BX-204\",\n \"subtitle\": \"Warehouse B / Rack 12\",\n \"qrText\": \"https://example.com/inventory/SKU-BX-204\",\n \"barcodeText\": \"BX20488271\"\n }\n]",
"pageSize": "A4",
"landscape": false,
"columns": 2,
"rows": 6,
"labelWidthMm": 90,
"labelHeightMm": 42,
"marginMm": 10,
"gapMm": 4
}
}
}Questions or issues? Contact [email protected]