Skip to main content
Glama
oce-math-mcp

oce-math-mcp

by oce-projects

math_eval

Evaluates mathematical expressions and scalar functions using exact Decimal, Fraction, or float modes, with configurable precision for logs, roots, trigonometry, statistics, finance, and unit conversion.

Instructions

Exact arithmetic and scalar functions: Decimal/Fraction/float modes, logs, roots, trig in rad and deg, hyperbolic, combinatorics, statistics and distributions, Italian finance (VAT, withholding, loans, NPV, IRR, DCF), unit conversion.

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": {
      "expr": "<expr>"
    },
    "name": "math_eval"
  }
}

Input Schema

NameRequiredDescriptionDefault
exprYes
precisionNo
variablesNo
exact_modeNodecimal
show_stepsNoAdd numbered steps in Italian to result.steps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does add useful operational context by disclosing the three numeric modes and the breadth of supported function families. It says nothing about error behavior on malformed or undefined expressions, evaluation limits, or the fact that this is a side-effect-free computation, which leaves real gaps for a no-annotation tool.

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?

A single dense sentence front-loads the core domain before the capability list, with no filler or repetition. The comma-separated enumeration is long but each item adds discriminating information.

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 tool with 5 parameters (including a nested object), 20% schema coverage, no annotations and no output schema, the description is thin. It omits expression syntax, how variables are passed, precision semantics, and failure modes, leaving the caller to guess at invocation details.

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 20% (only show_steps is documented), and the description compensates for just one of the remaining four parameters by naming the Decimal/Fraction/float modes. It says nothing about the expr syntax, the meaning of precision, or — most importantly — the nested 'variables' object, which is entirely undocumented in both schema and description.

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 a concrete domain and enumerates the capability families covered (exact arithmetic, logs/roots/trig, combinatorics, distributions, Italian finance, unit conversion), so an agent can tell roughly what the tool does. It never states the operation in verb form (evaluate an expression string) and gives no explicit contrast with close siblings such as math_numeric or math_solve, so it stops short of a 5.

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 or when-not-to-use guidance and no reference to alternatives, even though math_numeric, math_solve, math_verify and number_theory overlap heavily. The usage is only implied by the capability list, so an agent must infer the routing decision entirely on its own.

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