Skip to main content
Glama

Reassign a catalogue agent's owner

cs_reassign_org_agent

Transfer ownership of an agent in the Microsoft 365 agent catalogue to another user by Entra object id when the owner leaves the organisation.

Instructions

Hand ownership of an agent in the Microsoft 365 agent catalogue to another user, by their Entra object id. Used when the owner leaves the organisation. The agent's owner inside a Power Platform environment is cs_reassign_agent_owner. Changes a live tenant: requires confirm: true. Needs CopilotPackages.ReadWrite.All and runs against Graph beta (cs_login scope 'graph_write'). Needs a Microsoft Agent 365 licence and is global-cloud only. Unverified against a live tenant.

Input Schema

NameRequiredDescriptionDefault
idYesPackage id from cs_list_org_agents, e.g. P_19ae1zz1-56bc-505a-3d42-156df75a4xxy
userIdYesEntra object id of the new owner
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
clientIdNoEntra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id.
tenantIdNoEntra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID.
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.

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

A4.7/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 behavioral burden and does so well: it discloses that the tool mutates a live tenant, requires confirm: true, needs CopilotPackages.ReadWrite.All, runs against Graph beta, requires a Microsoft Agent 365 licence, is global-cloud only, and is unverified against a live tenant.

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 dense but front-loads the core action and then adds only essential qualifications: sibling differentiation, mutation confirmation, auth scope, licence and cloud constraints, and a verification caveat. Every sentence carries unique information.

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

Completeness5/5

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

For a destructive, tenant-mutating tool with no annotations and no output schema, the description covers all the critical context an agent needs: purpose, alternative, confirmation requirement, permissions, licensing, cloud scope, and implementation maturity.

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 six parameters in detail. The description reinforces that userId is an Entra object id but adds no syntax or format detail beyond what the schema provides; 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?

The description states a specific verb ('Hand ownership'), resource ('agent in the Microsoft 365 agent catalogue'), and actor ('to another user, by their Entra object id'). It explicitly distinguishes this tool from the similarly named cs_reassign_agent_owner, which handles the agent owner inside a Power Platform environment.

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

Usage Guidelines5/5

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

The description gives the triggering scenario ('Used when the owner leaves the organisation') and names the alternative for a different ownership context ('The agent's owner inside a Power Platform environment is cs_reassign_agent_owner'). It also states the confirm requirement for live changes, leaving no ambiguity about when to use this tool versus its sibling.

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