Skip to main content
Glama

get-element-text

Extract text content from mobile app UI elements using Appium automation. Specify element selector and strategy to retrieve displayed text for testing or data collection.

Instructions

Get text content from a UI element

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesElement selector (e.g., xpath, id)
strategyNoSelector strategy: xpath, id, accessibility id, class name (default: xpath)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure but provides minimal information. It doesn't mention what happens if the element doesn't exist, whether it waits for the element to appear, what format the returned text is in, or any error conditions. For a tool that interacts with UI elements, this leaves significant behavioral unknowns.

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 that directly states the tool's function without unnecessary words. It's appropriately sized for a straightforward tool and gets straight to the point with zero wasted verbiage.

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?

For a tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what the tool returns (text format, null handling), error behavior, or how it differs from similar text-related tools in the extensive sibling list. Given the complexity of UI automation and the many alternative tools available, more context is needed.

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?

The schema description coverage is 100%, with both parameters well-documented in the schema itself. The description adds no additional parameter information beyond what's already in the schema, so it meets the baseline expectation but doesn't provide extra value. The description doesn't explain parameter interactions or provide examples of selector usage.

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 ('Get text content') and target ('from a UI element'), making the purpose immediately understandable. It doesn't specifically differentiate from sibling tools like 'get-element-attributes' or 'find-by-text', but the verb+resource combination is precise enough for basic understanding.

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 about when to use this tool versus alternatives like 'get-element-attributes' (which might include text among other attributes) or 'find-by-text' (which searches for elements containing text). The description offers no context about prerequisites, limitations, or appropriate scenarios for this specific text extraction method.

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/Rahulec08/appium-mcp'

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