create_activity
主理人在粗趣小程序上发布新活动。
当用户(主理人)想创建/发布一个活动时调用此工具。
Args:
title: 活动标题,如"周六桌游聚会"
activity_type: 活动类型,如"桌游聚会"、"户外徒步"、"剧本杀/密室"等
date: 活动日期,格式"2026-08-22"
time: 活动时间段,如"14:00-18:00"
location: 活动地点,如"南山区·科兴科学园"
max_participants: 最大参与人数,数字字符串或整数均可,如 "15" 或 15
price: 人均费用(元),数字字符串或整数均可,如 "39" 或 39,免费填 "0" 或 0
description: 活动描述和注意事项
organizer: 主理人名称
Returns:
JSON 字符串,包含活动 ID 和详情链接
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"activity_type": "<activity_type>",
"date": "<date>",
"time": "<time>",
"location": "<location>"
},
"name": "create_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | 活动日期,格式 YYYY-MM-DD | |
| time | Yes | 开始时间,格式 HH:MM,如 19:30 | |
| price | No | 单人价格(元),免费填 0 | 0 |
| title | Yes | 活动标题,一句话说清是什么活动,如「周六南山羽毛球新手局」 | |
| location | Yes | 活动地点,尽量写到区或具体场馆 | |
| organizer | No | 主理人(组织者)称呼或昵称 | |
| description | No | 活动详细介绍,包括流程、适合谁、需要带什么 | |
| activity_type | Yes | 活动类型,如:桌游聚会、徒步、飞盘、羽毛球 | |
| max_participants | No | 人数上限(整数) | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |