Skip to main content
Glama

Create an application user

cs_admin_create_service_principal

Create an Entra service principal with a security role for headless pipeline authentication in a Copilot Studio environment.

Instructions

Register an Entra application and give it an application user with a security role in an environment: the headless identity a pipeline signs in as. Changes a live environment: requires confirm: true. Runs 'pac admin create-service-principal' 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)
nameNoApplication name to create in Entra
roleNoSecurity role (default System Administrator)
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.
environmentNoEnvironment id or URL
timeoutSecondsNoDefault 600

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries the transparency burden. It clearly states that the tool mutates a live environment, requires confirm: true to actually change it, and otherwise performs a dry run. It also exposes the underlying command and the use of the active pac auth profile. It does not cover auth requirements or failure behavior, but the key mutation/dry-run behavior is well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is only three sentences, but the second and third sentences are near-duplicates: both state that the tool mutates a live environment and requires confirm: true. This redundancy means not every sentence earns its place, and the structure could be tightened into one or two concise sentences.

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

Completeness3/5

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

The tool has no annotations and no output schema, and it is a mutating admin command, so the description carries extra responsibility. It does explain the core use case, mutation behavior, the confirm parameter, and the auth profile context. However, it omits prerequisites such as required admin permissions and does not describe what the dry-run output looks like or how success is reported.

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 baseline is 3: the schema already documents all eight parameters thoroughly. The description adds some operational context for confirm and profile behavior, but it mostly repeats what the schema already conveys and does not materially enrich parameter understanding.

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 names a specific operation: registering an Entra application and assigning it an application user with a security role. It also clarifies the intended purpose as 'the headless identity a pipeline signs in as,' which differentiates it from sibling tools like cs_admin_register_application. The underlying command is named, leaving little ambiguity about what the tool does.

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 phrase 'the headless identity a pipeline signs in as' implies the primary use case, and the confirm/dry-run requirement gives an operational precondition. However, there is no explicit guidance about when to prefer this tool over related sibling tools such as cs_admin_register_application or cs_admin_list_service_principals, and no mention of when not to use it.

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