Skip to main content
Glama

Add a component to a solution

cs_add_solution_component

Add an existing component (agent, flow, connection reference, etc.) to an unmanaged solution by schema name or type code. Requires confirmation to apply changes; without it returns a dry run.

Instructions

Add an existing component (an agent, flow, connection reference, environment variable, table ...) to an unmanaged solution by schema name or id and component type code. Runs 'pac solution add-solution-component' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for pac (for project commands: the solution project folder)
asyncNoRun the operation asynchronously
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
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.
componentYesSchema name or id of the component
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
solutionNameYesSolution unique name
componentTypeYesComponent type code or name (e.g. 29 for a flow / workflow, 10088 for a connection reference, 380 for an environment variable definition)
timeoutSecondsNoDefault 600
addRequiredComponentsNoAlso add the components it depends on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description correctly takes on the burden of disclosing behavioral traits. It explicitly states that the tool mutates a live environment and that confirm: true is required for an actual change, otherwise it is a dry run. This is a critical, non-obvious behavior that is well communicated.

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 three concise sentences with no fluff. The primary purpose is front-loaded, followed by the command invocation and the critical mutation caveat. Every sentence adds value, and the structure is clean and easy to scan.

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

Completeness3/5

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

Given the complexity (11 parameters, no output schema, no annotations), the description covers the essential operational behavior (mutation, dry-run, command). However, it omits information about return values or success/failure indicators, which would be useful given the absence of an output schema. It is adequate but not complete.

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?

The input schema provides 100% coverage of all 11 parameters with clear descriptions, so the baseline is 3. The description adds minimal extra meaning beyond the schema—it restates the component identification method ('by schema name or id') and repeats example type codes already present in the schema. It does not significantly enhance understanding of the parameters.

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 action (add an existing component) and the resource (an unmanaged solution), with a list of example component types. It is specific enough to identify the tool's purpose, though it does not explicitly contrast it with sibling add-tools like cs_add_solution_reference or cs_add_solution_license.

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?

The description explains what the tool does but gives no guidance on when to use it versus alternative add-solution tools. It mentions running the pac command and the requirement for confirm, but these are operational details, not usage context. There is no 'when to use' or 'when not to use' information.

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