get_available_assignees
Retrieve users eligible for assignment to work packages in a specified OpenProject project to facilitate task delegation.
Instructions
Get list of users who can be assigned to work packages in a project.
Args:
project_id: Project identifier or ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "get_available_assignees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- Core implementation of get_available_assignees tool: fetches available assignees from OpenProject API for a given project using OpenProjectClient.
async def get_available_assignees(project_id: str) -> dict[str, Any]: """Get list of users who can be assigned to work packages in a project. Args: project_id: Project identifier or ID Returns: Collection of available assignee users """ client = OpenProjectClient() try: result = await client.get(f"projects/{project_id}/available_assignees") return result finally: await client.close() - src/openproject_mcp/server.py:127-134 (registration)MCP tool registration and handler wrapper that delegates to the work_packages module implementation.
@mcp.tool() async def get_available_assignees(project_id: str): """Get list of users who can be assigned to work packages in a project. Args: project_id: Project identifier or ID """ return await work_packages.get_available_assignees(project_id=project_id)