Skip to main content
Glama

Block or unblock an agent for the organisation

cs_block_org_agent

Block or unblock an agent for the whole organization at once. Requires confirmation before applying this governance change to the live tenant.

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. First observedv0.1.5

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden. It discloses that it modifies a live tenant, requires confirm: true, needs specific permissions (CopilotPackages.ReadWrite.All), runs against Graph beta, requires a license, is global-cloud only, and is 'unverified against a live tenant'. This is exceptionally transparent about side effects and prerequisites.

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?

The description is concise but information-dense, front-loading the purpose before covering scope, requirements, and limitations. Every sentence contributes useful detail without padding, though it could be slightly trimmed for the permission/licensing clauses.

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 governance mutation with no output schema, the description covers the essential behavior, side effects, prerequisites, and the confirm flag. It doesn't describe the response format, but that's less critical for a mutation. The honesty about being 'unverified against a live tenant' adds completeness.

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 coverage is 100%, so the schema already documents all six parameters. The description adds some context, notably that 'confirm' is required for actual changes and that 'id' comes from cs_list_org_agents, but these are minor additions beyond the schema. The baseline of 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 explicitly states the action ('Block an agent... or lift an existing block'), identifies the resource (agent for the organisation), and distinguishes it from deployment actions ('it does not unpublish or delete the agent'). This clearly differentiates it from sibling tools like cs_list_org_agents or cs_reassign_org_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?

It clearly explains the governance scope ('across the whole tenant'), contrasts with deployment, and notes it affects all users at once. It also mentions the confirm requirement and permissions. While it doesn't name a specific alternative tool, the context makes its intended use clear.

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