matrix_multiplication
Multiply two matrices by supplying rows as lists of lists; returns the resulting product matrix or an error message.
Instructions
Multiplies two matrices.
Args: matrix_a: The first matrix as a list of lists. matrix_b: The second matrix as a list of lists.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> matrix_multiplication([[1, 2], [3, 4]], [[5, 6], [7, 8]]) {'result': [[19, 22], [43, 50]]}
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_multiplication"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix_a | Yes | ||
| matrix_b | Yes |