Skip to main content
Glama
MCP Server Starter

MCP Server Starter

by dao-genesis

Calculator

calculator

Performs addition, subtraction, multiplication, or division on two numbers to calculate basic arithmetic results.

Instructions

Performs a basic arithmetic operation on two numbers.

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": {
      "operation": "<operation>",
      "a": "<a>",
      "b": "<b>"
    },
    "name": "calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesThe left operand
bYesThe right operand
operationYesThe arithmetic operation to perform

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure and largely fails to. It does not say what happens on divide-by-zero, whether errors are thrown or returned as values, how precision/rounding is handled, or what the response shape is.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is a virtue for structure even though it leaves content gaps elsewhere.

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?

This is a simple three-parameter tool with a fully documented schema and no output schema, so the description does not need much. However, it says nothing about the return value or the divide-by-zero edge case, which are the only real ambiguities an agent would face.

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%, including an enum for the operation and labeled operands, so the schema already does the heavy lifting. The description only restates "two numbers" and "basic arithmetic operation" without adding meaning beyond the schema, so the baseline 3 applies.

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+resource combination ("Performs a basic arithmetic operation") and scopes it to two numbers, which clearly separates it from siblings like echo and fetch_url. It stops short of naming or contrasting those siblings, so it lands at clear-but-undifferentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no mention of alternatives, and no prerequisites. The purpose is intuitive enough that an agent can guess, but the description itself offers no routing logic.

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