Skip to main content
Glama

Mapear elementos mobile (estrutura para testes)

map_mobile_elements

Generate a mobile element mapping template from deep link or app identifiers. Returns Appium Inspector/uiautomator instructions and context for generate_tests, optionally reading an elements JSON file.

Instructions

Gera estrutura/template de elementos para testes mobile. Aceita deep link, appPackage/appActivity (Android) ou bundleId (iOS). Retorna instruções para mapear elementos (Appium Inspector, uiautomator) e template para usar em generate_tests. Se elementsJsonPath fornecido, lê arquivo e formata para contexto.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bundleIdNoiOS: bundle identifier do app.
deepLinkNoDeep link do app (ex: meuapp://login). Indica ambiente mobile.
appPackageNoAndroid: package do app (ex: com.example.app).
appActivityNoAndroid: activity principal (ex: .MainActivity).
elementsJsonPathNoCaminho para arquivo JSON com elementos mapeados (id, text, accessibilityId, xpath).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
elementsNo
environmentNo
instructionsNo
contextForGenerateNoTexto formatado para passar em generate_tests como contexto.
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It states the tool generates a template, returns instructions for using Appium Inspector and uiautomator, and optionally reads a JSON file. It does not mention potential edge cases (e.g., conflicting platform parameters) or explicitly state whether it modifies files or executes tests, leaving some ambiguity.

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 two sentences, front-loaded with the main purpose, and every phrase adds necessary detail. It efficiently covers inputs, outputs, and conditional behavior without unnecessary filler.

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

Completeness4/5

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

Given the tool's moderate complexity (5 optional parameters, platform-specific logic) and presence of an output schema, the description is largely complete. It explains the core workflow and the optional file input. It does not cover edge cases like parameter conflicts, but those are not essential for basic usage.

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

Parameters4/5

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

The input schema already has 100% descriptions for all parameters, giving a baseline of 3. The description adds value by linking parameters to platforms: 'Aceita deep link, appPackage/appActivity (Android) ou bundleId (iOS)' and explaining elementsJsonPath's purpose of reading and formatting a file. This goes beyond the schema and helps select the correct parameter.

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?

The description opens with a specific verb and resource: 'Gera estrutura/template de elementos para testes mobile' (generates structure/template of elements for mobile tests). It clearly distinguishes this from sibling tools like 'generate_tests' by stating the template is for use in generate_tests, positioning it as a preparatory step.

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

Usage Guidelines4/5

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

The description provides clear context on when to use the tool: for generating mobile element mapping structures and instructions. It mentions the optional elementsJsonPath for reading existing mapped elements, implying a conditional workflow. However, it does not explicitly state when not to use it or name alternative tools, only implying the relationship with generate_tests.

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/Wesley-Gomes93/qa-lab-agent-mcp'

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