Skip to main content
Glama

list_work_package_relations

Retrieve all relationships for a work package to understand task dependencies and connections within OpenProject.

Instructions

Get all relations for a work package.

Args: work_package_id: Work package ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
work_package_idYes

Implementation Reference

  • Core handler function that fetches the list of relations for a given work package ID using the OpenProjectClient.
    async def list_work_package_relations(work_package_id: int) -> dict[str, Any]: """Get all relations for a work package. Args: work_package_id: Work package ID Returns: Collection of relations (parent, blocks, relates, etc.) """ client = OpenProjectClient() try: result = await client.get(f"work_packages/{work_package_id}/relations") return result finally: await client.close()
  • MCP tool registration using @mcp.tool() decorator. This is the entry point for the tool, delegating to the core implementation in relations.py.
    @mcp.tool() async def list_work_package_relations(work_package_id: int): """Get all relations for a work package. Args: work_package_id: Work package ID """ return await relations.list_work_package_relations( 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