Skip to main content
Glama
Calculator MCP Server

Calculator MCP Server

Add

Calculates the sum of two numbers by taking a first and second value and returning the addition result.

Instructions

Adds two numbers and returns their sum

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "Add"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst Number
bYesSecond Number

Output Schema

NameRequiredDescriptionDefault
aYesFirst Input Number
bYesSecond Input Number
resultYesSum of two numbers
operationYesOperation performed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It does convey that the operation is pure computation returning a sum, but it does not state that there are no side effects, nor how non-finite or type-mixed inputs behave. An output schema exists, so return-value explanation is not the description's burden.

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?

A single front-loaded sentence with zero filler. Every clause (operation, operands, result) earns its place, and there is no repetition of schema or title content.

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?

For a two-parameter arithmetic primitive with an output schema and no annotation needs, the definition is essentially sufficient. The only minor shortfall is silence on operand types and edge cases, which is largely covered by the schema's `number` typing.

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 description coverage is 100% ("First Number", "Second Number"), so the schema already documents both parameters fully. The description adds no operand semantics beyond what the schema provides, making the baseline 3 appropriate.

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?

The description gives a specific verb and resource ("Adds two numbers") plus the observable result ("returns their sum"), which separates it cleanly from the sibling arithmetic tools Subtract, Multiply, Divide, and Percentage. It stops short of explicitly naming a sibling, but the operation itself is 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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. For a binary arithmetic primitive the intended usage is strongly implied by the name and the operands, so the gap is small but present.

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

Deploy Server

Other Tools