update_contact
Modify contact details in Microsoft MCP by specifying contact ID, account ID, and desired updates, ensuring accurate and current contact records.
Instructions
Update contact information
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contact_id": "<contact_id>",
"updates": "<updates>",
"account_id": "<account_id>"
},
"name": "update_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| contact_id | Yes | ||
| updates | Yes |
Implementation Reference
- src/microsoft_mcp/tools.py:698-706 (handler)The handler function for the 'update_contact' MCP tool. It performs a PATCH request to the Microsoft Graph API endpoint /me/contacts/{contact_id} with the provided updates dictionary, returning the result or a status message.
@mcp.tool def update_contact( contact_id: str, updates: dict[str, Any], account_id: str ) -> dict[str, Any]: """Update contact information""" result = graph.request( "PATCH", f"/me/contacts/{contact_id}", account_id, json=updates ) return result or {"status": "updated"}