Document Tools
Create a thermal-width receipt PDF with bold title and QR code
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-receipt-ticket' \
-H 'Content-Type: application/json' \
-d '{"storeName":"Luna Coffee Bar","receiptTitle":"Order Receipt","items":"[{\"name\":\"Latte\",\"quantity\":2,\"unitPrice\":4.5},{\"name\":\"Croissant\",\"quantity\":1,\"unitPrice\":3.2}]","currency":"USD","taxRate":8.25,"paymentMethod":"Visa •••• 4242","orderNumber":"Order #A-2041","date":"","thermalWidth":"58","qrData":"https://example.com/order/A-2041","footerText":"Thanks for visiting!"}'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-receipt-ticket| Name | Type | Required | Description |
|---|---|---|---|
| storeName | text | Yes | — |
| receiptTitle | text | No | — |
| items | textarea | Yes | — |
| currency | text | No | — |
| taxRate | number | No | — |
| paymentMethod |
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-receipt-ticket": {
"name": "pdf-receipt-ticket",
"description": "Create a thermal-width receipt PDF with bold title and QR code",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-receipt-ticket",
"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-receipt-ticket",
"arguments": {
"storeName": "Luna Coffee Bar",
"receiptTitle": "Order Receipt",
"items": "[{\"name\":\"Latte\",\"quantity\":2,\"unitPrice\":4.5},{\"name\":\"Croissant\",\"quantity\":1,\"unitPrice\":3.2}]",
"currency": "USD",
"taxRate": 8.25,
"paymentMethod": "Visa •••• 4242",
"orderNumber": "Order #A-2041",
"date": "",
"thermalWidth": "58",
"qrData": "https://example.com/order/A-2041",
"footerText": "Thanks for visiting!"
}
}
}| text |
| No |
| — |
| orderNumber | text | No | — |
| date | date | No | — |
| thermalWidth | select | No | — |
| qrData | text | No | — |
| footerText | textarea | 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)"
}Questions or issues? Contact [email protected]