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
| Name | Required | Description | Default | 
|---|---|---|---|
| a | Yes | First operand | |
| b | Yes | Second operand | |
| op | Yes | Operation to perform | |
| stream | No | If 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"
}