Symbolic Algebra MCP Server

by sdiehl

create_matrix

Generate a SymPy matrix from numeric or symbolic input data for symbolic algebra computations. Optionally assign a name to the matrix for storage and retrieval.

Instructions

Creates a SymPy matrix from the provided data.

Args: matrix_data: A list of lists representing the rows and columns of the matrix. Each element can be a number or a string expression. matrix_var_name: Optional name for storing the matrix. If not provided, a sequential name will be generated. Example: # Create a 2x2 matrix with numeric values matrix_key = create_matrix([[1, 2], [3, 4]], "M") # Create a matrix with symbolic expressions (assuming x, y are defined) matrix_key = create_matrix([["x", "y"], ["x*y", "x+y"]]) Returns: A key for the stored matrix.

Input Schema

NameRequiredDescriptionDefault
matrix_dataYes
matrix_var_nameNo

Input Schema (JSON Schema)

{ "properties": { "matrix_data": { "items": { "items": { "anyOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" } ] }, "type": "array" }, "title": "Matrix Data", "type": "array" }, "matrix_var_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Matrix Var Name" } }, "required": [ "matrix_data" ], "title": "create_matrixArguments", "type": "object" }

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/sdiehl/sympy-mcp'

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