Skip to main content
Glama

adobe_apply_mask

Destructive

Apply a retained named path as a Photoshop layer mask or Illustrator clipping group, so existing layer content can be shaped without redrawing the path.

Instructions

Apply a retained named path as a PS layer mask or Illustrator clipping group.

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>",
      "layer_path": "<layer_path>",
      "expected_name": "<expected_name>",
      "path_name": "<path_name>"
    },
    "name": "adobe_apply_mask"
  }
}

Input Schema

NameRequiredDescriptionDefault
path_nameYes
layer_pathYes
session_idYes
applicationYes
expected_nameYes

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 flag destructiveHint=true, so the description should disclose what is destroyed — e.g., whether an existing layer mask is replaced, whether the retained path is consumed or preserved, and whether the operation is undoable. None of this is stated. The description adds essentially nothing beyond the annotation and the enumeration of two application targets.

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 well-formed sentence with no filler and the core action front-loaded. It is efficient, though arguably too terse given the tool's destructive nature and undocumented parameters, so brevity here trades against completeness.

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?

Output schema exists, so return values needn't be described, but for a destructive, fully-required-5-parameter tool with zero schema documentation the description is thin. It omits preconditions, mask-replacement semantics, and parameter meaning, leaving an agent unable to call it safely without inspecting other tools.

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 five required parameters, so the description carries the full burden and fails to meet it. Only 'path_name' and implicitly 'layer_path' are touched ('named path', 'layer mask'); the meaning of 'expected_name' (a guard against wrong-target layers?), the session_id semantics, and the path-array indexing convention are never explained.

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?

States a specific verb ('apply') and the resource ('retained named path' used as a PS layer mask or Illustrator clipping group), and importantly distinguishes the divergent outcome per application. It does not explicitly differentiate itself from siblings like adobe_add_path or adobe_edit_layers, so it stops short of 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?

Usage is only implied: the phrase 'retained named path' hints the path must already exist via a prior add-path step and that a session/copy is required. There is no explicit when-to-use vs. alternatives guidance (e.g., raster mask vs. clipping group) and no stated prerequisites such as the path existing in the current document.

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