Skip to main content
Glama

add_moodboard_items

Add images, text, links, shapes, and other items to a moodboard file, plus optional connectors, writing directly to disk so open boards re-parse automatically.

Instructions

Add items (and optional connectors between them) to a moodboard file. Writes directly to the .moodboard.md file on disk; the app re-parses open boards automatically. Item types: image, doc, video, text, link, swatch, frame, shape, sticky. Coordinates are world pixels, origin top-left, +x right / +y down — start near (0,0), lay items out in 320px columns with 40px gutters, max 4 items per row, use frames as section backgrounds. Omit w/h to get the type default; omit h on text and sticky notes to fit the box to its text. For diagrams use draw_on_moodboard instead, which needs no coordinates. Image src MUST be "resources/images//" or an https:// URL — never base64, data: or absolute paths (such items are dropped). Connectors may reference items added in this same call with "#" (0-based index into items) or by a name you put in the item's "ref" field. Pass only connectors to join items already on the board. Results include issues: anything that overlaps, is cut off or is hidden behind a box. Items are appended (frames go to the back layer); the file is never rebuilt — use clear_moodboard to start over. Call get_moodboard_guide first.

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": {
      "workspace": "<workspace>",
      "moodboardPath": "<moodboardPath>"
    },
    "name": "add_moodboard_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoItems to add (max 500 per call). Ids are assigned by the system and returned. Optional when connectors are given.
workspaceYesWorkspace path or name
connectorsNoOptional connectors. Endpoints are an existing item id, "#<index>" for an item in this call, { "item": id|"#<index>", "side": "auto"|"top"|"right"|"bottom"|"left" }, or a free point { "x", "y" }. Unknown endpoints and self-loops are dropped.
moodboardPathYesMoodboard file path relative to workspace (e.g., "documents/brand-inspiration.moodboard.md"). The file must already exist — create it with add_document first.
includeSummaryNoAlso return an English summary of the whole board (default: false; read_moodboard always includes it)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so thoroughly. It states that writes hit the .moodboard.md file directly, that open boards re-parse automatically, that appending never rebuilds the file, that invalid image sources are dropped, that unknown connector endpoints and self-loops are dropped, and that returned issues flag overlaps, clipping, and hidden items.

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?

The definition is dense and front-loaded: purpose first, then coordinate rules, source constraints, connector aliasing, and side effects. Every sentence provides useful information, but the single long paragraph carries many independent rules and could be easier to scan if broken into short labeled chunks.

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

Completeness5/5

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

For a mutation tool with no annotations and no output schema, the description covers the necessary prerequisites (board must exist; create with add_document), append semantics, layout conventions, source restrictions, failure/drop behavior, and the returned issue reporting. An agent has enough context to call it correctly without additional sources.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful conventions beyond the schema: world-pixel coordinates with top-left origin, a 320px column layout with 40px gutters, default sizing behavior, and the '#<index>' / 'ref' connector aliasing mechanism. Some parameter detail is still simply mirrored from the schema, so it stops short of a 5.

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 opens with a specific verb and resource: 'Add items (and optional connectors between them) to a moodboard file.' It also distinguishes itself from siblings by naming draw_on_moodboard for diagrams, clear_moodboard for resets, and the fact that this tool appends rather than rebuilding the file.

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

Usage Guidelines5/5

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

It gives explicit routing rules: use draw_on_moodboard for diagrams, call get_moodboard_guide first, pass only connectors to join existing items, and use clear_moodboard to start over. It also explains when items are appropriate versus when the user should create a board first.

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