Document Tools
Genere un bulletin PDF multi-pages
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-grade-report-card' \
-H 'Content-Type: application/json' \
-d '{"schoolName":"Elysia International School","reportTitle":"Student Grade Report Card","termLabel":"Spring 2026","reportData":"[{\"studentId\":\"S1\",\"name\":\"Alice\",\"className\":\"Class 8A\",\"subjects\":[{\"subject\":\"Math\",\"score\":95}]}]","showRank":true,"includeTeacherComments":true,"pageSize":"A4","landscape":false,"printBackground":true,"waitUntil":"networkidle0","waitTime":0}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/pdf-grade-report-card| Nom | Type | Requis | Description |
|---|---|---|---|
| schoolName | text | Oui | — |
| reportTitle | text | Non | — |
| termLabel | text | Non | — |
| reportData | textarea | Non | — |
| showRank | checkbox | Non | — |
| includeTeacherComments |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-pdf-grade-report-card": {
"name": "pdf-grade-report-card",
"description": "Genere un bulletin PDF multi-pages",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-grade-report-card",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-grade-report-card",
"arguments": {
"schoolName": "Elysia International School",
"reportTitle": "Student Grade Report Card",
"termLabel": "Spring 2026",
"reportData": "[{\"studentId\":\"S1\",\"name\":\"Alice\",\"className\":\"Class 8A\",\"subjects\":[{\"subject\":\"Math\",\"score\":95}]}]",
"showRank": true,
"includeTeacherComments": true,
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}| checkbox |
| Non |
| — |
| pageSize | select | Non | — |
| landscape | checkbox | Non | — |
| printBackground | checkbox | Non | — |
| waitUntil | select | Non | — |
| waitTime | number | Non | — |
Résultat fichier
{
"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)"
}Des questions ou un problème ? Contactez [email protected]