Skip to main content
Glama

Add fill

add_fill

Add a solid Fill to a shape group or Contents root, coloring paths that have no fill of their own. Set layer, color, opacity, fill rule, and where it stacks.

Instructions

Add a solid Fill to a shape group (or the Contents root, where it fills every path above it that has no own fill). Items are appended at the bottom of the group, so it renders below existing fills/strokes in that 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": {
      "layer": "<layer>"
    },
    "name": "add_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
nameNoName for the fill item.
colorNoFill color (default white).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
opacityNoOpacity 0-100.
fillRuleNoFill rule for overlapping paths / holes (default nonzero).
compositeNoComposite: below previous (default) or above previous in the same group.
groupPathNoShape group path inside the layer's Contents: '/'-separated Vector Group names (or 1-based indexes), e.g. 'Logo' or 'Logo/Circle'. Omit or '' for the Contents root. A leading 'Contents/' is accepted. Use list_shape_contents to see names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive, non-open-world write; the description adds the genuinely useful behavior that items are appended at the bottom of the group and therefore render below existing fills and strokes. That ordering consequence is not derivable from the annotations or schema. Minor gaps remain around failure cases (e.g., a layer with no Contents) and what is returned.

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 sentences, front-loaded with the action and target, with the rendering consequence as a follow-up. No filler, no restatement of the title.

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 an eight-parameter creation tool with full schema coverage and no output schema, the description covers what is created, where it lands in the stack, and the root-group special case. It leaves out return payload and error conditions, which keeps it from being fully self-sufficient.

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 100%, so every parameter including color, composite, and groupPath is already documented in the schema. The description reinforces the root-versus-group distinction for groupPath but adds no format or default detail beyond what the schema states, so the baseline 3 applies.

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 verb and resource ('Add a solid Fill') and narrows the scope to shape groups or the Contents root. Calling it a 'solid Fill' implicitly separates it from the gradient-fill sibling, so an agent can pick it without opening the schema.

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 clearly says where the fill can be applied (a shape group, or the Contents root with its own cascading rule), which is real guidance for choosing between the two targets. It does not explicitly name add_gradient_fill as the alternative for non-solid fills, so the sibling exclusion is inferred rather than stated.

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

Deploy Server

Other Tools