Skip to main content
Glama
baktubak
by baktubak

ap_paint_stroke

Paint a stroke in screen space from normalized 0..1 coordinates, using the active brush on the selected layer according to the current camera view.

Instructions

Paint a stroke in SCREEN space and close it. Coordinates are normalised (0..1) across the viewport, so 0.5,0.5 is the centre and what gets painted depends on the current camera. Paints into the selected layer with the active tool/brush; silently does nothing if no project is open, no layer is selected, or the selected layer is a group. At most 48 points — the whole stroke runs inside one frame.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointsYesStroke path as [[x, y], ...] in normalised 0..1 screen space.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it does so richly. It discloses silent no-op conditions (no project, no selected layer, or a group layer), dependence on the selected layer and active tool/brush, the 48-point cap, and the one-frame execution constraint. This goes well beyond a generic 'paint a stroke' statement.

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?

Every sentence earns its place: the first establishes the core operation, the second explains the coordinate system, the third covers target context and failure behavior, and the final clause adds a hard limit. The density is high but the structure is logical and front-loaded with the most important information.

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?

The description covers coordinate space, no-op conditions, target layer/tool, the 48-point limit, and the single-frame execution, which is nearly complete for a drawing tool. The only minor gap is that it does not explicitly state the return value or whether the operation reports any result, though 'silently does nothing' implies no error is surfaced.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes points as normalized 0..1, but the description adds meaningful semantics beyond the schema: 0.5,0.5 maps to the viewport center, the stroke is automatically closed, and at most 48 points are allowed—a constraint not present in the schema's top-level array definition. This materially improves correct invocation.

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 states a specific action ('Paint a stroke in SCREEN space and close it') on a clear resource, and immediately distinguishes this tool from its sibling ap_paint_stroke_world by emphasizing screen-space normalized coordinates and camera dependence. This makes the tool's identity unmistakable.

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?

The description gives clear context for when this tool applies: when you have normalized screen-space coordinates, and it notes that the painted location depends on the current camera. It does not explicitly name the world-space alternative or say 'use ap_paint_stroke_world for world coordinates,' so it falls just short of an explicit when-not/alternative statement.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/baktubak/armorpaint-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server