Skip to main content
Glama

update_moodboard_items

Patch existing moodboard items by ID to move, resize, retitle, recolor, or relock them while keeping connectors attached; invalid changes are skipped without altering items.

Instructions

Patch existing moodboard items in place by id — move, resize, recaption, retitle, retint, relock or change any field an add_moodboard_items item accepts. Connectors stay attached (their endpoints follow the item). Get ids from read_moodboard or a previous add_moodboard_items result. Each update is merged over the current item and re-validated: only the fields you pass change; pass null for an optional field (caption, title, label, color, tint, radius, previewHeight) to remove it; an update that would leave the item invalid (a non-portable image src, a non-http link url, a bad swatch hex…) is skipped with a reason and the item is left unchanged. Items with locked: true are skipped unless the update itself sets locked: false. The type of an item cannot be changed — remove it and add a new one instead. Pass connectors to change arrows: re-point an end, relabel or restyle. Writes directly to the .moodboard.md file on disk; max 500 updates per call.

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": "update_moodboard_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
updatesNoItems to patch (max 500 per call). Each entry is { id, ...fields } — only the given fields change; type is immutable.
workspaceYesWorkspace path or name
connectorsNoConnectors to patch. Each entry is { id, from?, to?, label?, style? }: only the given fields change, style merges over the current style, and label: null removes the label. Connector ids come from read_moodboard or add_moodboard_items.
moodboardPathYesMoodboard file path relative to workspace (e.g., "documents/brand-inspiration.moodboard.md")
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.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: merge-over-current semantics, re-validation on every update, per-item skip-with-reason on invalid results, locked items skipped unless unlocked in the same update, direct writes to the .moodboard.md file on disk, and a 500-update cap per call. These are exactly the behavioral traits an agent needs before mutating a file.

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?

Front-loaded with purpose and usage, then behavior, then the write/cap caveat at the end. Dense but almost every sentence carries decision-relevant information; the long compound sentences make it slightly harder to scan than it could be.

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 a mutation tool with no annotations and no output schema, it covers validation, skipping, locking, connector handling, and limits. The return shape is only implied (skipped items carry reasons; includeSummary toggles a board summary), so an agent still guesses what a success response looks like.

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 cross-cutting semantics the schema states only piecemeal: 'only the fields you pass change', the general null-removal rule with the optional-field list, and connector style merge behavior. It does not explain every field (e.g. opacity, strokeWidth), relying on the schema for those.

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?

Opens with a specific verb+resource ('Patch existing moodboard items in place by id') and enumerates the operations (move, resize, recaption, retitle, retint, relock). It also explicitly frames the scope as 'any field an add_moodboard_items item accepts', which separates it from the add and remove siblings.

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?

Gives explicit when-to-use and when-not-to-use guidance: 'Get ids from read_moodboard or a previous add_moodboard_items result' and 'The type of an item cannot be changed — remove it and add a new one instead'. Locked-item behavior is also spelled out as a precondition.

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