Skip to main content
Glama

get_attribute

Retrieves the value of a specified attribute from a page element selected by CSS selector, enabling browser automation checks and data extraction.

Instructions

Get attributes (alias)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes
attributeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.3.0

TDQS

D1.5/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says "Get attributes (alias)" and says nothing about read-only behavior, return format, error handling, or whether any state is affected.

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

Conciseness2/5

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

The description is very short, but it is under-specified rather than concise. A single vague fragment does not front-load useful information or earn its place against the tool's two required parameters.

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

Completeness1/5

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

For a tool with two undocumented parameters, no annotations, and no output schema, the description is completely inadequate. It omits parameter meaning, return values, and any usage context needed to invoke the tool correctly.

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%, and the description does not explain either required parameter. It mentions attributes generally but provides no meaning for selector or attribute, including expected syntax or accepted values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says "Get attributes (alias)", which only partially restates the tool name and leaves the actual resource ambiguous. It does not explain that it retrieves an element attribute by selector, nor does it distinguish itself from sibling tools such as get_text, get_html, or get_url.

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?

There is no guidance about when to use this tool instead of alternatives. With many sibling tools that also retrieve page data, the absence of any routing or context leaves the agent to infer usage entirely.

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