Skip to main content
Glama
cuber-it

mcp-playwright-tools

by cuber-it

describe_element

Retrieve ARIA role, visible text, and attributes of a web element using a CSS or XPath selector to inspect its accessibility and semantic properties.

Instructions

Get ARIA role, text, and attributes of an element

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does not mention what happens if the element is not found, whether it works on hidden elements, or any side effects. The description is minimal and lacks important details for safe invocation.

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

Conciseness4/5

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

The description is a single concise sentence that front-loads the action. However, it is too short and omits crucial details, making it less efficient for the agent. Still, it avoids fluff.

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 has only one parameter, an output schema (not shown), and no annotations, the description should cover selector format, return structure, and edge cases. It does not, leaving the agent underinformed.

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

Parameters1/5

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

Schema description coverage is 0%, but the description does not explain what the 'selector' parameter expects (e.g., CSS or XPath). It adds no meaning beyond the schema field name, failing to compensate for the lack of schema documentation.

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 uses the verb 'Get' and specifies the resource 'ARIA role, text, and attributes of an element'. This distinguishes it from sibling tools like get_attribute (single attribute), get_text (just text), and get_aria_snapshot (full accessibility snapshot), as it combines multiple properties.

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 its siblings, such as get_attribute, get_text, or get_aria_snapshot. The description does not clarify scenarios where the combined retrieval is preferred over individual calls.

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/cuber-it/mcp_playwright_tools'

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