Skip to main content
Glama
lazy-dinosaur

electron-test-mcp

getAttribute

Retrieve the value of a specified attribute from an element identified by a CSS selector during Electron app testing.

Instructions

Get attribute value of an element

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector
attributeYesAttribute name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but discloses almost nothing. 'Get' implies a read, but it does not say what happens if the attribute is absent (null vs throw), whether it waits for the element, or whether the value is resolved live.

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?

A single efficient sentence with the operation front-loaded and zero filler. Nothing is wasted for a two-parameter getter.

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?

No output schema and no annotations, so the description should explain the return value (e.g., string or null when missing) and element-resolution behavior. For a getter tool this key information is absent, leaving the agent guessing about the result contract.

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%, so both 'selector' and 'attribute' are already documented in the schema. The description adds no syntax or formatting detail beyond what the schema provides, so the baseline of 3 applies.

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?

States a specific verb ('Get') and resource ('attribute value of an element'), so an agent understands the operation. However, it does not distinguish itself from the sibling getText (which retrieves text content) or explain how attribute-based retrieval differs, so differentiation is left to inference.

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 when-to-use guidance is given. It does not say when to prefer this over getText, evaluate, or snapshot, nor does it state prerequisites such as the element needing to exist or be attached.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.