list_calculators
Lecture seule
List custom formula calculators created by the user
number
default:"1"
Page number
number
default:"20"
Items per page (max 50)
string
Search by calculator name
create_calculator
Écriture
Create a new custom formula calculator. The formula uses variable names defined in the variables array (e.g. “price * quantity * (1 + tva/100)”).
string
required
Calculator name (e.g. “Calcul TVA”, “Marge brute”)
string
required
Mathematical formula using variable names (e.g. “price * quantity * (1 + tva/100)”). Supports +, -, , /, (, ), Math. functions.
array
required
Variables used in the formula
boolean
default:"false"
Make this calculator public so other users can use it
get_calculator
Lecture seule
Get details of a specific calculator including its formula and variables
string
required
The calculator ID
update_calculator
Écriture
Update an existing calculator (name, formula, variables or visibility)
string
required
The calculator ID to update
string
New name
string
New formula
array
Updated variables list
boolean
Update visibility
delete_calculator
Écriture — destructif
Delete a calculator and all its saved calculations
string
required
The calculator ID to delete
list_saved_calculations
Lecture seule
List saved calculation results, optionally filtered by calculator
number
default:"1"
Page number
number
default:"20"
Items per page (max 50)
string
Filter by a specific calculator
save_calculation
Écriture
Save a calculation result for future reference
string
required
The calculator ID used for this calculation
object
required
Key-value map of variable names to their values (e.g. {“price”: 100, “quantity”: 5})
number
required
The computed result value
string
Optional label for this saved calculation
string
Optional notes about this calculation
delete_saved_calculation
Écriture — destructif
Delete a saved calculation result
string
required
The saved calculation ID to delete