Skip to main content
Glama

Background pattern

make_pattern
Read-only

Generates SVG background patterns (grid, dots, diagonal, cross, checker, waves, noise) and CSS to apply them as background-image for UI surfaces.

Instructions

Generates a seamless SVG background pattern (grid, dots, diagonal, cross, checker, waves, noise) and the CSS to use it as background-image.

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": {
      "type": "<type>"
    },
    "name": "make_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoTile size in px
typeYes
colorNo#94a3b8
strokeNoLine width, or dot radius for dots
opacityNo
backgroundNoOptional fill behind the pattern

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A3.5/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 two useful behavioral facts beyond them: the output tiles seamlessly and it returns CSS alongside the SVG. It says nothing about the return shape (string vs. file), determinism of the 'noise' variant, or whether size/stroke interplay is constrained.

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?

A single front-loaded sentence with no filler; the variant list and the CSS output are packed into one line and every clause earns its place.

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 six parameters, no output schema, and half the parameters undocumented, the description should carry more. It tells the agent what is produced (SVG plus CSS) but not in what form, and it leaves the four undocumented parameters entirely to guesswork.

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 50%: size and stroke are described in the schema, while color, opacity, background, and type have no schema text. The description only restates the type enum, which the schema already enumerates, and says nothing about the semantics of color, opacity, or the optional background fill. It therefore does not compensate for the coverage gap.

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 gives a specific verb and resource ('Generates a seamless SVG background pattern') and enumerates the pattern types, so an agent knows exactly what comes back. It doesn't differentiate itself from nearby generators like make_blob or easing_gradient, which is the only thing keeping it from a 5.

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?

Use is implied by the word 'background' and by the mention of CSS background-image, which signals the intended insertion point. There is no explicit when-to-use, when-not-to-use, or pointer to a sibling for adjacent needs such as color palettes or shadows.

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