Skip to main content
Glama

adobe_add_rectangle

Destructive

Adds a filled rectangle or mask on a new layer in Photoshop or Illustrator using pixel- or point-based bounds and RGB color.

Instructions

Add a filled motif or mask on a new layer; bounds are x,y,width,height in px/pt.

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": {
      "application": "<application>",
      "session_id": "<session_id>",
      "name": "<name>",
      "bounds": "<bounds>",
      "rgb": "<rgb>"
    },
    "name": "adobe_add_rectangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
rgbYes
nameYes
boundsYes
opacityNo
session_idYes
applicationYes

Output Schema

NameRequiredDescriptionDefault
copyYes
documentYes
retry_safeYes
session_idYes
operation_idYes
source_sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / application / type
      Removed value: -"string"
    • removedOutput schema / properties / retry_safe / type
      Removed value: -"boolean"
  2. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds only that the shape lands on a new layer. It does not disclose whether the operation requires an active session/document, whether it can be undone, or how opacity interacts with existing layer content, which matters for a 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single compact sentence with the bounds semantics front-loaded and no filler. Its brevity reflects under-specification rather than verbosity, but structure itself is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation tool spanning two applications with no schema descriptions, the description is far too thin; it should cover the rgb/opacity semantics and required session context. An output schema exists, so return values need not be explained, but the input side is largely unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description carries the full burden and only explains one: bounds as x,y,width,height with px/pt units, which is genuinely useful. Nothing is said about rgb ordering, name, opacity, application target, or session_id, leaving five parameters undocumented.

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 ('Add') and resource ('filled motif or mask on a new layer'), which is more informative than the bare name 'add_rectangle'. It does not distinguish this from closely related siblings such as adobe_add_path or adobe_apply_mask, so sibling differentiation is missing.

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?

Usage is implied by the phrase 'filled motif or mask on a new layer', suggesting shape/mask creation rather than editing existing layers. There is no explicit when-to-use or when-not-to-use guidance relative to adobe_add_path, adobe_apply_mask, or adobe_edit_layers.

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