MCP Tools Reference: people.googleapis.com

工具:get_user_profile

取得自己的個人資料資訊 (姓名和電子郵件地址)。

以下範例示範如何使用 curl 叫用 get_user_profile MCP 工具。

Curl 要求
curl --location 'https://people.googleapis.com/mcp/v1' \
--header 'content-type: application/json' \
--header 'accept: application/json, text/event-stream' \
--data '{
  "method": "tools/call",
  "params": {
    "name": "get_user_profile",
    "arguments": {
      // provide these details according to the tool MCP specification
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}'
                

輸入內容的結構定義

GetUserProfile 的要求訊息。

輸出內容的結構定義

GetUserProfile 的回應訊息。

GetUserProfileResponse

JSON 表示法
{
  "name": string,
  "emailAddress": string
}
欄位
name

string

使用者的顯示名稱。

emailAddress

string

使用者的帳戶電子郵件地址。

工具註解

破壞性提示:❌ | 等冪提示:✅ | 唯讀提示:✅ | 開放世界提示:❌