Open Context Protocol is live! 🚀 Read the launch post
activityMarkRepoNotificationsAsRead

activityMarkRepoNotificationsAsRead

Mark repository notifications as read

Details

  • Method: PUT
  • Path: /repos/{owner}/{repo}/notifications
  • Operation ID: activity/mark-repo-notifications-as-read

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "last_read_at": {
    "description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('activityMarkRepoNotificationsAsRead', {
    # Add required parameters here
})