Skip to main content
Glama
saurabhherwadkar

MCP Python Server & Client

calculate

Perform mathematical calculations including addition, subtraction, multiplication, division, power, square root, and modulo on two numbers.

Instructions

Perform a mathematical calculation.

Args: operation: The math operation (add, subtract, multiply, divide, power, sqrt, modulo) a: The first number b: The second number (not used for sqrt)

Returns: The calculation result as a string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bNo
operationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It specifies operations, parameter roles (a, b, operation), and return type (string). Missing details on error handling or edge cases, but adequate for a calculator.

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?

Reasonably concise with clear docstring format. Each sentence adds value, though could be slightly more streamlined.

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?

Tool is simple; description covers parameters and return. No output schema details needed as description already states return type. Adequate for its complexity.

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

Parameters5/5

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

Schema coverage is 0%, but the description compensates fully by explaining each parameter's role: operation as math operation, a as first number, b as second number (with note for sqrt). Adds meaning beyond 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 explicitly states it performs mathematical calculations, lists supported operations, and clearly distinguishes from siblings like get_weather and string_operation.

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?

No explicit guidance on when to use this tool versus alternatives or when not to use it. Sibling tools are unrelated, but usage context is not addressed.

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

Install Server

Other Tools

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/saurabhherwadkar/ai-genai-mcp'

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