Skip to main content
Glama

Sync a solution project from the environment

cs_sync_solution

Update an unpacked solution folder or .cdsproj to reflect the environment's current state by re-exporting the solution with pac solution sync. Read-only operation.

Instructions

Re-export the solution and update an existing unpacked solution folder or .cdsproj with the environment's current state. Read-only for the environment. Runs 'pac solution sync' 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
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)
solutionFolderNoUnpacked solution folder (Other/Solution.xml root) or .cdsproj folder; default: cwd
timeoutSecondsNoDefault 3600
maxAsyncWaitTimeNoMax asynchronous wait time in minutes (default 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It does state that the operation is read-only for the environment, which is a key safety hint, and that it updates an existing folder, implying local file modification. However, it does not mention potential side effects such as overwriting local files, the possibility of long-running execution, or async/background behavior (though the schema has those params). It also does not note that it requires an existing unpacked solution. These are significant gaps given the lack of annotations.

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?

The description is two sentences with zero wasted words. The main action and scope are front-loaded, followed by a key safety note and the underlying command. It is efficient and well-structured.

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 12 parameters and no annotations, the description is under-specified. It lacks context on when to use this tool versus siblings, does not explain that it requires an existing solution project, does not disclose side effects like overwriting, and does not describe the return value or how to handle async/background operations. While the schema covers parameter details, the description should provide the operational context, which it largely omits.

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 all 12 parameters are fully documented in the input schema. The description adds no additional meaning beyond what the schema already provides (e.g., it mentions the active profile, but the schema already covers the 'profile' parameter). Baseline of 3 is appropriate when the schema does the heavy lifting.

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 clearly states the tool re-exports a solution and updates an existing unpacked solution folder or .cdsproj, which is a specific and actionable purpose. It mentions 'Read-only for the environment' and the underlying 'pac solution sync' command. However, it does not explicitly name sibling tools to differentiate itself, so an agent might still confuse it with cs_pull_solution or cs_pull, though the verb 'sync' and the 'update existing' phrasing help.

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. It does not state prerequisites (e.g., that a solution project must already exist), nor does it mention when to prefer a different tool like cs_init_solution_project or cs_pull_solution. The only context is that it uses the active pac auth profile, which is an implementation detail, not usage direction.

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