Skip to main content
Glama

erase_stroke

Remove specified strokes from an ink-layer drawing by index; remaining strokes are renumbered, and strokes bordering painted areas are refused to protect artwork.

Instructions

Remove strokes from a drawing on an ink layer by index (from read_drawing). Indices are those BEFORE the call; the remaining strokes are renumbered. A stroke that borders a painted area is refused.

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": {
      "scene": "<scene>",
      "layer": "<layer>",
      "frame": "<frame>",
      "indices": "<indices>"
    },
    "name": "erase_stroke"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameYes
layerYes
sceneYes
indicesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses that indices refer to the pre-call state, that remaining strokes are renumbered, and that bordering strokes are refused. It says nothing about irreversibility/undo, out-of-range or duplicate indices, atomicity of a multi-index erase, or what a refusal returns, which are significant gaps for an unannotated mutation tool.

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?

Three short sentences, front-loaded with the action and index source, then the renumbering caveat and the refusal rule. No filler or redundancy.

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 4-parameter mutation tool with no annotations and no output schema, the description does substantial work: it identifies identifying context (scene/layer/frame), the index basis, and one hard failure mode. Missing irreversibility, error/return behavior, and scene/frame meaning keep it from being fully complete.

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 0%, so the description must compensate; it does well for 'indices' (pre-call numbering, renumbering side effect) and hints that 'layer' is an ink layer. 'scene' and 'frame' are never explained, so two of four required parameters remain semantically opaque.

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 gives a specific verb and resource ('Remove strokes from a drawing on an ink layer') and names the index source ('from read_drawing'), so an agent knows both the operation and where the arguments come from. It is clearly distinct from the drawing/creation siblings without needing their schemas.

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

Usage Guidelines4/5

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

It establishes a workflow (call read_drawing first, then pass those indices) and states a precondition under which the tool refuses (a stroke bordering a painted area). It does not name an alternative removal path or say what to do when a stroke is refused, so it stops short of full when/when-not routing.

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