Skip to main content
Glama
marco-looy

Pega DX MCP Server

by marco-looy

get_case_followers

Retrieve the list of users following a case to receive updates and notifications. Provide a case ID to get follower information.

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 is the main handler for the get_case_followers tool. It initializes session config, validates required params (caseID), then delegates to pegaClient.getCaseFollowers().
    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()}*`
          }]
        };
      }
    }
  • getDefinition() defines the MCP tool schema: name is 'get_case_followers', input schema requires 'caseID' string, with optional 'sessionCredentials'.
    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']
        }
      };
    }
  • getCategory() returns 'followers', which groups this tool under the followers category for automatic discovery by ConfigurableToolLoader.
    static getCategory() {
      return 'followers';
    }
  • PegaClient.getCaseFollowers() delegates to the underlying API client (v2 only). It checks feature availability via isFeatureAvailable('followers') and calls this.client.getCaseFollowers(caseID).
    async getCaseFollowers(caseID) {
      if (!this.isFeatureAvailable('followers')) {
        this.throwUnsupportedFeatureError('followers', 'getCaseFollowers');
      }
      return this.client.getCaseFollowers(caseID);
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description only states 'Retrieves information' (implying read-only) but fails to disclose error behaviors, permissions, rate limits, or empty result handling. Insufficient for a retrieval tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with front-loaded purpose. No redundant information, though could be slightly more efficient by merging the second sentence into the first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a simple retrieval tool with 2 well-documented parameters, but lacks output format or behavior details (e.g., empty list vs. error). No output schema means description should compensate, but it does not fully address completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% description coverage. Description adds minor value regarding caseID format ('Complete identifier including spaces') but does not significantly enhance understanding beyond schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb 'Get' and resource 'list of Case Followers' with explicit mention of retrieving users following a case. Differentiates from sibling tools like add_case_followers and delete_case_follower by focusing on read-only retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives (e.g., when to fetch followers vs. add/delete). Only implies usage for receiving notifications, but lacks context on prerequisites or conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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