Skip to main content
Glama
Luissalet

Laplace's Hoard MCP Server

by Luissalet

math

Read-onlyIdempotent

Perform symbolic math with SymPy: solve equations, compute derivatives, integrals, limits, series, and matrix operations. Enter an expression and operation to get exact, citable results.

Instructions

Symbolic math with SymPy: solve equations, derivatives, integrals, limits, series, matrices.

operation is one of: simplify, expand, factor, apart, together, solve, nsolve, diff, integrate, limit, series, summation, product, matrix, dsolve, inequality. Syntax as in calc, plus variables; an equation is written x**2 - 5*x + 6 = 0 (or ==).

  • solve: expression="2*x + 1 = 7" (or expressions=[...] for a system, variables=["x", "y"]); domain real|complex. Each solution has values (exact), numeric and verified (substituted back) - check it.

  • diff: expression, variable, order. integrate: expression, variable, optional lower/upper for a definite integral. limit: expression, variable, point (e.g. "oo"), direction "+"/"-". series: variable, point, order. summation/product: variable, lower, upper.

  • nsolve: numeric root near x0. inequality: expression="x**2 < 4".

  • dsolve: dy/dx = expression, in symbols x and y (e.g. "y - x").

  • matrix: matrix_op det|inv|rank|rref|eigenvals|transpose|multiply and matrix=[[1, 2], [3, 4]] (matrix2 for multiply). variable can be omitted when the expression has only one symbol. Hard timeout (10 s): on timeout, simplify the input instead of retrying. Cite results as their cite, e.g. [L-000042].

Keywords: solve for x, equation, derivative, integral, differentiate, simplify, factor, limit, series, matrix determinant, inverse matrix, eigenvalues, resolver, ecuación, despejar, derivada, integral, simplificar, factorizar, límite, serie, matriz, determinante, autovalores.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x0No
lowerNo
orderNo
pointNo
upperNo
domainNoreal
matrixNo
matrix2No
functionNo
variableNo
directionNo
matrix_opNo
operationYes
variablesNo
expressionNo
expressionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds a hard timeout (10 s) with a fallback, the need to cite results via [L-...], and the fact that solve returns verified substitutions. These go beyond annotations and are useful behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but densely packed. It front-loads the purpose, then compactly lists operations with examples. The structure uses bullet points and minimal prose. It includes multilingual keywords, which may be extraneous but do not bloat the core content. No redundant sentences; each earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 16 parameters, 15 operations, and no output schema, the description covers parameter usage per operation, timeout behavior, citation, and a verification note for solve. The only gap is that return formats for operations other than solve are not specified. Overall, it provides enough to call the tool correctly for most cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema_description_coverage at 0%, the description fully compensates by detailing each operation's relevant parameters: solve (expression, expressions, variables, domain), diff (variable, order), integrate (lower/upper), limit (point, direction), series (point, order), summation/product (lower, upper), matrix (matrix_op, matrix, matrix2), and nsolve (x0). It also notes that 'variable' can be omitted when only one symbol exists, adding meaning well beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states it performs 'Symbolic math with SymPy' and enumerates specific operations (solve, diff, integrate, limit, series, matrices). This clearly distinguishes it from numeric siblings like calc, and the verb+resource is specific. It is immediately obvious what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for symbolic math problems and references 'Syntax as in calc', but it does not explicitly state when not to use it or which alternative to use for numeric calculations. No exclusions or alternative hunt is provided, leaving selection partially implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.