Open Context Protocol is live! 🚀 Read the launch post

getProjectRoles

Get project roles for project

Details

  • Method: GET
  • Path: /rest/api/3/project/{projectIdOrKey}/role
  • Operation ID: getProjectRoles

Parameters

{
  "projectIdOrKey": {
    "description": "The project ID or project key (case sensitive).",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": {
    "format": "uri",
    "type": "string"
  },
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

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

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