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
Input Schema
TableJSON 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"}