Skip to main content
Glama

Add an environment to a group

cs_admin_add_environment_to_group

Add a Power Platform environment to an environment group to apply the group's rules. Set confirm: true to change live tenant config; otherwise it returns a dry run.

Instructions

Put an environment into an environment group, which applies that group's rules to it. Changes tenant configuration: requires confirm: true. Runs 'pac admin add-group' 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)
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.
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, url, unique or partial name
timeoutSecondsNoDefault 600
environmentGroupYesEnvironment group name or id

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.6/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 does so well: it discloses that this mutates tenant configuration, that it is a live mutation requiring confirm: true, that omitting confirm yields a dry run, and that it shells out via 'pac admin add-group' under the active auth profile. It stops short of 5 only because it doesn't cover outcomes such as what happens if the environment is already in the group.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loads the purpose, but it wastes space by stating 'requires confirm: true' twice in nearly identical form ('Changes tenant configuration: requires confirm: true' and 'Mutates a live environment: requires confirm: true'), which reads as padding rather than emphasis.

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 7-parameter, mutation-oriented tool with no annotations and no output schema, the description covers the essential agent-facing concerns: mutation, confirm/dry-run behavior, and the underlying pac invocation. Minor gaps remain around idempotency and the background job path described in the schema, but nothing critical is missing.

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 all seven parameters including confirm, profile and background; the baseline here is 3. The description restates confirm semantics already in the schema without adding new parameter meaning (e.g. group name vs id resolution).

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 first sentence states a specific verb and resource ('Put an environment into an environment group') and adds the consequence ('applies that group's rules to it'), which is more than a restatement of the name. It does not, however, name any sibling (e.g. cs_admin_list_environment_groups) to distinguish membership assignment from group listing, so it stops short of a 5.

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?

The description does convey the key precondition (requires confirm: true, otherwise a dry run), which is genuine usage guidance. But it never states when to reach for this tool versus alternatives like cs_admin_create_environment or cs_admin_list_environment_groups, so the routing guidance is only implied.

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