Skip to main content
Glama
TiagoDanin

Android Debug Bridge MCP

by TiagoDanin

create_test_folder

Create a test folder for organizing Android app testing files and results through ADB automation.

Instructions

Create a test folder with the specified name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_nameYesName of the test folder to create

Implementation Reference

  • The core handler function implementing the create_test_folder tool logic. It creates a directory for the given test_name under the base test path and returns a confirmation message.
    create_test_folder: async (args: any) => {
      const { test_name } = args as { test_name: string };
      const testPath = path.join(getBaseTestPath(), test_name);
      
      await createDirectory(testPath);
      
      return {
        content: [
          {
            type: 'text',
            text: `Test folder created: ${testPath}`,
          },
        ],
      };
    },
  • The schema definition for the create_test_folder tool, including input validation for the required 'test_name' parameter.
    {
      name: 'create_test_folder',
      description: 'Create a test folder with the specified name',
      inputSchema: {
        type: 'object',
        properties: {
          test_name: {
            type: 'string',
            description: 'Name of the test folder to create',
          },
        },
        required: ['test_name'],
      },
    },
  • src/index.ts:26-30 (registration)
    Registration of the ListTools request handler, which exposes the tool definitions including create_test_folder.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return {
        tools: toolDefinitions,
      };
    });
  • src/index.ts:32-46 (registration)
    Registration of the CallTool request handler, which dynamically invokes the handler for create_test_folder (or other tools) based on the tool name.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
    
      try {
        const handler = toolHandlers[name as keyof typeof toolHandlers];
        if (!handler) {
          throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
        }
    
        return await handler(args);
      } catch (error) {
        const errorMessage = error instanceof Error ? error.message : String(error);
        throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${errorMessage}`);
      }
    });
  • Helper function called by the handler to create the test directory, with cross-platform support.
    export async function createDirectory(dirPath: string): Promise<void> {
      const platform = os.platform();
      
      if (platform === 'win32') {
        execSync(`mkdir "${dirPath}"`, { encoding: 'utf8' });
      } else {
        execSync(`mkdir -p "${dirPath}"`, { encoding: 'utf8' });
      }
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the tool creates a folder, implying a write/mutation operation, but doesn't disclose behavioral traits like permissions needed, whether it overwrites existing folders, error handling, or what happens upon success. This is a significant gap for a mutation tool with zero annotation coverage.

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 a single, efficient sentence with zero waste. It's front-loaded with the core action and resource, making it easy to parse quickly.

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 this is a mutation tool with no annotations, no output schema, and incomplete behavioral disclosure, the description is inadequate. It lacks details on what the tool returns, error conditions, or how it integrates with sibling tools (e.g., for testing workflows), leaving the agent with insufficient context for reliable use.

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?

Schema description coverage is 100%, with the parameter 'test_name' fully documented in the schema. The description adds minimal value beyond the schema by implying the name is used for folder creation, but doesn't provide additional context like naming constraints or examples. Baseline 3 is appropriate when the schema does the heavy lifting.

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 action ('Create') and resource ('test folder'), specifying it creates a folder with a given name. It distinguishes from siblings like capture_screenshot or input_text by focusing on folder creation, though it doesn't explicitly differentiate from other potential folder-related tools (none listed).

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 guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, context (e.g., for testing purposes), or exclusions, leaving the agent to infer usage from the tool name alone.

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/TiagoDanin/Android-Debug-Bridge-MCP'

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