Matrix Operation
matrix_operationPerforms linear algebra on a single matrix: determinant, inverse, eigenvalues, rank, rref, or transpose. Input a nested list to obtain exact results.
Instructions
Linear algebra on one matrix: determinant, inverse, eigenvalues, rank, reduced row echelon form, transpose. Prefer this over evaluate_sage.
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": {
"matrix": "<matrix>",
"operation": "<operation>"
},
"name": "matrix_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes | Matrix as nested list of numbers. Integers stay exact; pass values from 2^53 up as decimal strings. | |
| 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 |
| operation | Yes | One of: determinant, inverse, eigenvalues, rank, rref, transpose |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||