Skip to main content
Glama

css.list_stylesheets

Read-only

Lists stylesheets loaded by a page, including rule counts and cross-origin status, so you can inspect CSS sources and diagnose blocked or missing styles.

Instructions

Stylesheets loaded by the document, with rule counts and cross-origin status.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "css.list_stylesheets"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and network reach are covered structurally. The description adds useful return-shape context (rule counts and cross-origin status) that annotations cannot convey, but says nothing about ordering, truncation, or how cross-origin sheets are reported when their rules are inaccessible.

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?

A single tight sentence with no filler, and the most decision-relevant detail (cross-origin status) is present. The only weakness is that it is a fragment rather than a front-loaded statement of the action.

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?

With no output schema, the description carries the burden of explaining return values, and it does so only partially: it mentions rule counts and cross-origin status but not the shape, ordering, or what happens to opaque cross-origin sheets. For a simple two-param read tool this is adequate but thin.

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% and both parameters (target_id, browser_id) are fully documented in the schema, so the baseline is 3. The description adds no parameter meaning beyond that, which is acceptable given the schema carries the load.

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

Purpose3/5

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

The description names the resource (stylesheets loaded by the document) and adds the payload contents (rule counts, cross-origin status), but it is a noun phrase with no verb and never distinguishes itself from nearby siblings such as css.get_stylesheet_text or css.matched_rules. An agent can guess it is a listing operation from the name, not from the description.

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 when-to-use guidance at all: no statement of when to prefer this over fetching stylesheet text or matched rules, no prerequisites, no note about when the cross-origin/rule-count data matters. The only usage signal is the implicit 'loaded by the document' scope.

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

Deploy Server

Other Tools