Document Tools
Create a visual sales dashboard PDF with charts, data tables, and conclusions
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-sales-dashboard-pdf' \
-H 'Content-Type: application/json' \
-d '{"reportTitle":"Sales Dashboard Report","periodLabel":"Monthly Overview","currency":"USD","metricCards":"[{\"label\":\"Revenue\",\"value\":\"$1.2M\",\"delta\":\"+12%\"}]","chartImages":"[{\"title\":\"Revenue Trend\",\"image\":\"data:image/png;base64,...\"}]","salesTableData":"[{\"channel\":\"Website\",\"revenue\":680000,\"orders\":10200,\"conversion\":4.2}]","conclusions":"[\"Key finding 1\",\"Key finding 2\"]","pageSize":"A4","landscape":true,"waitUntil":"networkidle0","waitTime":500}'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-sales-dashboard-pdf| Name | Type | Required | Description |
|---|---|---|---|
| reportTitle | text | Yes | — |
| periodLabel | text | No | — |
| currency | text | No | — |
| metricCards | textarea | No | — |
| chartImages | textarea | No | — |
| salesTableData | textarea | No | — |
| conclusions | textarea | No | — |
| pageSize | select | No | — |
| landscape | checkbox | No | — |
| waitUntil | select | No | — |
| waitTime | 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-sales-dashboard-pdf": {
"name": "pdf-sales-dashboard-pdf",
"description": "Create a visual sales dashboard PDF with charts, data tables, and conclusions",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-sales-dashboard-pdf",
"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-sales-dashboard-pdf",
"arguments": {
"reportTitle": "Sales Dashboard Report",
"periodLabel": "Monthly Overview",
"currency": "USD",
"metricCards": "[{\"label\":\"Revenue\",\"value\":\"$1.2M\",\"delta\":\"+12%\"}]",
"chartImages": "[{\"title\":\"Revenue Trend\",\"image\":\"data:image/png;base64,...\"}]",
"salesTableData": "[{\"channel\":\"Website\",\"revenue\":680000,\"orders\":10200,\"conversion\":4.2}]",
"conclusions": "[\"Key finding 1\",\"Key finding 2\"]",
"pageSize": "A4",
"landscape": true,
"waitUntil": "networkidle0",
"waitTime": 500
}
}
}Questions or issues? Contact [email protected]