assume
Set symbolic assumptions for variables to influence mathematical simplifications and calculations.
Instructions
Set symbolic assumptions (affecting subsequent math() calculations)
Assumptions are recorded in MathContext and passed to SymPy, and also written
to the current session's multi-level assumption engine (session level).
Args:
variables: Mapping from variable to properties
e.g., {"x": "positive real", "n": "integer"}
Returns:
All current assumptions
Example:
assume({"x": "positive", "t": "real"})
# Afterwards, math("simplify", "sqrt(x**2)") returns x instead of Abs(x)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"variables": "<variables>"
},
"name": "assume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||