Skip to main content
Glama

Clone a solution into a project

cs_clone_solution

Exports a Power Platform solution from its environment and unpacks it into a source-control project folder, leaving the environment unchanged. Use it to clone solutions for local editing and version control.

Instructions

Export a solution from the environment and unpack it into a solution project folder (source-control layout). Read-only for the environment. Runs 'pac solution clone' with the active pac auth profile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for pac (for project commands: the solution project folder)
mapNoMapping XML file for component folders
nameYesSolution unique name
asyncNoRun the operation asynchronously
includeNoSettings to include in the export (pac solution export --include values)
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.
localizeNoExtract string resources into .resx files
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
environmentNoEnvironment id or URL; default: the environment of the active pac auth profile
packageTypeNoUnmanaged, Managed or Both (default Both)
timeoutSecondsNoDefault 3600
outputDirectoryNoOutput directory
maxAsyncWaitTimeNoMax asynchronous wait time in minutes (default 60)

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

A3.8/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 real work: it states 'Read-only for the environment' (disambiguating a 'clone' that writes only locally), names the underlying command 'pac solution clone', and notes it runs with the active pac auth profile. It omits overwrite behavior for an existing local folder and failure modes, but the read-only disclosure is the key trait an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action, then the safety trait, then the implementation detail. No filler and no repetition of schema content.

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 tool with no annotations and no output schema, the description covers the essential unknowns: what it does, that it is environment-read-only, and the underlying pac command. It leaves the returned project path and the background/async jobId flow to the schema, which is acceptable, though a brief note on overwriting an existing project folder would complete the picture.

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% across all 13 parameters, including the profile defaulting chain and background/jobId polling, so the schema already does the heavy lifting. The description adds no parameter-level syntax or format detail beyond what the schema states, 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 gives a specific verb+resource ('Clone a solution') and immediately clarifies the mechanics: export from the environment then unpack into a solution project folder in source-control layout. This distinguishes it in substance from cs_pull_solution and cs_sync_solution, but it never names those siblings explicitly, so the differentiation is left to inference.

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

Usage Guidelines3/5

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

Usage is only implied: the 'source-control layout' and project-folder framing hint at first-time project creation rather than updating an existing project, but there is no explicit when-to-use statement or named alternative (e.g., cs_pull_solution for refreshing an existing project). The read-only note gives partial context but does not route the agent.

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