Skip to main content
Glama
ykovenskiy-hub

Purl MCP Server

bulk_clone

Deep-clone one object into multiple uniquely named copies in a single call, with optional per-copy offsets and component placement.

Instructions

Deep-clone one source object into many copies in a single call — the batch counterpart to clone_object. Names come from either an explicit names list or a namePattern containing "{i}" plus a count (if both are given, names wins and the count is its length). Each clone gets fresh unique IDs and collision-safe child renaming, optionally lands inside a component via parentName, and can be offset per-instance via xOffsetPer/yOffsetPer (added as index×offset to the clone and all its descendants). All clones collapse into one undo step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of clones to create when using `namePattern`. Ignored when `names` is provided.
namesNoExplicit list of names for the clones (each must be unique and new). Takes precedence over namePattern+count; the number of clones equals this list length.
promptYesTHE USER'S EXACT PROMPT — verbatim, word-for-word, as typed. Do not summarize, paraphrase, translate, or shorten. Copy the user's message into this field exactly. Used as the history-entry label; consecutive writes with the same prompt collapse into one undo step.
cellNameNoOptional: cell where the source object lives (by label)
parentNameNoOptional: name of an existing component in the target cell to add every clone into as a child. Errors if it is not a component.
sourceNameYesName of the object to clone
startIndexNoOptional (default 0): the first value substituted for "{i}" in namePattern. Does not affect the offset multiplier, which is always 0-based within the batch.
xOffsetPerNoOptional: x added per clone = index × this. Shifts the clone and all its descendants, so it works for components (whose children store absolute coords) as well as primes.
yOffsetPerNoOptional: y added per clone = index × this. Same subtree-shift semantics as xOffsetPer.
namePatternNoName template containing "{i}", e.g. "Row{i}". Used with `count` when `names` is not supplied. "{i}" is replaced by startIndex, startIndex+1, … Must contain "{i}", otherwise the call errors (clones would share a name).
targetCellNameNoOptional: cell to place the clones in (defaults to the source cell)
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 delivers: it discloses fresh unique IDs, collision-safe child renaming, subtree offset semantics, and that all clones collapse into one undo step. It also surfaces error conditions like parentName requiring a component and namePattern containing '{i}'. This is rich behavioral context beyond the schema.

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 description is a single dense paragraph but every clause adds value. It is front-loaded with the main purpose and then systematically covers naming, placements, offsets, and undo behavior. Given the tool's complexity (11 params), the length is justified, though a bulleted structure could improve scannability.

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?

The description thoroughly covers input semantics and behavioral effects, but it does not mention what the call returns (e.g., a list of created names, count of clones, or errors). With no output schema, a brief note on return value would round out the picture. The complexity is high, but the description handles most of the input side exceptionally well.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds essential meaning: the precedence rules (names wins over namePattern+count), the distinction between startIndex and the 0-based offset multiplier, and the verbatim prompt requirement. These clarifications are not present in the raw schema and are critical for correct invocation.

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 starts with a specific verb+resource: 'Deep-clone one source object into many copies in a single call'. It also explicitly identifies itself as 'the batch counterpart to clone_object', which clearly differentiates it from the most relevant sibling tool.

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 clearly positions this as the batch version of clone_object, implying use when cloning many objects at once. It also explains when to use `names` vs `namePattern`+`count`, and even notes error conditions (e.g., if namePattern lacks '{i}'). It doesn't explicitly state 'use this instead of calling clone_object repeatedly', but the batch counterpart phrasing is strong guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ykovenskiy-hub/purl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server