Skip to main content
Glama

webscrape.extractDesign

Read-only

Analyze a webpage's static HTML to extract design tokens (colors, fonts, sizes, spacing) and layout patterns, identifying its design system without JS rendering.

Instructions

Analyze a webpage and extract its design system: colors, fonts, font sizes, spacing values, layout patterns (flexbox/grid usage), and component class name patterns. Uses static HTML fetch (does not render JavaScript).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to analyze

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fontsNo
colorsNo
layout_hintsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already signal read-only and non-destructive behavior. The description adds a meaningful limitation—'does not render JavaScript'—which agents need to know before trusting the extracted design system. This goes beyond what annotations provide.

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, no filler. The core purpose and extracted items are front-loaded, and the critical rendering limitation is stated concisely at the end. Every part earns its place.

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

Completeness4/5

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

For a one-parameter read-only tool with an output schema and safety annotations, the description is largely complete. The only notable omission is explicit guidance to use the generic webscrape.scrape sibling when JavaScript rendering is required.

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 the single parameter 'url' is already described as 'The URL to analyze'. The description adds no further semantic detail beyond referring to a 'webpage', so the baseline of 3 is appropriate.

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 states a specific action ('Analyze a webpage and extract its design system') and enumerates concrete outputs (colors, fonts, font sizes, spacing, layout patterns, class names). This makes it clearly distinguishable from the sibling webscrape.scrape without needing to open the schema.

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

Usage Guidelines3/5

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

The static-HTML caveat implies the intended context, but the description does not explicitly say when to use this tool versus webscrape.scrape or how to handle pages requiring JavaScript rendering. Usage is implied rather than directly guided.

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