Skip to main content
Glama

Get a site's DESIGN.md

extract_design_md
Read-onlyIdempotent

Use when the user wants a site's DESIGN.md - the open design-system file (Google's format) that coding agents such as Claude Code, Cursor, Codex, Google Stitch and Claude Design read to build in a given style - or asks to make their project, agent or app 'follow', 'use' or 'match' a website's design. Returns one markdown file: YAML front matter with the color, typography, rounded, spacing and component tokens, then Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components and Do's and Don'ts. Built only from what the page declares; values the page does not give are left out, never guessed. Save designMd as DESIGN.md in the project root exactly as returned. Not for: rebuilding a section (use extract_code) or every token with usage counts (use extract_design_tokens). 20 credits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "extract_design_md"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe website URL
freshNoSkip the 24-hour cache and re-extract the live page - use when the site just changed and a cached result would be stale. Charged normally; the fresh result replaces the cached copy.
renderNoForce a real browser so the page's JavaScript runs before it is read. Slower, and adds 5 credits. Usually not needed: when the plain read comes back as a JavaScript app shell or the site refuses it (401/403/406) or timed out, the server already re-runs the page in a browser by itself at no extra cost, and usage.autoRender says so. Pass it for images, videos or Lottie that only load on scroll, with screenshot=true, or when a result is still thin after that automatic pass. If a 403 says the browser was refused too, the site cannot be extracted - do not retry. extract_code always runs in a real browser at no extra cost, so render=true is not needed there (only together with screenshot=true). On extract_design_tokens, render=true only permits the browser: the plain read still runs first, and the 5 credits are charged only if the browser was actually needed.
response_formatNoHow much to return. 'concise' keeps lists to 10 entries and strings short - right for a summary or a chat answer. 'detailed' returns everything the tool has (same as limit=200 + full_output=true). Omit for the default, which fits a typical chat context. The generated code is never trimmed in any mode.

Output Schema

NameRequiredDescriptionDefault
urlYes
noteNoPresent when only half the page could be read (the brand or the stylesheet): says which parts the file leaves out
usageNoCredit usage for the authed key (spent, remaining, monthly limit).
designMdNoThe complete DESIGN.md file, never trimmed. Save it as DESIGN.md as-is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and open-world, so safety is covered; the description still adds cost ("20 credits"), a fidelity guarantee ("Built only from what the page declares; values the page does not give are left out, never guessed"), and an operational instruction to save `designMd` verbatim as DESIGN.md. Those are details the structured fields cannot convey.

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?

Front-loaded with the trigger condition and the returned structure before the exclusions and the save instruction, so an agent can stop reading early. The opening sentence is long and carries a parenthetical list of consuming agents (Claude Code, Cursor, Codex, Stitch) that is informative but slightly padded.

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

Completeness5/5

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

An output schema exists, yet the description still summarizes the file's section layout and fidelity rules, which is genuinely useful for a markdown-producing tool. Combined with the cost note and the negative routing, nothing an agent needs to call this correctly is missing.

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 100% and the `fresh`, `render` and `response_format` descriptions are already highly detailed in the schema, so the baseline of 3 applies. The description itself adds no parameter-level meaning beyond the instruction to save `designMd` exactly as returned.

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?

States a specific verb and resource ("a site's DESIGN.md") and immediately defines the artifact: an open design-system file in Google's format. It also names the concrete return structure (YAML front matter plus Overview, Colors, Typography, etc.), so an agent knows exactly what comes back without opening the output schema.

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

Usage Guidelines5/5

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

Gives explicit trigger phrasing ("make their project, agent or app 'follow', 'use' or 'match' a website's design") and an explicit negative boundary with named alternatives: "Not for: rebuilding a section (use extract_code) or every token with usage counts (use extract_design_tokens)." Both the when and the when-not are stated rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.