Math & Numbers
Pratiquez les règles des chiffres significatifs avec retour étape par étape : comptage, arrondi à N chiffres, notation scientifique et propagation dans +/−/×/÷.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/significant-figures-sandbox' \
-H 'Content-Type: application/json' \
-d '{"number":"0.005030","mode":"practice","guess":4,"roundN":0,"sciDigits":0,"opA":"e.g. 12.5","opB":"e.g. 3.20","operation":"+"}'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/significant-figures-sandbox| Nom | Type | Requis | Description |
|---|---|---|---|
| number | text | Oui | The number to analyse. Accepts integers, decimals, leading zeros, and scientific notation (1.23e4, 1.23E4, 1.23×10^4). |
| mode | select | Non | Practice gives feedback on your sig-fig guess. Round rounds to N sig figs. Propagate applies the +/−/×/÷ rule to two operands. |
| guess | number | Non | Practice mode only: enter your guess to get correct/incorrect feedback. |
| roundN | number | Non | Round mode only: how many sig figs to round to. Defaults to the number's own count. |
| sciDigits |
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-significant-figures-sandbox": {
"name": "significant-figures-sandbox",
"description": "Pratiquez les règles des chiffres significatifs avec retour étape par étape : comptage, arrondi à N chiffres, notation scientifique et propagation dans +/−/×/÷.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=significant-figures-sandbox",
"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": "significant-figures-sandbox",
"arguments": {
"number": "0.005030",
"mode": "practice",
"guess": 4,
"roundN": 0,
"sciDigits": 0,
"opA": "e.g. 12.5",
"opB": "e.g. 3.20",
"operation": "+"
}
}
}| number |
| Non |
| Round mode only: how many sig figs to show in scientific notation. Defaults to the round-to value. |
| opA | text | Non | Propagate mode only: first measured value. |
| opB | text | Non | Propagate mode only: second measured value. |
| operation | select | Non | Propagate mode only: the operation to apply. |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]