Open Context Protocol is live! 🚀 Read the launch post

getFolderOperations

Get permitted operations for a folder

Details

  • Method: GET
  • Path: /folders/{id}/operations
  • Operation ID: getFolderOperations

Parameters

{
  "id": {
    "description": "The ID of the folder for which operations should be returned.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  }
}

Response Schema

{
  "description": "The list of operations permitted on entity.",
  "type": "object",
  "properties": {
    "operations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "operation": {
            "description": "The type of operation.",
            "type": "string"
          },
          "targetType": {
            "description": "The type of entity the operation type targets.",
            "type": "string"
          }
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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