Skip to main content
Glama

Start a session

cs_init

Checks machine readiness for Copilot Studio agent work read-only: PAC CLI, .NET, auth profile, tokens, env vars, write policy, workspace, and next steps; use at session start or after failures.

Instructions

Check whether this machine is ready to work: the pac CLI and .NET, which pac auth profile is active, which cloud resources have a usable token, the environment variables, the write policy in force, and the agent workspace it found, ending with the next steps for that workspace. Read-only. Call it once at the start of a session, and again when a tool fails and you need to know whether the CLI, the credentials or the workspace is the reason. It reports the state of the machine and nothing else: when the user asked for something specific - an agent, a flow, a solution, an environment, instructions - call the tool for that thing instead. cs_create_agent scaffolds or creates an agent; cs_guide explains a task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.8
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.5

TDQS

A4.4/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 burden and does state 'Read-only' plus the exact diagnostic categories it returns, including the trailing 'next steps'. It also bounds the behavior ('reports the state of the machine and nothing else'). It stops short of describing failure/error behavior or whether repeated calls are cheap, so it is strong but not exhaustive.

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 content is front-loaded and every clause earns its place by naming either an inspected resource or a routing condition. It is written as a dense run-on sentence with three back-to-back imperatives, which costs some readability but not much substance.

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

Completeness5/5

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

There is no output schema, so the description compensates by enumerating the reported state categories and the 'next steps' ending. Combined with the read-only framing, call triggers, exclusions and sibling routing, an agent has everything needed to invoke this correctly and interpret the result.

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% for the single optional 'workspace' parameter, and the description never mentions it (no defaults, no resolution order, no interaction with CPS_WORKSPACE). Baseline 3 is the correct ceiling when the schema already documents the only parameter.

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 opens with a specific verb-plus-scope statement ('Check whether this machine is ready to work') and then enumerates exactly what state it inspects: pac CLI/.NET, active auth profile, cloud resources with usable tokens, environment variables, write policy, and the discovered workspace. This is far beyond restating the name and lets an agent distinguish it from status-like siblings such as cs_status or cs_login_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit triggers ('once at the start of a session', 'again when a tool fails and you need to know whether the CLI, the credentials or the workspace is the reason') and an explicit when-not ('when the user asked for something specific... call the tool for that thing instead'). It even routes to named alternatives, cs_create_agent and cs_guide, leaving essentially nothing to inference.

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