Skip to main content
Glama

Pull a whole solution locally

cs_pull_solution

Exports and unpacks a solution, generating deployment-settings.json and cloning agents 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. First observedv0.1.5

TDQS

A4.3/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 of behavioral disclosure, and it does so well: it lists exports, unpacking, file generation, and agent cloning into sync-connected workspaces. It does not mention whether an existing targetDir is overwritten or whether specific permissions are required, but the disclosed side effects are substantial and concrete.

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 and front-loaded with the primary action, followed by a clear list of artifacts and a final routing sentence. Every clause adds useful information, though the long comma-separated structure could be slightly easier to scan.

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 six-parameter tool with no annotations and no output schema, the description covers the essential call semantics: what is exported, where outputs land, what gets generated, and how the result feeds cs_deploy_solution. It does not describe return values or preconditions like an empty targetDir, but the schema covers background/jobId behavior and the description covers the main invocation context.

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, but the description adds meaning beyond the schema by explaining what targetDir is used for (<targetDir>/src, solution.json, agents) and clarifying the managed/unmanaged behavior behind packagetype. This compensates for the one schema property without a description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Export'), a specific resource (the solution), and a complete set of concrete outputs (<targetDir>/src, solution.json, deployment-settings.json, agents). It also distinguishes this tool from generic siblings by stating it is the input for cs_deploy_solution, making its role in the workflow clear.

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?

The description gives clear usage context by positioning the tool as the required precursor to cs_deploy_solution, which tells an agent when this tool fits into a deployment workflow. It does not explicitly enumerate exclusions or compare against siblings like cs_pull or cs_clone_solution, so it stops short of a 5.

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