Skip to main content
Glama
tanishra

Mathematics MCP Server

by tanishra

add

Calculate the sum of two given numbers and return the result. Solves simple arithmetic addition quickly.

Instructions

Perform addition of two numbers provided in the data object. Args: data (TwoNumberOperation): An object containing two numbers a and b to be added. Returns: Dict[str, Any]: A dictionary containing the operation name ("add") and the result of the addition if successful, or an error message if an exception occurs. Logs: Logs the operation and result in the format: "ADD | {data.a} + {data.b} = {result}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses the return format (operation name and result, or error message on exception) and the logging behavior. This is helpful transparency for a tool that otherwise has no side effects.

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?

The docstring is well-structured with Args, Returns, and Logs sections. Every section adds useful information, and the description is appropriately sized for a simple tool. Minor redundancy exists with the operation name and the Args section, but it does not detract.

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?

The description is complete enough for a simple arithmetic operation: it covers inputs, return behavior, error handling, and logging. The presence of an output schema reduces the need to explain return values. The only missing element is explicit guidance about when not to use this tool, which is minor here.

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

Parameters4/5

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

Schema description coverage is reported as 0%, so the description must compensate. It explains that the `data` parameter is an object containing two numbers `a` and `b` to be added, adding meaning beyond the bare schema. This is sufficient for an agent to construct a valid call.

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 states a specific verb and resource: 'Perform addition of two numbers provided in the data object.' This clearly distinguishes it from the sibling tools like subtract, multiply, and divide. The operation and expected input shape are unambiguous.

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 description implies use when addition is needed, but it does not explicitly discuss when to prefer this tool over alternatives or provide any exclusions. For a simple arithmetic tool, the intended usage is fairly obvious, but no guidance about edge cases or alternative selection is given.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tanishra/math-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server