Skip to main content
Glama

Clone a solution into a project

cs_clone_solution

Export a solution from an environment and unpack it into a source-control layout, producing a project folder for versioning.

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. First observedv0.1.5

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It openly declares 'Read-only for the environment' and reveals the underlying command ('Runs pac solution clone'), which adds transparency. However, it does not mention that unpacking writes local files, potential side effects on the solution project folder, or any auth failure modes. The description provides some context but omits important behavioral details.

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 concise with three sentences, each carrying distinct information: the core action, the read-only nature, and the underlying command. It is front-loaded with the primary purpose and avoids redundant filler. Slightly more could be said about usage, but the structure is efficient.

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

Completeness2/5

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

For a tool with 13 parameters and no output schema, the description is minimal. It does not explain return values, how to handle asynchronous operation (despite an async param), prerequisites like authentication, or expected side effects on the local filesystem. Reliance on the schema is heavy, leaving gaps that an agent would need to research to invoke correctly.

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 coverage is 100%, so the schema fully documents each parameter. The description itself adds no extra meaning to parameters; it only describes the overall operation. The baseline of 3 is appropriate because the schema does the heavy lifting, and the description does not contradict or enrich it.

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 action ('Export a solution... and unpack it into a solution project folder') with a clear resource and result. It also notes the read-only nature for the environment. However, it does not explicitly distinguish itself from sibling tools like cs_pull_solution or cs_export_solution, leaving some potential ambiguity in a large tool set.

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?

There is no guidance on when to use this tool versus alternatives such as cs_pull_solution or cs_check_solution. The description states what it does but gives no context for selection, prerequisites, or exclusions. An agent would have to infer usage from the name and schema alone.

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