Skip to main content
Glama

Reassign an agent's owner in its environment

cs_reassign_agent_owner

Reassign ownership of a Copilot Studio agent in its Power Platform environment so another person can edit, publish, and manage it. Admin operation requiring confirmation.

Instructions

Make another person the owner of a Copilot Studio agent in its Power Platform environment, so they can edit, publish and manage it there. Admin operation. cs_reassign_org_agent is a separate tool for the Microsoft 365 side. Runs 'pac copilot-studio reassign-copilot-agent' 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)
botIdYesAgent id (GUID)
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.
newOwnerYesEntra ID object id of the new owner
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
timeoutSecondsNoDefault 600

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.8

TDQS

A4.4/5.0
Behavior5/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 flags that it mutates a live environment, that confirm: true is required or the call is a dry run, that it runs the pac command under the active auth profile, and that it is an admin operation implying elevated credentials.

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?

Four tight sentences, front-loaded with the action and effect, then the sibling disambiguation, the underlying command, and the mutation/dry-run constraint. No filler; each sentence adds decision-relevant information.

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 an 8-parameter admin mutation with no annotations and no output schema, the description covers the safety-critical traits (live mutation, dry-run default, auth profile, alternative tool). It omits what happens to the previous owner and any downstream effects, a minor gap rather than a blocking one.

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 botId, newOwner, profile, confirm, environment, background etc. are already documented. The description only reinforces the confirm dry-run behavior already present in the schema, adding little parameter syntax or format detail beyond that; baseline 3 is appropriate.

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?

States a specific verb and resource: transfer ownership of a Copilot Studio agent so the new owner can edit/publish/manage it. It also explicitly distinguishes itself from cs_reassign_org_agent, which handles the Microsoft 365 side, so an agent can pick the right tool without opening schemas.

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?

Clear context is given: this is an admin operation scoped to the Power Platform environment, and the sibling cs_reassign_org_agent covers the M365 side. However, it stops short of stating explicit when-not conditions (e.g. tenants without admin rights) so it does not reach a full 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