Skip to main content
Glama

Evaluate

evaluate
Read-onlyIdempotent

Evaluate mathematical expressions: arithmetic, algebra, trigonometry, statistics. Returns computed result. E.g., "2+2", "sin(pi/2)", "sqrt(16)", "mean([1,2,3])". Use when you need to calculate or simplify math.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expressionYesMathematical expression to evaluate (e.g., "2 + 3 * 4", "sqrt(16)", "sin(pi/2)", "det([1,2;3,4])")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesThe computed result of the expression
expressionYesThe mathematical expression that was evaluated

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "expression": {
      +      "description": "The mathematical expression that was evaluated",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The computed result of the expression",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "expression",
      +    "result"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "expression": "2 + 3 * 4"
      +  },
      +  {
      +    "expression": "sin(pi/2)"
      +  }
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds that it 'Returns computed result' and lists supported domains, giving useful behavioral context without contradicting 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 compact and front-loaded, stating the purpose immediately, then adding a return note, examples, and usage guidance in just a few sentences. No wasted words.

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

Completeness5/5

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

Given a simple single-parameter tool with rich annotations and an output schema, the description covers purpose, usage, and examples sufficiently. It is complete for the tool's complexity.

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?

The input schema fully documents the single 'expression' parameter with examples, and the description repeats similar examples. Since schema coverage is 100%, the description adds no additional parameter meaning beyond 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 uses a specific verb 'Evaluate' and clearly names the resource ('mathematical expressions') plus domains (arithmetic, algebra, trigonometry, statistics). This distinguishes it from sibling tools like convert_units and various research 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?

Explicitly states 'Use when you need to calculate or simplify math,' providing a clear trigger condition. It does not mention when not to use it or alternatives, but the guidance is clear and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation2/5

Many tools have overlapping purposes, especially the ask_pipeworx family (4 variants) and polymarket tools (5 variants). The memory tools (remember/recall/forget) and subscription tools also overlap with each other. While descriptions provide some differentiation, the sheer number of similar tools makes it hard for an agent to quickly distinguish the right one.

Naming Consistency2/5

Most names use snake_case, but there is no consistent verb_noun pattern. Some are verb_noun (ask_pipeworx, resolve_entity), some are noun_noun (bet_research, entity_profile), and others are adjective_noun (recent_changes, pipeworx_trending). The naming is arbitrary and doesn't follow a predictable convention.

Tool Count2/5

At 33 tools, the count is high but not extreme for a broad data platform. However, the server is named 'mathjs', implying a math focus, yet only 2 tools (evaluate, convert_units) are math-related. The vast majority of tools belong to a completely different domain (data lookups, prediction markets, subscriptions), making the count inappropriate for the server's apparent purpose.

Completeness1/5

For a math server, the tool surface is severely incomplete—missing basic operations like plotting, equation solving, calculus, etc. For the actual data integration and prediction market functionality, the set is more complete, but the server name misleads. The mismatch between name and content makes the completeness score very low based on the implied domain.