Matrix Multiply
matrix_multiplyMultiply two matrices and return the product as nested lists, enabling quick linear algebra calculations.
Instructions
Multiply two matrices and return the result as nested lists
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_a": "<matrix_a>",
"matrix_b": "<matrix_b>"
},
"name": "matrix_multiply"
}
}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 |
| matrix_a | Yes | Left matrix (rows of numbers). Integers stay exact; pass values from 2^53 up as decimal strings, e.g. "9007199254740993". | |
| matrix_b | Yes | Right matrix (rows of numbers). Integers stay exact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||