Skip to main content
Glama

Layered shadows

make_shadows
Read-only

Generate xs–2xl elevation shadows using stacked layers and background-hue tinting for natural depth in UI components.

Instructions

Generates elevation shadows (xs to 2xl) built from several stacked layers, which look closer to real light than a single blur. Tint them with the background hue for a more natural result.

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": "make_shadows"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNoShadow color in hex#0f172a
styleNosoft
levelsNo
intensityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that output is composed of multiple stacked layers and is qualitatively more realistic than a single blur, which is useful context, but it never says what is actually returned (CSS box-shadow strings? tokens?) or how the layers scale with the default level count.

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?

Two short sentences, front-loaded with what is produced and followed by an actionable tip; nothing is redundant. The clause 'which look closer to real light than a single blur' is slightly promotional rather than operational, costing a point.

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 small, single-purpose generator with no output schema, the description covers what it makes and one practical usage tip, which is largely sufficient. The main shortfall is that it does not describe the return value's format or clarify the relationship between the 'xs to 2xl' scale and the numeric 'levels'/'intensity' controls.

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 only 25% across four parameters, so the description ideally should compensate. It only hints at the color parameter ('tint them with the background hue'); style, levels, and intensity are never explained, and 'xs to 2xl' ambiguously suggests a size scale distinct from the integer 'levels' parameter, which is the number of stacked layers.

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 uses a specific verb and resource — 'Generates elevation shadows' — and adds scope ('xs to 2xl') plus a concrete technique ('several stacked layers'). It is clear what the tool produces, though it never names a sibling to distinguish itself from, relying instead on the fact that no other shadow tool exists in the catalog.

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?

The only guidance is a stylistic tip ('Tint them with the background hue for a more natural result'), which is a how-to, not a when-to-use. There is no statement of when this tool is appropriate versus alternatives like make_palette or spacing_scale, and no prerequisites or exclusions are given.

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