Skip to main content
Glama

Math MCP Server

by avanishd-3

matrix_multiplication

Multiply two matrices with 64-bit floating-point precision using nested list inputs. Ensure compatible dimensions for accurate results. Supports fractions for individual elements.

Instructions

Multiplies two matrices with 64 bit floating point precision and returns the result as a matrix. You need to provide them in the format of nested lists. For example, [[1, 2], [3, 4]] would represent a 2x2 matrix. Each sub list represents a row in the matrix, and each element in the sub list represents a column. The matrices must be compatible for multiplication, meaning the number of columns in the first matrix must equal the number of rows in the second matrix. You can also use fractions for individual elements if you want to, like [1/2, 1/3, 1/4].

Input Schema

NameRequiredDescriptionDefault
matrix_1Yes
matrix_2Yes

Input Schema (JSON Schema)

{ "properties": { "matrix_1": { "items": { "items": { "anyOf": [ { "type": "integer" }, { "type": "number" } ] }, "type": "array" }, "title": "Matrix 1", "type": "array" }, "matrix_2": { "items": { "items": { "anyOf": [ { "type": "integer" }, { "type": "number" } ] }, "type": "array" }, "title": "Matrix 2", "type": "array" } }, "required": [ "matrix_1", "matrix_2" ], "type": "object" }
Install Server

Other Tools from Math MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/avanishd-3/math-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server