Skip to main content
Glama

delete_work_item

Remove a specific work item from Azure DevOps by providing its unique ID to clean up project data and maintain organized workflows.

Instructions

Deletes a work item by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
work_item_idYesThe ID of the work item to delete.

Implementation Reference

  • MCP server handler for 'delete_work_item' tool that calls the client method and formats the response.
    elif name == "delete_work_item": delete_result = self.client.delete_work_item(**arguments) return { "message": f"Work item {arguments['work_item_id']} has been deleted successfully.", "deleted_date": delete_result.deleted_date.isoformat() if delete_result.deleted_date else None, "deleted_by": delete_result.deleted_by.display_name if delete_result.deleted_by else None }
  • Registration of the 'delete_work_item' tool including its name, description, and input schema.
    types.Tool( name="delete_work_item", description="Deletes a work item by its ID.", inputSchema={ "type": "object", "properties": { "work_item_id": { "type": "integer", "description": "The ID of the work item to delete." }, }, "required": ["work_item_id"], "additionalProperties": False } ),
  • Implementation of delete_work_item in AzureDevOpsClient class that invokes the Azure DevOps Work Item Tracking client to delete the work item.
    def delete_work_item(self, work_item_id): return self.work_item_tracking_client.delete_work_item(id=work_item_id)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xrmghost/mcp-azure-devops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server