Skip to main content
Glama

calculator

Perform addition, subtraction, multiplication, or division on two numbers to compute the result.

Instructions

Performs basic arithmetic (add, subtract, multiply, divide) on two numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYesThe first number.
bYesThe second number.
operationYesThe math operation to perform: add, subtract, multiply, or divide.
Behavior2/5

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

No annotations provided, so description carries full burden. Does not disclose behavior on division by zero or error handling, nor precision details. Only states it 'performs' operations without constraints or 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, 12 words, front-loaded with action verb. Every word earns its place. No redundancies.

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

Completeness3/5

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

For a simple tool with full schema coverage, description is adequate but missing key behavioral details (e.g., division by zero behavior, return type). No output schema, so return value info would be helpful.

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?

Schema coverage is 100% with descriptions for all three parameters. The description adds minimal value beyond the schema (e.g., listing operations), but does not introduce new detail.

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?

Description clearly states 'performs basic arithmetic' on two numbers, specifying four operations. It distinguishes itself from sibling tools (get_weather, password_generator, etc.) which are not arithmetic.

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 or not use this tool vs alternatives. Implicitly it's the only arithmetic tool, but lacking context like 'for simple math only' or when to prefer another tool.

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/abhishekmishra06/mcp-learning-server'

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