Skip to main content
Glama

delete_relation

Remove connections between work packages in OpenProject by specifying the relation ID to delete, helping maintain accurate task relationships.

Instructions

Remove a relation between work packages.

Args: relation_id: Relation ID to delete

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
relation_idYes

Implementation Reference

  • MCP tool handler for 'delete_relation', registered with @mcp.tool() decorator, delegates execution to the relations helper module.
    @mcp.tool() async def delete_relation(relation_id: int): """Remove a relation between work packages. Args: relation_id: Relation ID to delete """ return await relations.delete_relation(relation_id=relation_id)
  • Core helper function implementing the deletion of a relation using OpenProjectClient API.
    async def delete_relation(relation_id: int) -> dict[str, Any]: """Remove a relation between work packages. Args: relation_id: Relation ID to delete Returns: Success confirmation """ client = OpenProjectClient() try: result = await client.delete(f"relations/{relation_id}") return result finally: await client.close()

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