Skip to main content
Glama
JamaalDavis

Calculator MCP Server

by JamaalDavis

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
addA

Add two numbers together.

Args: a: The first number. b: The second number.

Returns: A string with the sum of a and b.

subtractA

Subtract the second number from the first.

Args: a: The number to subtract from. b: The number to subtract.

Returns: A string with the result of a - b.

multiplyA

Multiply two numbers together.

Args: a: The first number. b: The second number.

Returns: A string with the product of a and b.

divideA

Divide the first number by the second.

Args: a: The numerator. b: The denominator. Must not be zero.

Returns: A string with the result of a / b, or an error message if b is zero.

powerA

Raise a number to a power.

Args: base: The base number. exponent: The exponent to raise the base to.

Returns: A string with the result of base ** exponent, or an error message if the operation is undefined (e.g. a negative base with a fractional exponent).

square_rootA

Compute the square root of a number.

Args: value: The number to take the square root of. Must be non-negative.

Returns: A string with the square root of value, or an error message if value is negative.

percentageA

Compute what percentage 'part' is of 'whole'.

Args: part: The partial amount. whole: The total amount. Must not be zero.

Returns: A string with the percentage part is of whole, or an error message if whole is zero.

Prompts

Interactive templates invoked by user choice

NameDescription
solve_equationGuide the assistant through solving a math word problem step by step. Args: problem: The word problem or equation to solve.
calculation_helpOffer guidance on how to use the calculator tools for a given topic. Args: topic: The area to get help with (e.g. "percentages", "exponents", "square roots", or "general").

Resources

Contextual data attached and managed by the client

NameDescription
get_math_constantsReference table of common math constants (pi, e, golden ratio, tau).
get_calculation_historyLog of every successful calculation made this session, oldest first.

TDQS

A4.4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool performs a unique arithmetic operation with no overlap or ambiguity. The names and descriptions clearly distinguish addition, subtraction, multiplication, division, exponentiation, square root, and percentage.

Naming Consistency5/5

All tool names follow a consistent lowercase_with_underscores pattern (e.g., add, square_root, percentage). The naming is uniform and predictable across the set.

Tool Count5/5

With 7 tools, the set covers the core arithmetic operations needed for a calculator server. The count is well within the typical 3-15 range and feels neither sparse nor bloated.

Completeness4/5

The tool set covers the essential operations (add, subtract, multiply, divide, power, square root, percentage). A modulo operation could be expected but its absence does not create a significant gap for standard calculator use.

Maintenance

ActivityMaintained
ResponsivenessNo issues