כלי: get_user_profile
לקבל את פרטי הפרופיל שלכם (שם וכתובת אימייל).
בדוגמה הבאה אפשר לראות איך משתמשים ב-curl כדי להפעיל את כלי ה-MCP get_user_profile.
| בקשת 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 |
השם המוצג של המשתמש. |
emailAddress |
כתובת האימייל בחשבון של המשתמש. |
הערות על כלי
רמז הרסני: ❌ | רמז אידמפוטנטי: ✅ | רמז לקריאה בלבד: ✅ | רמז לעולם פתוח: ❌