Skip to content

evaluate_math

Evaluate a mathematical expression and return the numeric result. Supports: +, -, *, /, ^ (power), sqrt(), abs(), sin(), cos(), tan(), log() (base 10), ln() (natural), ceil(), floor(), round(), min(), max(), constants pi and e. Example: sqrt((328/3+23)^2 - 6)/6

User guide / All capabilities

Effect: read. Evidence role: discovery_only.

Evaluate a mathematical expression safely.

This is the current provider-facing JSON Schema, generated from the runtime definition.

{
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "The mathematical expression to evaluate. Example: sqrt((328/3+23)^2 - 6)/6"
}
},
"required": [
"expression"
]
}

The ordinary admission and tool execution checks apply.

  • returns the numeric result of the expression