Skip to main content
Glama

Define brush

define_brush

Save a persistent custom brush preset by inheriting a base preset and overriding parameters, so you can reuse it by name in later strokes and sessions.

Instructions

Save a custom brush preset (persisted across sessions) built on a base preset plus parameter overrides. Use its name as brush afterwards.

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": {
      "name": "<name>",
      "params": "<params>"
    },
    "name": "define_brush"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoPreset/custom brush to inherit from
nameYes
deleteNoDelete this custom brush instead
paramsYesParameter overrides
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden and does add real value by stating that presets are persisted across sessions. It omits other important behaviors: what happens when a name collides with an existing custom brush (overwrite vs error), that the same tool can delete a brush via `delete`, and whether any permissions or limits apply.

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 short sentences, front-loaded with the core action and ending with the practical follow-up. No filler or repetition of schema content.

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?

For a tool with a deep nested parameter object and no output schema, the description covers the essential creation story and persistence. It falls short on name-collision/overwrite behavior and on the fact that this same endpoint deletes brushes, both of which affect how an agent should call it.

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 60% and the nested params object is documented in exceptional detail, so the baseline is 3. The description adds the conceptual relationship between `base` (inherit) and `params` (overrides), but says nothing about `name` semantics (uniqueness/collision) or the `delete` mode switch.

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 ('Save a custom brush preset') and clarifies that it is built from a base preset plus overrides, which distinguishes it from a plain drawing/stroke tool. It does not explicitly contrast with the sibling list_brushes, but the create-vs-list distinction is inferable from the verb.

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 its name as `brush` afterwards' gives a concrete follow-on usage step, which is genuinely helpful. However, there is no guidance on when to define a new brush versus reusing an existing preset, and no mention of the deletion mode even though the schema exposes a `delete` flag.

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