delete_work_item_property
Remove a specified property from a work item type in a project by providing the project, type, and property IDs.
Instructions
Delete a work item property by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | UUID of the project | |
| type_id | Yes | UUID of the work item type | |
| work_item_property_id | Yes | UUID of the property |
Implementation Reference
- The actual handler function that implements the 'delete_work_item_property' tool. It gets the Plane client context and calls client.work_item_properties.delete() to delete a work item property by ID.
@mcp.tool() def delete_work_item_property( project_id: str, type_id: str, work_item_property_id: str, ) -> None: """ Delete a work item property by ID. Args: workspace_slug: The workspace slug identifier project_id: UUID of the project type_id: UUID of the work item type work_item_property_id: UUID of the property """ client, workspace_slug = get_plane_client_context() client.work_item_properties.delete( workspace_slug=workspace_slug, project_id=project_id, type_id=type_id, work_item_property_id=work_item_property_id, ) - plane_mcp/tools/work_item_properties.py:22-23 (registration)The registration function that wraps all work item property tools. The @mcp.tool() decorator on line 255 registers 'delete_work_item_property' as an MCP tool.
def register_work_item_property_tools(mcp: FastMCP) -> None: """Register all work item property-related tools with the MCP server.""" - The input schema for the tool - takes project_id (str), type_id (str), and work_item_property_id (str) as parameters. Returns None.
def delete_work_item_property( project_id: str, type_id: str, work_item_property_id: str, ) -> None: - Uses the 'get_plane_client_context' helper function to get the authenticated Plane client and workspace slug.
client, workspace_slug = get_plane_client_context() client.work_item_properties.delete( workspace_slug=workspace_slug, project_id=project_id, type_id=type_id, work_item_property_id=work_item_property_id, )