Skip to main content
Glama

Enable or edit managed environments

cs_admin_set_governance_config

Set an environment's protection level (Standard/Basic) and governance options: sharing limits, solution checker mode, maker onboarding.

Instructions

Turn managed environments on ('Standard') or off ('Basic') for an environment and set its governance options: sharing limits, solution checker mode, maker onboarding. Changes tenant governance: requires confirm: true. Runs 'pac admin set-governance-config' 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)
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.
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
environmentYesEnvironment id or URL
cloudFlowsModeNoSharing limit mode for solution cloud flows
timeoutSecondsNoDefault 600
cloudFlowsLimitNoHow many people makers may share solution cloud flows with
excludeAnalysisNoExclude this environment from the weekly usage digest
includeInsightsNoShow insights on the admin centre home page
protectionLevelYesStandard enables managed environments, Basic disables them
limitSharingModeNoSharing limit mode
makerOnboardingUrlNoMaker onboarding URL
disableGroupSharingNoDisable sharing with groups
maxLimitUserSharingNoHow many people makers may share canvas apps with
solutionCheckerModeNoSolution checker validation mode (None, Warn, Block)
checkerRuleOverridesNoSolution checker rule overrides
makerOnboardingMarkdownNoMaker onboarding markdown
suppressValidationEmailsNoDo not send validation emails

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.1/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden. It explicitly discloses that the command requires 'confirm: true' to avoid a dry run, mutates a live environment, and runs a specific pac command under the active auth profile. This is strong behavioral transparency for a mutating operation.

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 front-loads the main purpose and is generally tight. The phrase 'requires confirm: true' appears twice, which is redundant and adds noise. With that trimmed it would be near-ideal.

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?

The tool has 19 parameters and no output schema, so the description needs to clarify the command's effect and preconditions. It covers the key behavioral aspects (confirm, dry run, mutation, profile) but doesn't mention return value or how it surfaces the pac command output. That's a minor gap, not critical.

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?

Input schema covers 100% of parameters, so baseline is 3. The description mentions sharing limits, solution checker mode, and maker onboarding, but these are already obvious from parameter descriptions. It adds no additional meaning about parameter formats, defaults, or relationships beyond the schema.

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 clearly states a specific action (turn managed environments on/off) and the governance options it configures (sharing limits, solution checker mode, maker onboarding). It distinguishes this from sibling admin tools by focusing specifically on managed environments governance, and the 'Standard'/'Basic' mapping to protectionLevel reinforces clarity.

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?

The description provides context that this changes tenant governance and mutates a live environment, which tells an agent when to reach for it. However, it doesn't explicitly state when not to use it or name alternative tools (e.g., cs_admin_update_tenant_settings). No exclusions or comparisons are given.

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