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

用户的账号电子邮件地址。

工具注释

破坏性提示:❌ | 等幂性提示:✅ | 只读提示:✅ | 开放世界提示:❌