Open Context Protocol is live! 🚀 Read the launch post

dndEndDnd

Ends the current user’s Do Not Disturb session immediately.

Details

  • Method: POST
  • Path: /dnd.endDnd
  • Operation ID: dnd_endDnd

Parameters

{
  "token": {
    "description": "Authentication token. Requires scope: `dnd:write`",
    "required": true,
    "location": "header",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "Schema for successful response from dnd.endDnd method",
  "properties": {
    "ok": {
      "enum": [
        true
      ],
      "title": "default success response",
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ],
  "title": "dnd.endDnd schema",
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

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

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