Skip to main content
Glama

Add a project reference to a solution project

cs_add_solution_reference

Reference a plug-in, PCF control, or other project from a .cdsproj so it packs into the solution. Runs pac solution add-reference in the solution project folder, changing only local files.

Instructions

Reference another project (plug-in, PCF, ...) from a .cdsproj so it is packed into the solution. Run in the solution project folder (cwd). Local file change only. Runs 'pac solution add-reference' with the active pac auth profile.

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory for pac (for project commands: the solution project folder)
pathYesPath of the referenced project
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.
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
timeoutSecondsNoDefault 600

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

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It usefully discloses 'Local file change only' and that it shells out to 'pac solution add-reference' with the active auth profile, clarifying the side effect is a local file edit rather than a tenant mutation. It does not address idempotency, what happens if the reference already exists, or failure modes.

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?

Three short sentences with the purpose front-loaded, then the cwd requirement, then the underlying command. Efficient and well ordered, though the final pac/auth-profile sentence partially duplicates information already implied by the profile parameter.

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 local-file mutation with no output schema, the description covers intent, execution context (cwd) and side-effect scope (local only), which is most of what an agent needs. It stops short of documenting return value or verification steps, but nothing critical is missing to invoke it 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 description coverage is 100%, so the schema already documents cwd, path, profile, background and timeoutSeconds. The description reinforces cwd ('solution project folder') but adds no syntax or format meaning beyond what the schema provides. Baseline 3 applies.

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?

States a specific verb and resource: reference another project (plug-in, PCF) from a .cdsproj so it is packed into the solution. It is concrete enough to distinguish from general component-adding tools, though it never names the closest sibling (cs_add_solution_component) to disambiguate explicitly.

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

Usage Guidelines3/5

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

Gives a real prerequisite: 'Run in the solution project folder (cwd).' That orients the agent on how to call it. However it offers no when-not-to-use guidance and does not contrast with cs_add_solution_component or other add-* siblings, so the agent must infer the choice.

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