Skip to main content
Glama

Branch off a smart component

branch_library_component

Branch a library component or start an empty builder slate to customize and grow it before saving or submitting.

Instructions

Start your own smart component on a new slate: a copy of one from the library to change, or an empty one (itemId "new").

Branch off a component. Start building a smart component on a new private slate (a builder slate): a copy of a library component to change (itemId), or an empty one (itemId "new"). Grow it by chat and with the controls on the board, then library.saveDraft and library.submit. A branch keeps its parent's category.

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": {
      "itemId": "<itemId>"
    },
    "name": "branch_library_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesThe component to branch off, or "new" for an empty builder slate.
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
versionNoA version number (item.publishedVersion by default).
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-destructive write. The description adds genuine behavioral context beyond that: the new slate is private, it is a 'builder slate', the branch inherits its parent's category, and the subsequent save/submit flow. It does not describe the confirmation requirement, though the schema documents the confirm parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The definition opens with a summary sentence that is then nearly repeated in the second paragraph ('Start your own smart component on a new slate...' vs 'Start building a smart component on a new private slate...'). The duplication wastes space, though the workflow steps at the end are useful and the content is front-loaded.

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 four-parameter mutation with no output schema, the description covers purpose, the empty-vs-copy choice, category inheritance, and the next steps in the workflow. Annotations handle the safety profile. The main omission is the human-confirmation step, which is instead left to the schema's confirm parameter.

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 all four parameters including itemId 'new' and confirm are already documented in the schema. The description restates the itemId 'new' convention rather than adding meaning beyond it. The 'parent's category' detail is behavioral, not parameter-specific, so the baseline 3 is appropriate.

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 states a specific verb and resource: 'Branch off a component' and 'Start building a smart component on a new private slate.' It clearly distinguishes branching from starting empty via itemId 'new', so an agent understands what is produced. It does not explicitly name a sibling such as copy_slate or use_library_item to contrast against, which keeps it just 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 Guidelines4/5

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

It gives clear context for when to use the tool: to change a copy of a library component or to start from an empty slate. It also names the follow-on workflow (grow by chat and board controls, then library.saveDraft and library.submit). It does not state when NOT to use it or name alternative tools, so no explicit exclusions.

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