Skip to main content
Glama

Pull a whole solution locally

cs_pull_solution

Export an unmanaged or managed Copilot Studio solution to a target directory, unpack its files, write deployment settings, and clone agents into a sync-connected workspace for deployment.

Instructions

Export the solution (unmanaged and optionally managed), unpack it to /src, write /solution.json, generate deployment-settings.json (connection references + environment variables to map), and clone every agent in the solution into /agents/ as a sync-connected workspace. This is the input for cs_deploy_solution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSolution unique name
targetDirYes
backgroundNoRun in the background and return a jobId immediately. Use this when the export is large enough that the MCP client times the call out; poll with cs_job_status.
cloneAgentsNoDefault true
environmentNoEnvironment id or URL. Defaults to the active pac auth profile.
packagetypeNoDefault Both: exports both zips, unpacks both

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

A4/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 discloses significant side effects: unpacking into <targetDir>/src, writing solution.json, generating deployment-settings.json, and cloning agents as sync-connected workspaces. It still omits prerequisites such as authentication needs, overwrite behavior on existing targetDir contents, and error or rate-limit behavior.

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 dense but front-loaded, beginning with the core action and then listing the side effects in a logical order. It is one very long sentence plus a short closing sentence, so readability could be improved, but every clause is informative and nothing appears wasted.

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 complex six-parameter tool with no output schema, the description explains the key outputs and its downstream relationship to cs_deploy_solution well enough to call it correctly. It lacks guidance on when to prefer it over similar siblings and omits auth/overwrite prerequisites, so it is not fully complete.

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 high at 83%, so the baseline is 3. The description adds real meaning beyond the schema by explaining the targetDir layout and the generated deployment-settings.json contents, though it leaves some parameters such as background and environment largely to their schema descriptions.

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 names a specific verb and resource ('Export the solution') and enumerates the exact local artifacts it produces, so the agent knows what the tool does. It also distinguishes itself from cs_deploy_solution by calling itself the input for that tool. However, it does not differentiate itself from nearby siblings such as cs_pull, cs_clone_solution, or cs_sync_solution.

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

Usage Guidelines4/5

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

It gives clear usage context by stating 'This is the input for cs_deploy_solution,' which tells the agent when this tool fits in a workflow. It does not provide exclusions or compare itself directly to alternative pull/clone/sync tools.

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