mcp-tools / Unofficial /calculate.json
Gamess's picture
add unofficial datasets
88126c7 verified
[
{
"name": "add",
"description": "加法",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"discription":""
},
"b": {
"type": "number",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "subtract",
"description": "减法",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"discription":""
},
"b": {
"type": "number",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "multiply",
"description": "乘法",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"discription":""
},
"b": {
"type": "number",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "divide",
"description": "除法,b不能为0",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"discription":""
},
"b": {
"type": "number",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "sqrt",
"description": "平方根",
"inputSchema": {
"type": "object",
"properties": {
"x": {
"type": "number",
"discription":""
}
},
"required": [
"x"
]
}
},
{
"name": "power",
"description": "a的b次幂",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"discription":""
},
"b": {
"type": "number",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "factorial",
"description": "阶乘",
"inputSchema": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"discription":""
}
},
"required": [
"n"
]
}
},
{
"name": "gcd",
"description": "最大公约数",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "integer",
"discription":""
},
"b": {
"type": "integer",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "lcm",
"description": "最小公倍数",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "integer",
"discription":""
},
"b": {
"type": "integer",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "is_prime",
"description": "判断一个数是否为质数",
"inputSchema": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"discription":""
}
},
"required": [
"n"
]
}
},
{
"name": "fibonacci",
"description": "返回前n项斐波那契数列",
"inputSchema": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"discription":""
}
},
"required": [
"n"
]
}
},
{
"name": "random_int",
"description": "生成[a, b]区间的随机整数",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "integer",
"discription":""
},
"b": {
"type": "integer",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "random_float",
"description": "生成[a, b]区间的随机小数",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"discription":""
},
"b": {
"type": "number",
"discription":""
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "round_number",
"description": "四舍五入到指定小数位",
"inputSchema": {
"type": "object",
"properties": {
"x": {
"type": "number",
"discription":""
},
"ndigits": {
"type": "integer",
"discription":""
}
},
"required": [
"x"
]
}
}
]