Skip to main content
Glama

dhis2_android_performance_optimization

Optimize DHIS2 Android app performance by improving database queries, image loading, network requests, UI rendering, and memory usage. Configure monitoring, battery optimization, and memory management for enhanced app efficiency.

Instructions

Generate performance optimization patterns and monitoring for DHIS2 Android app

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optimizationAreasYesAreas to optimize
monitoringNo
batterOptimizationNo
memoryManagementNo

Implementation Reference

  • Main handler for the tool in the MCP server request handler switch statement. Calls the performance optimization generator function.
    case 'dhis2_android_performance_optimization':
      const androidPerfArgs = args as any;
      const perfConfig = generatePerformanceOptimizationConfiguration(androidPerfArgs);
      return {
        content: [
          {
            type: 'text',
            text: perfConfig,
          },
        ],
      };
  • The core generator function that produces the performance optimization configuration output as markdown text.
    export function generatePerformanceOptimizationConfiguration(args: any): string {
      return `# DHIS2 Android Performance Optimization Configuration
    
    Optimization areas: ${args.optimizationAreas.join(', ')}
    
    ## Implementation details for performance optimization...
    `;
  • Tool permission registration mapping the tool to required user permission 'canUseMobileFeatures' in the TOOL_PERMISSIONS Map.
    ['dhis2_android_performance_optimization', 'canUseMobileFeatures'],
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool 'generates' patterns and monitoring, implying a read-only or advisory function, but doesn't clarify if this involves creating files, modifying code, or providing recommendations. Critical behavioral traits like side effects, permissions needed, or output format are missing, leaving significant gaps for a tool with complex nested parameters.

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

Conciseness5/5

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

The description is extremely concise with a single sentence: 'Generate performance optimization patterns and monitoring for DHIS2 Android app.' It's front-loaded and wastes no words, making it easy to parse quickly. Every part of the sentence contributes directly to the tool's purpose.

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

Completeness2/5

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

Given the tool's complexity (4 parameters with nested objects, low schema coverage of 25%, no annotations, and no output schema), the description is inadequate. It doesn't explain the tool's behavior, parameter meanings, or expected outcomes. For a tool that likely generates code or configurations for performance optimization, more context is needed to guide effective use, especially without structured support from annotations or output schema.

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

Parameters2/5

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

Schema description coverage is low at 25%, meaning most parameters lack descriptions in the schema. The tool description doesn't compensate by explaining what the four parameters (optimizationAreas, monitoring, batterOptimization, memoryManagement) mean or how they interact. For example, it doesn't clarify if 'batterOptimization' is a typo for 'batteryOptimization' or how these areas relate to the overall optimization process, leaving parameters largely unexplained.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Generate performance optimization patterns and monitoring for DHIS2 Android app.' It specifies the verb ('generate') and resource ('performance optimization patterns and monitoring'), making it easy to understand what the tool does. However, it doesn't explicitly differentiate from sibling tools like 'dhis2_optimize_performance' or other Android-specific tools, which prevents a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, ideal scenarios, or comparisons with sibling tools such as 'dhis2_optimize_performance' or other Android configuration tools. This lack of context makes it challenging for an agent to decide when this tool is appropriate.

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

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