Skip to main content
Glama
oce-math-mcp

oce-math-mcp

by oce-projects

math_solve

Solves symbolic and numeric math problems, including equations, calculus, linear algebra, ODEs, and optimization, with self-verified results from SymPy/SciPy/NumPy.

Instructions

Symbolic math with SymPy plus SciPy/NumPy: equations, systems, inequalities, derivatives, integrals (single, multiple, line, surface), limits, series, function study, vector calculus, Lagrange, ODE, Laplace, Fourier/FFT, Riccati LQR, linear algebra, sums, recurrences, polynomials, complex numbers. Results are self-verified.

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>"
    },
    "name": "math_solve"
  }
}

Input Schema

NameRequiredDescriptionDefault
icsNoInitial conditions for ODE e.g. {'y(0)': 1, "y'(0)": 0} or recurrence e.g. {'a(0)': 0, 'a(1)': 1}.
exprNoScalar expression, equation with '=', or ';'-separated equations/vector components.
timeNoCARE or DARE for riccati_lqr.continuous
orderNo
boundsNo[a, b] for integrate/summation, [point, dir] for limit, [x0] for series, [[x,a,b],[y,c,d],...] for multi_integrate/surface_integral, [t0, t1] for numeric ode.
coordsNoCoordinate system for multi_integrate (Jacobian added automatically).cartesian
domainNoreal
poly_opNoSub-operation for polynomial.roots
matrix_aNo
matrix_bNo
matrix_qNoState weight Q for riccati_lqr.
matrix_rNoControl weight R for riccati_lqr.
matrix_opNo
operationYes
variablesNo
show_stepsNoAdd numbered steps in Italian to result.steps.
constraintsNoEquality/inequality constraints for lagrange_optimize / optimize_num.
vector_fieldNo3D/nD vector field [Fx, Fy, Fz] for divergence/curl/jacobian/line_integral/surface_integral.
numeric_samplesNoSignal array for fourier_fft, initial guess for optimize_num.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

No annotations are provided, so the description must disclose behavior. It names the underlying libraries and states that results are self-verified, which adds useful context, but it does not describe output shape, precision or error behavior, performance characteristics, or operation-specific constraints.

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

Conciseness3/5

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

The definition is front-loaded and only two sentences long, but the second sentence is a very long comma-separated operation inventory that duplicates the schema enum and is hard to scan. It is not padded with fluff, but it could be structured more efficiently.

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

Completeness2/5

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

For a 19-parameter multi-operation solver with no annotations and no output schema, the description is too thin. It gives an operation inventory and a verification note but omits operation-specific guidance, parameter meaning, and return or error behavior.

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

Parameters2/5

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

Schema description coverage is 63%, and the description adds no parameter-level meaning beyond listing operation names that already appear in the operation enum. Undocumented parameters such as variables, order, domain, matrix_op, and matrix_a/b remain unexplained.

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

Purpose4/5

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

The description states that the tool performs symbolic math using SymPy plus SciPy/NumPy and enumerates the supported operation families. The purpose is clear, but the broad scope is not differentiated from siblings such as math_eval, math_numeric, or math_verify.

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

Usage Guidelines2/5

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

The description lists operation families but gives no explicit when-to-use guidance, prerequisites, or alternatives. An agent cannot tell from the definition when to choose this tool over math_eval, math_numeric, or math_verify.

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