Tool tree
sanshixiong.github.io exposes WebMCP tools to AI agents.
Implementation
gradeNot graded
gradeNot graded
calculatorAction
执行数学计算,支持加减乘除四种运算,用于回答数学计算相关问题
View tool JSON
{
"name": "calculator",
"kind": "act",
"impl": "imperative",
"description": "执行数学计算,支持加减乘除四种运算,用于回答数学计算相关问题",
"inputSchema": {
"type": "object",
"properties": {
"num1": {
"type": "number",
"description": "第一个数字"
},
"num2": {
"type": "number",
"description": "第二个数字"
},
"operation": {
"type": "string",
"description": "运算类型:add(加), subtract(减), multiply(乘), divide(除)",
"enum": [
"add",
"subtract",
"multiply",
"divide"
]
}
},
"required": [
"num1",
"num2",
"operation"
],
"additionalProperties": false
},
"page": "/webmcp-demo/"
}getWeatherAnswer
获取指定城市的模拟天气数据,包括温度、天气状况、湿度等信息
View tool JSON
{
"name": "getWeather",
"kind": "answer",
"impl": "imperative",
"description": "获取指定城市的模拟天气数据,包括温度、天气状况、湿度等信息",
"inputSchema": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "城市名称,如北京、上海、广州"
}
},
"required": [
"city"
],
"additionalProperties": false
},
"page": "/webmcp-demo/"
}todoManagerAction
管理待办事项列表,支持添加、删除、查看待办事项
View tool JSON
{
"name": "todoManager",
"kind": "act",
"impl": "imperative",
"description": "管理待办事项列表,支持添加、删除、查看待办事项",
"inputSchema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "操作类型:add(添加), remove(删除), list(列表)",
"enum": [
"add",
"remove",
"list"
]
},
"text": {
"type": "string",
"description": "待办事项文本(仅add操作需要)"
},
"index": {
"type": "number",
"description": "待办事项索引(仅remove操作需要)"
}
},
"required": [
"action"
],
"additionalProperties": false
},
"page": "/webmcp-demo/"
}textProcessorAction
对文本进行各种处理操作,包括大小写转换、反转、长度计算
View tool JSON
{
"name": "textProcessor",
"kind": "act",
"impl": "imperative",
"description": "对文本进行各种处理操作,包括大小写转换、反转、长度计算",
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "要处理的文本内容"
},
"operation": {
"type": "string",
"description": "处理类型:uppercase(大写), lowercase(小写), reverse(反转), length(长度)",
"enum": [
"uppercase",
"lowercase",
"reverse",
"length"
]
}
},
"required": [
"text",
"operation"
],
"additionalProperties": false
},
"page": "/webmcp-demo/"
}randomGeneratorAction
生成指定范围内的随机整数,适用于随机选择、抽奖等场景
View tool JSON
{
"name": "randomGenerator",
"kind": "act",
"impl": "imperative",
"description": "生成指定范围内的随机整数,适用于随机选择、抽奖等场景",
"inputSchema": {
"type": "object",
"properties": {
"min": {
"type": "number",
"description": "随机数最小值(整数)"
},
"max": {
"type": "number",
"description": "随机数最大值(整数)"
}
},
"required": [
"min",
"max"
],
"additionalProperties": false
},
"page": "/webmcp-demo/"
}systemInfoAnswer
获取浏览器和设备的系统信息,用于了解运行环境
View tool JSON
{
"name": "systemInfo",
"kind": "answer",
"impl": "imperative",
"description": "获取浏览器和设备的系统信息,用于了解运行环境",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/webmcp-demo/"
}