Skip to main content

list_calculators

Lecture seule List custom formula calculators created by the user
number
défaut:"1"
Page number
number
défaut:"20"
Items per page (max 50)
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
requis
Calculator name (e.g. “Calcul TVA”, “Marge brute”)
string
requis
Mathematical formula using variable names (e.g. “price * quantity * (1 + tva/100)”). Supports +, -, , /, (, ), Math. functions.
array
requis
Variables used in the formula
boolean
défaut:"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
requis
The calculator ID

update_calculator

Écriture Update an existing calculator (name, formula, variables or visibility)
string
requis
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
requis
The calculator ID to delete

list_saved_calculations

Lecture seule List saved calculation results, optionally filtered by calculator
number
défaut:"1"
Page number
number
défaut:"20"
Items per page (max 50)
string
Filter by a specific calculator

save_calculation

Écriture Save a calculation result for future reference
string
requis
The calculator ID used for this calculation
object
requis
Key-value map of variable names to their values (e.g. {“price”: 100, “quantity”: 5})
number
requis
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
requis
The saved calculation ID to delete