Skip to main content
Glama

get_computed_style

Retrieve computed CSS property values for elements matching a selector to programmatically verify rendered styles such as color, font-size, display, and opacity.

Instructions

Get actual rendered CSS property values for elements matching a selector. Verify colors, fonts, spacing, display, opacity programmatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector
propertiesYesCSS properties to read (e.g. ['color', 'font-size', 'display', 'opacity', 'background-color'])
session_idYesSession ID
max_resultsNoMax elements to check (default: 10)
Behavior3/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. It states the tool gets computed styles but omits details such as performance impact, inability to read pseudo-elements, or error handling (e.g., empty selector). This leaves some behavioral gaps.

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?

Two sentences are concise, front-loading the purpose and providing usage examples without any wasted words.

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?

No output schema exists, yet the description does not mention the return format (e.g., a map of property to value). It also omits limitations like selector scope or element visibility. Given the 4-parameter complexity, more completeness 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?

Schema coverage is 100% with parameter descriptions. The description adds no new parameter-level information beyond what the schema already provides, such as format or valid values. Examples given mirror schema examples.

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 clearly states the tool gets actual rendered CSS property values for elements matching a selector, which is a specific verb+resource that distinguishes it from siblings like get_page_elements or check_color_contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear examples of when to use (verify colors, fonts, spacing, etc.) but does not explicitly state when not to use or list alternatives, though the context is sufficient for an agent.

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/segentic-lab/periscope-mcp'

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