Skip to main content
Glama
oce-math-mcp

oce-math-mcp

by oce-projects

math_numeric

Solve numerical math tasks: evaluate high-precision expressions, sums, integrals, roots, optimizations, linear/integer programs, ODEs, polynomial roots, constant identification, and curve fits.

Instructions

Numerical math with mpmath, SciPy and NumPy: arbitrary precision evaluation (up to 1000 digits), infinite sums, numerical integrals, roots, constrained and global optimization, linear and integer programming, ODE initial value problems, polynomial roots, closed-form identification of constants, curve fitting.

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_numeric"
  }
}

Input Schema

NameRequiredDescriptionDefault
x0NoInitial guess, or initial state for ode_ivp.
exprNoExpression, equation with '=', ';'-separated equations, or ';'-separated ODE right-hand sides.
boundsNo[a, b] or [[x,a,b],...] for quad/nsum, [lo, hi] bracket for root, [[lo, hi], ...] per variable for minimize/linprog, [t0, t1] for ode_ivp.
data_xNo
data_yNo
digitsNo
methodNoauto
integerNolinprog: all variables integer (MILP).
samplesNoOutput points for ode_ivp.
directionNominimize
operationYes
variablesNo
constraintsNoConstraints like 'x + y <= 4' or 'x*y = 1'.

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?

With no annotations, the description carries the full burden and does little: it mentions the 1000-digit ceiling, but that merely restates the digits maximum in the schema. Nothing is said about non-convergence behavior, runtime/cost of global optimization or ODE solving, or what the result looks like for each operation.

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?

It is a single sentence with no wasted preamble and the domain ('Numerical math') is front-loaded. However, it is an unstructured comma-separated capability dump that would read far better as a short operation-by-operation mapping.

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 ten-operation, thirteen-parameter tool with no annotations and no output schema, the description is thin: it does not state per-operation input requirements or per-operation return shapes (coefficients vs. sample arrays vs. identified constants). The complexity of the tool clearly outruns the one-line definition.

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 only 46% across 13 parameters, so the description should compensate—but it adds no parameter meaning at all, and critically never says which parameters apply to which of the ten operations. An agent must reverse-engineer that evalf wants expr+digits, linprog wants bounds+constraints, and ode_ivp wants x0+expr+bounds+samples from scattered schema fragments.

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 names concrete capabilities that map cleanly onto the operation enum (evalf/arbitrary precision, nsum/infinite sums, quad/integrals, root, minimize, linprog, ode_ivp, polyroots, identify, curve_fit), so an agent can tell what the tool computes. It never distinguishes itself from siblings like math_eval, math_solve or math_verify, leaving the boundary between 'numeric' and 'symbolic' work to inference.

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?

There is no when-to-use guidance, no exclusions, and no routing to alternatives such as math_eval for plain evaluation or math_solve for symbolic equations. The capability list implies usage but leaves the agent to guess when this tool is the right pick over its siblings.

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