Skip to main content
Glama

dhis2_get_composition_examples

Learn to integrate this DHIS2 MCP server with other MCP servers through practical examples that demonstrate cross-server functionality.

Instructions

Get examples of how to integrate this DHIS2 MCP server with other MCP servers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for dhis2_get_composition_examples tool. Calls generateIntegrationExamples() from MultiServerComposition instance and returns the generated markdown content.
    case 'dhis2_get_composition_examples':
      const examples = multiServerComposition.generateIntegrationExamples();
      
      auditLogger.log({
        toolName: name,
        parameters: {},
        outcome: 'success',
        dhis2Instance: dhis2Client?.baseURL,
        userId: currentUser?.username,
        executionTime: Date.now() - startTime
      });
      
      return {
        content: [{
          type: 'text',
          text: examples
        }]
      };
  • Core helper function that generates comprehensive Markdown documentation including compatible server integrations, workflow examples with Mermaid diagrams, JSON workflow templates, and integration benefits for multi-server compositions.
      generateIntegrationExamples(): string {
        return `# DHIS2 MCP Server - Multi-Server Integration Examples
    
    ## πŸ”— Compatible Server Integrations
    
    ${this.compatibleServers.size > 0 ? 
      Array.from(this.compatibleServers.values()).map(server => 
        `### ${server.name}
    **Capabilities**: ${server.capabilities.map(cap => cap.domain).join(', ')}
    **Version**: ${server.version}
    `).join('\n') : 'No compatible servers registered yet.'}
    
    ## πŸš€ Workflow Examples
    
    ### 1. Data Quality Monitoring
    \`\`\`mermaid
    graph LR
        A[DHIS2: Run Validation] --> B[GitHub: Create Issue]
        B --> C[Slack: Notify Team]
        C --> D[Database: Log Issue]
    \`\`\`
    
    ### 2. Development Pipeline
    \`\`\`mermaid
    graph LR
        A[DHIS2: Generate App] --> B[Git: Commit Changes]
        B --> C[GitHub: Create PR]
        C --> D[Slack: Request Review]
    \`\`\`
    
    ### 3. Data Export Pipeline
    \`\`\`mermaid
    graph LR
        A[DHIS2: Export Data] --> B[Database: Store Copy]
        B --> C[Email: Send Report]
        C --> D[Filesystem: Archive]
    \`\`\`
    
    ## πŸ› οΈ Cross-Server Tool Examples
    
    ### Data Quality β†’ Issue Tracking
    \`\`\`json
    {
      "workflow": "data-quality-monitoring",
      "steps": [
        {
          "server": "dhis2-mcp",
          "tool": "dhis2_run_validation",
          "parameters": { "orgUnit": "country-level" }
        },
        {
          "server": "github-mcp", 
          "tool": "create_issue",
          "parameters": {
            "title": "Data Quality Issues Found",
            "body": "{{previous.validationResults}}"
          }
        }
      ]
    }
    \`\`\`
    
    ### Development β†’ Deployment
    \`\`\`json
    {
      "workflow": "app-deployment",
      "steps": [
        {
          "server": "dhis2-mcp",
          "tool": "dhis2_init_webapp", 
          "parameters": { "appName": "patient-tracker" }
        },
        {
          "server": "git-mcp",
          "tool": "commit_changes",
          "parameters": { "message": "Initial app scaffolding" }
        },
        {
          "server": "slack-mcp",
          "tool": "send_message", 
          "parameters": { "message": "New DHIS2 app created: {{step1.appName}}" }
        }
      ]
    }
    \`\`\`
    
    ## πŸ“Š Integration Benefits
    
    1. **Automated Workflows**: Chain DHIS2 operations with external systems
    2. **Enhanced Monitoring**: Connect DHIS2 analytics to notification systems
    3. **Development Integration**: Seamless connection to development toolchains
    4. **Data Pipeline**: Build comprehensive data processing workflows
    5. **Quality Assurance**: Automated testing and validation across systems
    
    ## πŸ”§ Setup Instructions
    
    1. **Start DHIS2 MCP Server**: This server (already running)
    2. **Start Compatible Servers**: GitHub, Slack, Database, etc.
    3. **Configure Client**: Point MCP client to all servers
    4. **Define Workflows**: Create cross-server automation rules
    5. **Test Integration**: Verify data flows between servers
    
    ## πŸ“ Data Exchange Format
    
    All data exported from DHIS2 MCP follows this standard format:
    
    \`\`\`json
    {
      "sourceServer": "dhis2-mcp",
      "timestamp": "2024-01-01T00:00:00.000Z",
      "operationType": "export",
      "metadata": {
        "toolName": "dhis2_get_analytics", 
        "dhis2Instance": "https://play.dhis2.org",
        "dataType": "analytics"
      },
      "data": {
        "/* DHIS2 response data */"
      }
    }
    \`\`\`
    
    This standardized format ensures seamless integration with other MCP servers.`;

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/Dradebo/dhis2-mcp'

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