Skip to main content
Glama

Duplicate Artifact

artifact-duplicate

Duplicate (clone) an EXISTING artifact into a new, independent artifact.

This copies the artifact's code, assets, and supported database content. If a supported database cannot be copied, the entire duplication fails and no usable copy is returned. It does NOT copy chat or custom domains. This is different from running git clone locally: git clone only creates a local checkout, while this tool creates a new artifact with a new sessionId.

Requires sessionId for a readable source artifact that belongs to the caller's current team. Public, shared, or otherwise readable artifacts in other teams cannot be duplicated with this MCP v1 tool. You need write in the workspace the copy goes to. name is optional; the default is " (Copy)".

Retry safety: duplication is not idempotent. If a call times out or its response is lost, list recent artifacts (workspace-list_artifacts) before retrying because the first call may already have created the copy.

Returns: { success, sessionId, sourceSessionId, name, artifactType, artifactUrl, nextSteps } — plus playgroundUrl and previewUrl when the copy is an app or knowledge artifact; a markdown copy gets previewUrl only

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": {
      "sessionId": "<sessionId>"
    },
    "name": "artifact-duplicate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional display name for the duplicated artifact.
sessionIdYesThe session id of a readable source artifact that belongs to the caller's current team.
workspaceIdNoWhere to create it — an id from workspace-list_workspaces. Omit it to create in General, or in the only workspace you can create in; name one only when the user asked for a specific workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Where to create it — an id from workspace-list_workspaces. Optional when you can create in only one workspace; otherwise required, since there is no default workspace."New value: +"Where to create it — an id from workspace-list_workspaces. Omit it to create in General, or in the only workspace you can create in; name one only when the user asked for a specific workspace."
  2. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "Where to create it — an id from workspace-list_workspaces. Optional when you can create in only one workspace; otherwise required, since there is no default workspace.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare non-read-only, non-idempotent, and open-world, but the description adds substantially more: exactly what is copied (code, assets, supported database content), atomic all-or-nothing failure semantics, what is deliberately not copied (chat, custom domains), and the non-idempotency retry hazard. That last point reinforces rather than repeats idempotentHint=false, because it names the concrete recovery step.

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 front-loaded with the core action, then groups prerequisites, retry safety, and return shape under bolded labels, so an agent can scan to the relevant part. It is on the long side and the Returns inventory is verbose, but since no output schema exists each listed field earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating, non-idempotent, team-scoped tool with no output schema, the definition covers prerequisites, atomic failure behavior, retry recovery, and the exact return fields including the conditional playgroundUrl/previewUrl. Nothing an agent needs to invoke it correctly or interpret the response appears to be missing.

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 schema already documents sessionId, workspaceId, and name; the baseline would be 3. The description still adds value by specifying the default name pattern ('<source name> (Copy)'), which is not in the schema, and by framing sessionId as belonging to a readable team-owned source.

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 first sentence gives a specific verb and resource ('Duplicate (clone) an EXISTING artifact into a new, independent artifact') and immediately scopes what it creates. The git clone comparison makes the distinction from a nearby mental model explicit, so an agent knows this produces a server-side artifact with a new sessionId rather than a local checkout.

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?

It states the precondition (readable source artifact in the caller's current team), the exclusion (public/shared/cross-team artifacts cannot be duplicated with this MCP v1 tool), the permission needed (write in the destination workspace), and the default naming. The retry-safety paragraph routes the agent to workspace-list_artifacts before retrying a timed-out call, which is explicit when/when-not guidance rather than an inferred one.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.