Skip to main content
Glama

copy_library

Destructive

Copies selected library files between Takes libraries or projects, merges token files by name, skips existing files, and can move files by trashing them in the source.

Instructions

Copy library files from one library to another: 'style:' or a project name (copy to a new 'style:' to start a new style from an old one). items are paths inside the library (README.md, tokens.json, assets/Logos/mark-v2.svg); omit for everything. tokens.json merges by token name; other existing files are skipped, never overwritten. move=true trashes the copied files in the source.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "copy_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesA library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments).
fromYesA library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments).
moveNoMove instead of copy. Default false.
itemsNoPaths inside the library. Omit for everything.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2026.11.11
    • changedInput schema / properties / from / description
      Previous value: -"A library: 'style:<Name>' for one of the user's styles (e.g. 'style:Magazine'; a new name makes a new style), a project name for that project's own additions, or 'comments' for the comment copilot's files (lessons, target list, style guide)."New value: +"A library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments)."
    • changedInput schema / properties / to / description
      Previous value: -"A library: 'style:<Name>' for one of the user's styles (e.g. 'style:Magazine'; a new name makes a new style), a project name for that project's own additions, or 'comments' for the comment copilot's files (lessons, target list, style guide)."New value: +"A library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments)."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations' generic destructiveHint=true by specifying exactly what happens to existing data: tokens.json merges by token name, other existing files are skipped and never overwritten, and move=true trashes the source copies. This is precisely the behavioral detail an agent needs before invoking a destructive mutation.

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 purpose and destination conventions are front-loaded, and every clause carries information (path examples, merge behavior, move semantics). It is dense to the point of being crammed into a single block, but there is no filler.

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 destructive, no-output-schema mutation tool, the description covers data-loss behavior, merge rules, and identifier formats, which is what matters most. It says nothing about the return value or whether partial failures are reported, a minor gap.

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 earns a bump by making item paths concrete (README.md, tokens.json, assets/Logos/mark-v2.svg) and restating the merge/skip semantics tied to tokens.json. For from/to it largely repeats the schema text, so it is not a full 5.

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?

Opens with a specific verb and resource: 'Copy library files from one library to another,' then clarifies what the from/to identifiers look like ('style:<Name>' or a project name). It is unambiguous on its own, but never contrasts itself with related siblings like get_library or save_to_library, so an agent must infer the boundary.

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 a concrete usage scenario — 'copy to a new style:<Name> to start a new style from an old one' — and explains the items parameter's omit-for-everything default. There is no explicit when-not-to-use guidance or named alternative, which keeps it short of a 5.

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