Skip to main content
Glama

evaluate_math

Evaluate a mathematical expression safely

Input Schema

NameRequiredDescriptionDefault
expressionYese.g. 3.14 * 2^10 / (5+3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. The adverb 'safely' hints at sandboxed/non-code-executing evaluation, which is genuinely useful, but it is never elaborated: supported operators/functions, numeric precision, error behavior, or any limits are all unstated.

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 front-loaded sentence with no filler or repetition. It is tight rather than over-trimmed, though the same brevity is what leaves the other dimensions thin.

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 math evaluator with no annotations and no output schema, the description should at minimum sketch the supported expression grammar (operators, functions, precedence) and result type. None of that is present, so an agent cannot reliably predict what expressions will be accepted.

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?

Only one parameter and schema description coverage is 100%, with the schema supplying an example expression ('3.14 * 2^10 / (5+3)'). The description adds nothing beyond the schema, which is the expected baseline when the schema does the work.

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?

States a specific verb (Evaluate) and resource (mathematical expression), so an agent knows this computes a result from an expression string. It is distinguishable from specialized siblings like percentage_calculator or bmr_calculator by virtue of being general-purpose, though the description never explicitly says so.

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?

No when-to-use guidance and no routing against the many calculator siblings (tip_calculator, compound_interest, convert_number_base, etc.). Usage is only implied by the word 'expression', leaving the agent to infer that this is the general fallback versus the specialized tools.

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.