Skip to main content
Glama

Run any pac command

cs_pac

Execute Power Platform CLI (pac) arguments directly with optional auth profile and directory. Read-only commands run without confirmation; changes require explicit confirmation.

Instructions

Escape hatch: run 'pac <args...>' directly. Read-only commands (list/who/status/help) run immediately; anything else needs confirm: true. 'profile' runs it as another pac auth profile, for example the tenant admin account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
argsYesArguments after 'pac', e.g. ["env","list"]
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
profileNopac auth profile to run as (cs_init lists them)
timeoutSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It clearly explains the read-only vs. mutating command distinction, the confirm requirement for changes, and the profile override behavior. It does not mention cwd/timeout handling or return format, but the main safety-relevant behavior is well covered.

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

Conciseness5/5

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

Two sentences with no wasted words. The purpose is front-loaded, the read-only vs. confirm distinction is compactly stated, and the profile explanation adds necessary context without bloat.

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 deliberately generic escape-hatch tool, the description covers the essential invocation decisions: what the tool does, how to gate destructive commands, and how to switch profiles. The absence of an output schema is acceptable since the output is pac's own output. The optional cwd and timeoutSeconds parameters are left unexplained, but they are ancillary and named in the schema.

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?

The schema documents args, confirm, and profile, leaving cwd and timeoutSeconds undocumented (60% coverage). The description adds useful meaning for profile—running as another pac auth profile, e.g., tenant admin—and reinforces the confirm behavior, but it does not compensate for the undocumented cwd and timeoutSeconds parameters.

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?

The description clearly states that the tool runs any 'pac <args...>' command directly, and the phrase 'escape hatch' distinguishes it from the many curated pac-specific sibling tools. It lacks a single specific resource because it is deliberately broad, but the verb and scope are unambiguous.

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?

The description gives clear operating context: use this tool to invoke pac directly when a dedicated wrapper is not appropriate. It also provides a concrete decision rule for the confirm parameter—read-only commands run immediately, anything else requires confirm: true. It does not explicitly name alternatives or say 'prefer cs_* when available,' so it misses the top score.

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