Tool: get_user_profile
Profilinformationen zu sich selbst abrufen (Name und E‑Mail-Adresse).
Im folgenden Beispiel wird gezeigt, wie Sie mit curl das MCP-Tool get_user_profile aufrufen.
| Curl-Anfrage |
|---|
curl --location 'https://people.googleapis.com/mcp/v1' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --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 }' |
Eingabeschema
Anfragenachricht für GetUserProfile
Ausgabeschema
Antwortnachricht für GetUserProfile
GetUserProfileResponse
| JSON-Darstellung |
|---|
{ "name": string, "emailAddress": string } |
| Felder | |
|---|---|
name |
Der Anzeigename des Nutzers. |
emailAddress |
Die E‑Mail-Adresse des Nutzerkontos. |
Tool-Annotationen
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
https://www.googleapis.com/auth/userinfo.profile