calculate_expression
Evaluate SageMath expressions and return numeric or string results, with optional isolated workspace sessions for independent variables.
Instructions
Evaluate a SageMath expression and return numeric/string forms
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Workspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'. | default |
| expression | Yes | SageMath expression to evaluate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||