Skip to main content
Glama

delete_work_package

Remove a work package permanently from OpenProject by specifying its ID. This action deletes the task and its associated data.

Instructions

Permanently delete a work package.

Args: work_package_id: Work package ID to delete

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
work_package_idYes

Implementation Reference

  • Core implementation of delete_work_package that performs the actual API DELETE call to OpenProject.
    async def delete_work_package(work_package_id: int) -> dict[str, Any]: """Permanently delete a work package. Args: work_package_id: Work package ID to delete Returns: Success confirmation """ client = OpenProjectClient() try: result = await client.delete(f"work_packages/{work_package_id}") return result finally: await client.close()
  • MCP tool registration with @mcp.tool() decorator and wrapper handler that delegates to the work_packages module.
    @mcp.tool() async def delete_work_package(work_package_id: int): """Permanently delete a work package. Args: work_package_id: Work package ID to delete """ return await work_packages.delete_work_package(work_package_id=work_package_id)
  • MCP server handler function for the 'delete_work_package' tool.
    async def delete_work_package(work_package_id: int): """Permanently delete a work package. Args: work_package_id: Work package ID to delete """ return await work_packages.delete_work_package(work_package_id=work_package_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/dev-in-black/openproject-mcp'

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