Skip to main content
Glama

Assign a group to an environment

cs_admin_assign_group

Assign an Entra group a security role in a Dataverse environment through a Dataverse team; confirm:true applies the live change, otherwise it returns a dry run.

Instructions

Give an Entra group a security role in an environment through a Dataverse team. Changes a live environment: requires confirm: true. Runs 'pac admin assign-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)
roleYesSecurity role name or id
groupYesEntra group object id
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.
teamTypeYesTeam type (Owner, Access, AadSecurityGroup, AadOfficeGroup)
groupNameYesName of the Dataverse team to create
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
businessUnitNoBusiness unit id
membershipTypeYesMembership type (MembersAndGuests, Members, Owners, Guests)
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.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 disclose the key behavioral traits: it mutates a live environment, it is gated by confirm: true, it falls back to a dry run, and it runs 'pac admin assign-group' under the active pac auth profile. It stops short of stating required permissions or what happens on partial failure.

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

Conciseness2/5

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

The definition is short but wastes a sentence: 'Changes a live environment: requires confirm: true' and 'Mutates a live environment: requires confirm: true (a dry run otherwise)' convey the same fact twice. The opening purpose sentence is well front-loaded, but the duplication means not every sentence earns its place.

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?

For a 12-parameter mutation tool with no annotations and no output schema, the description covers the critical safety gate and execution mechanism, and the schema documents the remaining parameters fully. It omits what the dry run returns and how the background/timeout options interact, leaving a modest gap.

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 12 parameters including confirm, group, role, and teamType. The description only restates the confirm gate and references group/role/team generically, adding no syntax or format meaning beyond the schema; baseline 3 applies.

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 and resource: granting an Entra group a security role in an environment via a Dataverse team. That mechanism ('through a Dataverse team') distinguishes it from the sibling cs_admin_assign_user and from cs_admin_add_environment_to_group without requiring the agent to open the schema.

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?

It provides one important precondition (confirm: true is required to effect change, otherwise a dry run), which is genuine usage guidance. However, it never states when to choose this over cs_admin_assign_user, nor which environments/roles are valid targets, so usage 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