Skip to main content
Glama

get_attributes

Retrieve attribute values from a webpage element, either a single specified attribute or all attributes as a dictionary when no attribute is specified.

Instructions

Get one attribute's value from an element, or all of its attributes as a dict if attribute isn't given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes
attributeNo
Behavior3/5

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

The description discloses the core return behavior: a single attribute value when `attribute` is provided, and a dict of all attributes when it is not. However, with no annotations, it does not explain what happens when the element or attribute is missing, or whether multiple matching elements cause an error, leaving the behavioral picture incomplete.

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 front-loaded sentence with no filler or repetition of schema fields. Every clause adds meaning, and the conditional behavior is packed cleanly at the end.

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

Completeness3/5

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

The description adequately covers the main action and the optional-parameter behavior for a simple getter tool. However, since there is no output schema and no annotations, it omits explicit return-type details for a single attribute, error behavior, and element-match rules, so it is only minimally complete.

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 0%, so the description needed to compensate. It does clarify the optional `attribute` parameter and its default effect, but it does not explain `selector` syntax or matching semantics beyond the parameter name, leaving one of two parameters only partially documented.

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 a specific verb/resource pair: getting an attribute value from an element, with a second mode for returning all attributes as a dict when `attribute` is omitted. It does not explicitly name or differentiate sibling tools, so the purpose is clear but sibling differentiation is left to the agent.

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 versus siblings like find_elements, get_page_content, or check_state. The conditional about `attribute` describes parameter behavior, not usage context or exclusion criteria, so an agent must infer the appropriate use case from the tool name and description alone.

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/seleniumbase/seleniumbase-mcp'

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