Skip to main content
Glama

get_activity

Retrieve details of a specific activity in OpenProject by providing its ID to access task updates, comments, or project changes.

Instructions

Get details of a specific activity.

Args: activity_id: Activity ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activity_idYes

Implementation Reference

  • MCP tool registration for get_activity, which delegates to comments.get_activity
    @mcp.tool() async def get_activity(activity_id: int): """Get details of a specific activity. Args: activity_id: Activity ID """ return await comments.get_activity(activity_id=activity_id)
  • Core implementation that fetches the activity details from OpenProject API using the client
    async def get_activity(activity_id: int) -> dict[str, Any]: """Get details of a specific activity. Args: activity_id: Activity ID Returns: Activity object with details """ client = OpenProjectClient() try: result = await client.get(f"activities/{activity_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