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
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>",
"account_id": "<account_id>"
},
"name": "delete_contact"
}
}Input 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"}