Skip to main content
Glama

calculate

Perform basic arithmetic operations like addition, subtraction, multiplication, and division with two operands. Supports progress notifications for streaming calculations directly from the MCP server.

Instructions

Perform a basic arithmetic calculation

Input Schema

NameRequiredDescriptionDefault
aYesFirst operand
bYesSecond operand
opYesOperation to perform
streamNoIf true, emit progress notifications

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "a": { "description": "First operand", "type": "number" }, "b": { "description": "Second operand", "type": "number" }, "op": { "description": "Operation to perform", "enum": [ "add", "subtract", "multiply", "divide" ], "type": "string" }, "stream": { "description": "If true, emit progress notifications", "type": "boolean" } }, "required": [ "a", "b", "op" ], "type": "object" }

Other Tools from example-mcp-server-stdio

Related Tools

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/yigitkonur/example-mcp-server-stdio'

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