matrix_operations
Add, multiply, transpose, or calculate determinant of matrices with a simple JSON input.
Instructions
Perform matrix operations: add, multiply, transpose, determinant.
Parameters:
operation — Operation: 'add', 'multiply', 'transpose', 'determinant'.
matrix_a — JSON array of arrays (e.g. '[[1,2],[3,4]]').
matrix_b — Second matrix for add/multiply (optional).
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": {
"operation": "<operation>",
"matrix_a": "<matrix_a>"
},
"name": "matrix_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| matrix_a | Yes | ||
| matrix_b | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |