calculate
Perform mathematical calculations on the MCP Test Server by entering expressions or selecting operations like add, subtract, multiply, or divide with specific numbers.
Instructions
执行数学计算
Input Schema
Name | Required | Description | Default |
---|---|---|---|
a | No | 第一个数字 | |
b | No | 第二个数字 | |
expression | No | 数学表达式,如 '2 + 3 * 4' | |
operation | No | 基本运算操作 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"a": {
"description": "第一个数字",
"type": "number"
},
"b": {
"description": "第二个数字",
"type": "number"
},
"expression": {
"description": "数学表达式,如 '2 + 3 * 4'",
"type": "string"
},
"operation": {
"description": "基本运算操作",
"enum": [
"add",
"subtract",
"multiply",
"divide"
],
"type": "string"
}
},
"type": "object"
}