Skip to main content
Glama
appolabs

Appo MCP

Official
by appolabs

diagnose_issue

Identify and resolve issues with Appo SDK integration by analyzing symptoms, error messages, and platform details to deliver targeted solutions and code fixes.

Instructions

Diagnose common @appolabs/appo SDK integration issues. Provides diagnosis with solutions and code fixes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symptomYesDescription of the issue or error
featureNoSDK feature related to the issue (if known)
errorMessageNoExact error message (if available)
platformNoPlatform where issue occurs

Implementation Reference

  • Main handler function for the diagnose_issue tool. Takes symptom, feature, errorMessage, and platform args. Searches knownIssues for matching symptoms and returns diagnosis results or generic troubleshooting advice.
    export async function diagnoseIssue(
      args: Record<string, unknown>
    ): Promise<{ content: Array<{ type: "text"; text: string }> }> {
      const { symptom, feature, errorMessage, platform } = args as unknown as DiagnoseIssueArgs;
    
      if (!symptom) {
        return {
          content: [
            {
              type: "text",
              text: "Please describe the issue you're experiencing in the `symptom` parameter.",
            },
          ],
        };
      }
    
      // Find matching issues
      const searchTerms = symptom.toLowerCase();
      const matchedIssues = knownIssues.filter((issue) =>
        issue.symptoms.some((s) => searchTerms.includes(s.toLowerCase()))
      );
    
      // Also filter by feature if provided
      const featureIssues = feature
        ? matchedIssues.filter(
            (issue) =>
              issue.title.toLowerCase().includes(feature) ||
              issue.symptoms.some((s) => s.includes(feature))
          )
        : matchedIssues;
    
      const relevantIssues = featureIssues.length > 0 ? featureIssues : matchedIssues;
    
      if (relevantIssues.length === 0) {
        return {
          content: [
            {
              type: "text",
              text: buildGenericDiagnosis(symptom, feature, errorMessage, platform),
            },
          ],
        };
      }
    
      const output = buildDiagnosisOutput(relevantIssues, platform);
    
      return {
        content: [{ type: "text", text: output }],
      };
    }
  • TypeScript interface defining the input arguments for the diagnose_issue tool: symptom (required), feature, errorMessage, and platform (optional).
    interface DiagnoseIssueArgs {
      symptom: string;
      feature?: SdkFeature;
      errorMessage?: string;
      platform?: "ios" | "android" | "web" | "unknown";
    }
  • TypeScript interface defining the structure of known issues: title, symptoms list, causes list, solutions list, and optional code example.
    interface Issue {
      title: string;
      symptoms: string[];
      causes: string[];
      solutions: string[];
      codeExample?: string;
    }
  • Registration of the diagnose_issue tool in the tools array with its name, description, and input schema (JSON Schema format).
    {
      name: "diagnose_issue",
      description:
        "Diagnose common @appolabs/appo SDK integration issues. Provides diagnosis with solutions and code fixes.",
      inputSchema: {
        type: "object",
        properties: {
          symptom: {
            type: "string",
            description: "Description of the issue or error",
          },
          feature: {
            type: "string",
            enum: SDK_FEATURES,
            description: "SDK feature related to the issue (if known)",
          },
          errorMessage: {
            type: "string",
            description: "Exact error message (if available)",
          },
          platform: {
            type: "string",
            enum: ["ios", "android", "web", "unknown"],
            description: "Platform where issue occurs",
          },
        },
        required: ["symptom"],
      },
    },
  • Route in handleToolCall switch statement that dispatches to the diagnoseIssue handler when the tool name matches 'diagnose_issue'.
    case "diagnose_issue":
      return diagnoseIssue(args);
Behavior2/5

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

No annotations provided; description does not disclose if the tool modifies state, requires permissions, or has side effects. Merely states it provides diagnosis, which is vague.

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?

Two concise sentences, no unnecessary words, front-loaded with core purpose.

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?

Describes what the tool provides (diagnosis, solutions, code fixes) but lacks details on output format. Given no output schema, more context on return structure would be helpful.

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 covers all 4 parameters with descriptions (100% coverage), so description need not add more. The description does not repeat or enhance parameter info beyond schema.

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?

Clearly states it diagnoses Appo SDK integration issues and provides solutions/code fixes. Distinguishes from siblings like check_permissions and generate_component.

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. While the context is implied, no when-not-to-use or alternative tool mentions.

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/appolabs/appo-mcp'

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