Skip to main content
Glama

Server Details

Evaluate, simplify, and differentiate mathematical expressions.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
cyanheads/calculator-mcp-server
GitHub Stars
1
Server Listing
calculator-mcp-server

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4/5 across 1 of 1 tools scored.

Server CoherenceA
Disambiguation5/5

Only one tool exists, so there is no possibility of confusing it with others. The purpose is clear and unambiguous.

Naming Consistency5/5

The single tool name 'calculate' is descriptive and follows a simple, consistent convention. There are no other names to conflict.

Tool Count3/5

One tool is borderline for a server, but for a calculator domain it is acceptable. The tool handles a wide range of operations in one call, though a few separate tools might be expected.

Completeness4/5

The calculate tool covers a comprehensive set of mathematical operations including arithmetic, algebra, calculus, statistics, matrices, and units. For a calculator server, this is quite complete, with no major missing functionality.

Available Tools

1 tool
calculateCalculateA
Read-onlyIdempotent
Inspect

Evaluate math expressions, simplify algebraic expressions, or compute symbolic derivatives. One expression per call. Supports arithmetic, trigonometry, statistics, matrices, complex numbers, units, and combinatorics.

ParametersJSON Schema
NameRequiredDescriptionDefault
scopeNoVariable assignments for the expression. Example: { "x": 5, "y": 3 } makes "x + y" evaluate to 8.
variableNoVariable to differentiate with respect to. Required when operation is "derivative". Empty string is treated as omitted. Example: "x".
operationNoOperation to perform. "evaluate" computes a numeric result (default). "simplify" reduces an algebraic expression symbolically (e.g., "2x + 3x" -> "5 * x"). Supports algebraic and trigonometric identities. When the simplifier cannot reduce the expression further (e.g. rational expressions requiring polynomial factoring), the result is returned unchanged and unchanged: true is set in the output. "derivative" computes the symbolic derivative (requires the variable parameter).evaluate
precisionNoSignificant digits (1–16) for numeric results. Omit for full precision. Empty string is treated as omitted. Ignored for symbolic operations (simplify, derivative).
expressionYesOne mathematical expression per call — neither `;` nor newlines separate statements. Inside matrices, `;` separates rows (e.g. `[1, 2; 3, 4]`). Supports arithmetic (+, -, *, /, ^, %), functions across arithmetic/trig (sin, cos, sqrt, log, abs, round), statistics (mean, median, std, variance), combinatorics (factorial, permutations, combinations), and matrix (det, inv, transpose), plus constants (pi, e, phi, i), units (5 kg to lbs), and variables (when scope is provided). Standard notation `ln` and `arc*` (e.g. `arcsin`, `arctan`) is accepted alongside the math.js names `log` and `asin`/`atan`; common synonyms such as `stdev`, `permute`, `nCr`, and `length`/`len` resolve to their math.js names (`std`, `permutations`, `combinations`, `count`).
numericTypeNoNumeric type for evaluate. "number" (default): 64-bit IEEE 754 float — fastest, standard precision. "BigNumber": arbitrary-precision decimal — use when intermediate values overflow 64-bit float (e.g. large factorial ratios like 10000!/9999!); slower than "number". "Fraction": exact rational arithmetic — eliminates floating-point rounding (e.g. 0.1 + 0.2 = 0.3 exactly); limited to expressions with exactly-rational results — an irrational or transcendental result (sqrt, sin, log, …) fails with fraction_unsupported, so use "number" or "BigNumber" for those. Ignored for symbolic operations (simplify, derivative). When "number" evaluation produces a non-finite result (undefined_result error), retry with "BigNumber".number

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYesThe computed result as a string.
operationYesThe operation that was applied.
scopeVarsNoKeys from the scope that were active during evaluation. Omitted when no scope was provided. Values are omitted to keep output compact.
unchangedNoPresent only for simplify operations. true means the simplifier returned the expression unchanged — it could not reduce it further (e.g. rational expressions requiring polynomial factoring are beyond math.js's built-in simplifier). false means simplification made progress. Omitted for evaluate and derivative.
expressionYesThe original expression as received.
resultTypeYesType of result as reported by math.js: number, BigNumber, Complex, DenseMatrix, Unit, string, boolean. Symbolic operations return "string".
precisionUsedNoSignificant-digit precision applied to the result. Omitted when full precision was used or the operation is symbolic.
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the agent knows this is a safe, non-mutating operation. The description adds behavioral scope (supported math areas, one-expression limit) but lacks deeper details such as error behavior or edge cases. It does not contradict annotations.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the primary verbs, and every word adds value. It avoids redundancy and clearly communicates the core functionality without unnecessary detail.

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 the rich input schema, annotations, and presence of an output schema, the description is nearly complete for an agent to select and invoke the tool. It could explicitly mention that derivative requires a variable, but that is already covered in the schema, so the description suffices.

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 description coverage is 100%, so the input schema already thoroughly explains each parameter. The tool description does not add meaning beyond what the schema provides; it only restates the expression capability already covered in 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 clearly states specific actions ('Evaluate math expressions, simplify algebraic expressions, or compute symbolic derivatives') with distinct verb+resource pairs. It goes beyond the generic title and gives a precise scope, making it easy to distinguish from potential math-related tools.

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

Usage Guidelines4/5

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

It provides clear context on what the tool can do (arithmetic, trigonometry, statistics, matrices, etc.) and includes a usage constraint ('One expression per call'). No explicit alternatives are given, but there are no sibling tools listed, so this level of guidance is adequate.

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

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Servers

View all MCP Servers

Try in Browser

Your Connectors

Sign in to create a connector for this server.