delete_contact
Remove a specific contact by providing the contact ID and account ID using the Microsoft MCP server. Simplify contact management by deleting unnecessary entries.
Instructions
Delete a contact
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| contact_id | Yes |
Implementation Reference
- src/microsoft_mcp/tools.py:709-714 (handler)The handler function for the 'delete_contact' tool. It deletes the specified contact using the Microsoft Graph API by sending a DELETE request to /me/contacts/{contact_id}.@mcp.tool def delete_contact(contact_id: str, account_id: str) -> dict[str, str]: """Delete a contact""" graph.request("DELETE", f"/me/contacts/{contact_id}", account_id) return {"status": "deleted"}