Skip to main content
Glama

Block or unblock an agent for the organisation

cs_block_org_agent

Blocks or unblocks a Copilot Studio agent for every user in the organisation, enforcing tenant-wide governance without unpublishing or deleting it. Requires confirm:true.

Instructions

Block an agent so nobody in the organisation can use it, or lift an existing block. This is a governance action across the whole tenant, not a deployment one: it does not unpublish or delete the agent, and it affects every user at once. Changes a live tenant: requires confirm: true. Needs the CopilotPackages.ReadWrite.All permission and runs against Graph beta, the only version that exposes it (cs_login scope 'graph_write'). Needs a Microsoft Agent 365 licence and is global-cloud only. Unverified against a live tenant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPackage id from cs_list_org_agents, e.g. P_19ae1zz1-56bc-505a-3d42-156df75a4xxy
blockedYestrue blocks the agent for everyone, false lifts the block
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.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly: it discloses confirm: true is required for a live change, the required permission (CopilotPackages.ReadWrite.All), the Graph beta / graph_write constraint, licence and global-cloud requirements, blast radius (affects every user at once), and that it is unverified. This is unusually rich disclosure for a mutation tool.

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?

Front-loads the core action and then packs prerequisite and constraint facts densely. It runs long, but nearly every clause earns its place given the mutation and environmental prerequisites; a slightly tighter grouping of the licensing/cloud constraints would help.

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 6-param mutation tool with no annotations and no output schema, the description covers the action, scope, prerequisites, dry-run behavior, and limitations, leaving nothing an agent needs to invoke it safely unstated.

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 every parameter including id, blocked, confirm, and the auth/workspace defaults. The description reinforces the confirm: true requirement but adds no syntax or format meaning beyond the schema, making the baseline 3 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 ('Block an agent ... or lift an existing block') and immediately scopes it as a tenant-wide governance action. It explicitly distinguishes itself from deployment/delete siblings by noting it 'does not unpublish or delete the agent', so an agent can tell it apart from cs_delete_agent or cs_quarantine_agent.

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: use this for whole-tenant governance blocking affecting every user, not deployment changes. It names the exclusion (not unpublish/delete) but does not explicitly name the sibling alternatives (e.g. cs_delete_agent) that an agent might otherwise reach for, so it stops short of full when-not/routing guidance.

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