Skip to main content
Glama

Copy one environment over another

cs_admin_copy_environment

Copy a source environment onto a target, replacing all target content. Requires confirm: true to mutate; otherwise returns a dry run.

Instructions

Copy a source environment onto a target environment. Everything in the target is replaced: requires confirm: true. Runs 'pac admin copy' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for pac (for project commands: the solution project folder)
nameNoName for the target environment
typeNoCopy type (for example MinimalCopy, FullCopy)
asyncNoRun the operation asynchronously
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
profileNopac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles.
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
skipAuditDataNoDo not copy audit data
timeoutSecondsNoDefault 14400
maxAsyncWaitTimeNoMax asynchronous wait time in minutes (default 60)
sourceEnvironmentNoEnvironment to copy from
targetEnvironmentNoEnvironment to overwrite

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.8
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.5

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the target is fully replaced (destructive), that confirm:true gates the live mutation, and that omitting it yields a dry run. It also names the underlying command and auth profile, though it omits permission requirements and reversibility.

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 destructive warning is front-loaded, which is good, but 'requires confirm: true' is stated twice in near-identical clauses, which is redundant. The 'active pac auth profile' phrasing also oversimplifies the schema's profile default logic (CPS_ADMIN_PROFILE vs CPS_PAC_PROFILE).

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 12-param destructive tool with no annotations or output schema, the description covers the critical behavior (overwrite, confirm gating, dry run). It could note that source/target environments are effectively required even though the schema lists zero required params, but otherwise the agent has enough to act safely.

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 the schema already documents all 12 parameters, including sourceEnvironment/targetEnvironment and confirm. The description restates confirm's semantics but adds no format or syntax detail beyond the schema, so the baseline 3 applies.

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+resource ('Copy a source environment onto a target environment') and clarifies the overwrite semantics ('Everything in the target is replaced'). This distinguishes it well from create/backup siblings, though it never names a specific alternative like cs_admin_restore_environment or cs_clone_solution to route the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

It states the confirm prerequisite and dry-run fallback, but gives no when-to-use vs alternatives guidance despite many adjacent admin tools (cs_admin_restore_environment, cs_admin_create_environment, cs_compare_environments). No exclusions or routing context is provided.

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