delete_employee
Remove an employee record from the system by specifying their unique ID. This tool permanently deletes employee data from the database.
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": {
"id": "<id>"
},
"name": "delete_employee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- main.py:73-77 (handler)Handler function for the 'delete_employee' tool. It is registered via @mcp.tool() decorator and implements the logic to delete an employee by ID using a DELETE HTTP request to the API endpoint via the shared make_request helper.
@mcp.tool() async def delete_employee(id: int) -> dict: url = f"{URL_BASE}/employees/{id}" response = await make_request(url, "DELETE") return response