


{
"name": "query_database",
"description": "执行只读SQL查询,从数据库获取数据。仅支持SELECT语句,禁止INSERT/UPDATE/DELETE。",
"parameters": {
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "SQL查询语句,必须是SELECT语句,例如:SELECT * FROM sales WHERE date >= '2024-01-01'"
},
"limit": {
"type": "integer",
"description": "返回结果的最大行数,默认100,最大1000"
}
{
"name": "send_email",
"description": "发送邮件给指定收件人。支持纯文本和HTML格式,必须使用预定义模板。",
"parameters": {
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "收件人邮箱地址,例如:user@example.com"
},
"subject": {
"type": "string",
"description": "邮件主题,不超过100字符"
},
{
"name": "file_operations",
"description": "读取和写入文件。支持读取Excel/CSV/JSON,写入文本报告。仅限指定目录。",
"parameters": {
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": ["read", "write"],
"description": "操作类型:read读取文件,write写入文件"
},
"file_path": {
"type": "string",
"description": "文件路径,必须在允许的工作目录内,例如:/data/reports/sales.csv"
{
"name": "call_external_api",
"description": "调用第三方API服务。支持GET/POST请求,自动处理认证和重试。",
"parameters": {
"type": "object",
"properties": {
"api_name": {
"type": "string",
"enum": ["weather", "translation", "maps", "exchange_rate"],
"description": "API服务名称"
},
"method": {
"type": "string",
"enum": ["GET", "POST"],
{
"name": "web_search",
"description": "搜索互联网获取信息。返回搜索结果摘要和链接。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "搜索关键词,例如:'2024年AI发展趋势'"
},
"max_results": {
"type": "integer",
"description": "返回结果数量,默认5,最大20",
"default": 5
