matrix_multiply
Multiply two matrices by computing the matrix product A @ B for compatible rows and columns. Use it to get deterministic results for linear algebra tasks in a sandboxed math server.
Instructions
Return the matrix product A @ B.
Columns of A must match rows of B. Matrices are lists of rows.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "matrix_multiply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |