Skip to main content
Glama

Create an environment

cs_admin_create_environment

Create a Dataverse environment in your tenant for Copilot Studio agents. Set confirm: true to execute; otherwise it returns a dry run.

Instructions

Create a Dataverse environment in the tenant. Consumes tenant capacity: requires confirm: true. Runs 'pac admin create' 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)
nameNoEnvironment name
typeYesProduction, Sandbox, Trial, Developer or Teams
userNoUser to assign to the environment (object id or UPN)
asyncNoRun the operation asynchronously
domainNoDomain part of the environment URL
regionNoRegion (default unitedstates)
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.
currencyNoCurrency (default USD)
languageNoLanguage (default English)
inputFileNoJSON file with the arguments
templatesNoDynamics 365 templates to deploy
appVersionNo(Preview) Pin the application build, e.g. 10.0.43; Finance & Operations and Project Operations templates only
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
macroRegionNoMacro-region id instead of a region, for tenants with Advanced Data Residency (pac 2.12)
enableDemoDataNo(Preview) Install demo data; Finance & Operations and Project Operations templates only
enableDevToolsNo(Preview) X++ developer tooling; Finance & Operations and Project Operations templates only, ignored otherwise
timeoutSecondsNoDefault 7200
platformVersionNo(Preview) Pin the platform build, e.g. 7.0.7256; needs appVersion
securityGroupIdNoEntra security group id (required for a Teams environment)
maxAsyncWaitTimeNoMax asynchronous wait time in minutes (default 60)
enableTestModulesNo(Preview) Install the F&O test modules; Finance & Operations and Project Operations templates only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.8
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / appVersion
      Added value: +{
      +  "description": "(Preview) Pin the application build, e.g. 10.0.43; Finance & Operations and Project Operations templates only",
      +  "type": "string"
      +}
    • addedInput schema / properties / enableDemoData
      Added value: +{
      +  "description": "(Preview) Install demo data; Finance & Operations and Project Operations templates only",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / enableDevTools
      Added value: +{
      +  "description": "(Preview) X++ developer tooling; Finance & Operations and Project Operations templates only, ignored otherwise",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / enableTestModules
      Added value: +{
      +  "description": "(Preview) Install the F&O test modules; Finance & Operations and Project Operations templates only",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / macroRegion
      Added value: +{
      +  "description": "Macro-region id instead of a region, for tenants with Advanced Data Residency (pac 2.12)",
      +  "enum": [
      +    "asia-pacific",
      +    "emea",
      +    "eu-efta",
      +    "europe-uk",
      +    "north-america",
      +    "the-americas"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / platformVersion
      Added value: +{
      +  "description": "(Preview) Pin the platform build, e.g. 7.0.7256; needs appVersion",
      +  "type": "string"
      +}
  2. First observedv0.1.5

TDQS

A3.7/5.0
Behavior4/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 a good job: it discloses that the operation mutates a live environment, defaults to a dry run without confirm, consumes tenant capacity, and runs 'pac admin create' under the active pac auth profile. It stops short of a 5 because it does not state required admin permissions or other tenant-level prerequisites beyond capacity.

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 short and front-loads the core purpose. It loses a point for redundancy: the phrase 'requires confirm: true' appears twice, once with capacity and once with live mutation, which could have been consolidated.

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 high-complexity admin mutation with 23 parameters and no output schema, the description covers the essential agent-facing context: what it creates, that it is live and destructive with a dry-run default, that it consumes capacity, and what underlying command it runs. The schema covers the parameter details, and no return value explanation is needed, though the description could be slightly more complete by noting admin authorization requirements.

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% across 23 parameters, so the schema already carries the parameter semantics. The description mentions confirm and the active pac auth profile, but this largely repeats what the schema's confirm and profile descriptions already state, adding no new syntax or meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: create a Dataverse environment in the tenant. It is clearly distinct from list/delete/copy/reset siblings by verb, but it does not explicitly name or differentiate against the nearest alternative, cs_admin_copy_environment, so it falls short of a full 5.

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 implies usage (create a tenant environment) and supplies two important preconditions: it consumes tenant capacity and requires confirm: true, otherwise returning a dry run. However, it gives no explicit when-not-to-use guidance and does not route the agent to alternatives such as cs_admin_copy_environment or cs_admin_list_environments.

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