Skip to main content
Glama

Save to the library

save_library_draft

Save a smart component or recipe to a Slatebox library as private, team-shared, or review-ready; create or update reusable items for later use.

Instructions

Save your smart component, or one of your recipes, to the library: private to you, shared with your team, or sent for review to share with everyone.

Save a component. Save to the library: the board of your builder slate (library.branch) as your own smart component, or (kind recipe) one of your recipes (instanceId) or a spec from recipes.draft, its spec only: never its picks, permissions, webhooks or secrets. It stays private to you: share it with library.setAudience (your team at once, or everyone after review). The first save makes the item; later saves update it (itemId, or the builder slate or recipe remembers it). A component needs a category before it is submitted; a branch keeps its parent's (another is refused with 409 category_locked).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_library_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocomponent (by default): a builder slate's board; recipe: a recipe or its spec.
specNokind recipe: a spec (recipes.draft) to save instead.
titleNoPlain text, up to 80 characters.
itemIdNoThe item: its id or its slug (library.list items[].id or .slug).
boardIdNoThe board on the builder slate (main by default).
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
shareIdNokind component: the builder slate.
summaryNoOne line, up to 160 characters.
categoryNoOne of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web.
synonymsNoSmart components only: words people might search for.
instanceIdNokind recipe: one of your recipes (recipes.list instanceId) to save; nothing personal of it is kept.
descriptionNoPlain text, up to 2,000 characters.
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.9/5.0
Behavior4/5

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

Annotations only cover the safety profile (readOnlyHint=false, destructive=false, idempotent=false); the description adds substantive behavior beyond that — a spec save keeps 'its spec only: never its picks, permissions, webhooks or secrets', the first save creates and later saves update, and a branch inherits its parent's category with a 409 category_locked refusal. The confirm/idempotencyKey confirmation flow is also disclosed. The audience framing in the first sentence overlaps with the mutation semantics rather than clarifying them.

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?

Front-loads the save action and keeps the key caveats, but 'Save a component. Save to the library:' restates the title, and the parenthetical-heavy sentences pack several rules per line. The misleading audience clause at the top costs space that the later correction has to spend undoing.

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 13-parameter mutation with a nested spec object and no output schema, the description covers the branches an agent must decide between (component vs recipe vs spec), update semantics, the category constraint, and the confirmation flow. It does not describe the returned shape or what a successful save yields, and the shareId/category interplay for a new item is only partly spelled out.

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; the description goes beyond it by tying instanceId to recipes.list, itemId to 'the item ... remembers it', boardId to the builder slate's board, and spec to a recipes.draft spec stripped of picks/permissions/webhooks/secrets. It also explains the confirm/idempotencyKey pairing used after a confirmation_required result. Some parameters (title, summary, description, synonyms, shareId) get no added meaning beyond their schema text.

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?

Names a specific verb and resource ('Save your smart component, or one of your recipes, to the library') and distinguishes the recipe/component/spec variants plus the private-vs-shared split via library.setAudience. The opening line's 'shared with your team, or sent for review to share with everyone' describes the eventual audience rather than this tool's action, which slightly muddies what the call itself does before the body corrects it with 'It stays private to you'.

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?

Gives concrete selection rules: use kind recipe for a recipe (instanceId) or a spec from recipes.draft, otherwise component; and it routes sharing to library.setAudience. It also explains the create-vs-update split across repeated calls (itemId, or the builder slate/recipe remembers it). It stops short of naming when to prefer submit_to_library or update_library_item instead, so a sibling boundary remains implicit.

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