{
  "description": "神运开放平台只读会员工具（function calling / tool use 定义）。memberId 不在参数里：你的后端从自己的登录会话取出会员 ID 后拼进 x-sy-endpoint.path 再调用，绝不能让模型填写。",
  "docs": "https://docs.byteforge.cn/shenyun/open/recipes/mascot-assets",
  "tools": [
    {
      "name": "get_member_summary",
      "description": "查询当前用户在店里的资产摘要：可用储值、冻结储值、可用优惠券数量和即将过期的券、待核销背包物品、会员等级和距下一级的成长值。用户问“我还有多少钱 / 有什么券 / 什么等级”时优先用它。",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "x-sy-endpoint": {
        "method": "GET",
        "path": "/members/{memberId}/summary",
        "injectFromSession": [
          "memberId"
        ]
      }
    },
    {
      "name": "get_wallet",
      "description": "查询当前用户的储值余额（单位：分）。",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "x-sy-endpoint": {
        "method": "GET",
        "path": "/members/{memberId}/wallet",
        "injectFromSession": [
          "memberId"
        ]
      }
    },
    {
      "name": "list_wallet_transactions",
      "description": "查询当前用户最近的储值流水（充值、消费、退款、赠送）。",
      "input_schema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "format": "int32",
            "description": "每页条数，1~100，默认 20"
          }
        },
        "required": []
      },
      "x-sy-endpoint": {
        "method": "GET",
        "path": "/members/{memberId}/wallet/transactions",
        "injectFromSession": [
          "memberId"
        ]
      }
    },
    {
      "name": "list_coupons",
      "description": "查询当前用户的优惠券。",
      "input_schema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "available 可用 / frozen 占用中 / used 已用 / expired 已过期 / voided 已作废；不传 = 全部"
          },
          "limit": {
            "type": "integer",
            "format": "int32",
            "description": "每页条数，1~100，默认 20"
          }
        },
        "required": []
      },
      "x-sy-endpoint": {
        "method": "GET",
        "path": "/members/{memberId}/coupons",
        "injectFromSession": [
          "memberId"
        ]
      }
    },
    {
      "name": "list_backpack_items",
      "description": "查询当前用户背包里的物品（线下核销的权益）。",
      "input_schema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "pending 待核销 / verified 已核销 / expired 已过期 / cancelled 已取消；不传 = 全部"
          },
          "limit": {
            "type": "integer",
            "format": "int32",
            "description": "每页条数，1~100，默认 20"
          }
        },
        "required": []
      },
      "x-sy-endpoint": {
        "method": "GET",
        "path": "/members/{memberId}/backpack-items",
        "injectFromSession": [
          "memberId"
        ]
      }
    },
    {
      "name": "get_membership",
      "description": "查询当前用户的会员等级、付费会员和成长值。",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "x-sy-endpoint": {
        "method": "GET",
        "path": "/members/{memberId}/membership",
        "injectFromSession": [
          "memberId"
        ]
      }
    }
  ]
}
