Skip to main content
Glama
marco-looy

Pega DX MCP Server

by marco-looy

get_case_followers

Retrieve users following a Pega case to view notification recipients and track updates. Input a case ID to get follower details.

Instructions

Get the list of all the Case Followers. Retrieves information about users who are following a case to receive notifications and updates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseIDYesCase ID. Example: "MYORG-APP-WORK C-1001". Complete identifier including spaces."OSIEO3-DOCSAPP-WORK T-561003". a complete case identifier including spaces and special characters.
sessionCredentialsNoOptional session-specific credentials. If not provided, uses environment variables. Supports two authentication modes: (1) OAuth mode - provide baseUrl, clientId, and clientSecret, or (2) Token mode - provide baseUrl and accessToken.

Implementation Reference

  • The execute method implementing the get_case_followers tool logic: parameter validation, session initialization, and delegation to pegaClient.getCaseFollowers with error handling.
    async execute(params) { const { caseID } = params; let sessionInfo = null; try { sessionInfo = this.initializeSessionConfig(params); // Validate required parameters using base class const requiredValidation = this.validateRequiredParams(params, ['caseID']); if (requiredValidation) { return requiredValidation; } // Execute with standardized error handling return await this.executeWithErrorHandling( `Get Case Followers: ${caseID}`, async () => await this.pegaClient.getCaseFollowers(caseID.trim()), { sessionInfo } ); } catch (error) { return { content: [{ type: 'text', text: `## Error: Get Case Followers: ${caseID}\n\n**Unexpected Error**: ${error.message}\n\n${sessionInfo ? `**Session**: ${sessionInfo.sessionId} (${sessionInfo.authMode} mode)\n` : ''}*Error occurred at: ${new Date().toISOString()}*` }] }; } }
  • Defines the MCP tool definition including name 'get_case_followers', description, and input schema requiring 'caseID' parameter.
    static getDefinition() { return { name: 'get_case_followers', description: 'Get the list of all the Case Followers. Retrieves information about users who are following a case to receive notifications and updates.', inputSchema: { type: 'object', properties: { caseID: { type: 'string', description: 'Case ID. Example: "MYORG-APP-WORK C-1001". Complete identifier including spaces."OSIEO3-DOCSAPP-WORK T-561003". a complete case identifier including spaces and special characters.' }, sessionCredentials: getSessionCredentialsSchema() }, required: ['caseID'] } }; }
  • PegaClient router method for getCaseFollowers that enforces V2-only availability and delegates to the underlying version-specific client.
    async getCaseFollowers(caseID) { if (!this.isFeatureAvailable('followers')) { this.throwUnsupportedFeatureError('followers', 'getCaseFollowers'); } return this.client.getCaseFollowers(caseID); }

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/marco-looy/pega-dx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server