Skip to main content
Glama
oce-math-mcp

oce-math-mcp

by oce-projects

math_verify

Verifies mathematical answers by checking symbolic and random-point equivalence, substituting solutions into equations, and validating derivatives, antiderivatives, numeric results, or inequalities.

Instructions

Check an answer before giving it: symbolic and random-point equivalence of two expressions, substitution of a solution into equations, derivative and antiderivative checks, numeric comparison with tolerance, counterexample search for inequalities.

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

Input Schema

NameRequiredDescriptionDefault
exprYesExpression, ';'-separated equations, or inequality to check.
domainNoreal
samplesNo
expectedNoClaimed result to compare with.
solutionNoClaimed solution e.g. {'x': '2', 'y': '-1/3'}.
operationYes
toleranceNo
variablesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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. It does disclose methodology beyond structured fields — random-point sampling, tolerance-based numeric comparison, counterexample search — which hints that failures may return counterexamples. But it says nothing about the return shape (boolean vs. witness vs. error), whether results are deterministic given samples, or cost of sampling up to 1000 points.

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?

One front-loaded sentence: the imperative purpose comes first, then a comma-separated capability list. Dense and free of filler, though the trailing capability list is packed enough that it reads like a feature dump rather than structured guidance.

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?

This is an 8-parameter multimodal tool with a nested solution object, no annotations, and no output schema. The critical missing piece is which parameters each operation requires or ignores (e.g. does check_derivative need expected? does check_inequality use tolerance or samples?), and there is no description of return values — a significant gap for a tool whose whole job is producing a verdict.

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

Parameters3/5

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

Schema coverage is 38%, so the description must compensate and it partially does: it maps capability phrases to operation values (equivalence, check_solution, check_derivative, check_antiderivative, check_numeric, check_inequality) and mentions tolerance and solution substitution. It leaves domain, samples, variables, and expected unaddressed, so half the parameter space remains undocumented.

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?

"Check an answer before giving it" states a specific verb (check/verify) and then enumerates the exact verification modes: symbolic and random-point equivalence, solution substitution, derivative/antiderivative checks, numeric comparison, inequality counterexample search. This clearly separates it from compute-oriented siblings like math_eval and math_solve, though no sibling is named explicitly.

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 opening clause implies a verification workflow (validate a claim before presenting it), which is real usage context. However, it never says when not to use it (e.g. for raw evaluation use math_eval) or which of the six modes to pick for a given situation, leaving the agent to infer routing from the operation enum.

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