Skip to main content
Glama

Start a session

cs_init

Checks machine readiness for Copilot Studio: .NET/pac CLI, active auth, usable tokens, env vars, write policy, and workspace; reports next steps. Read-only; run 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. First observedv0.1.5

TDQS

A4.3/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 well: it declares 'Read-only', explains the diagnostic purpose (isolating CLI vs. credentials vs. workspace as a failure cause), and enumerates the reported state. It stops short of describing the return shape or any error/timeout behavior, but the read-only and diagnostic traits are clearly disclosed.

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?

Front-loads what gets checked, then usage, then the negative routing rule. The long enumeration is justified by the breadth of the check, but the third clause ('It reports the state of the machine and nothing else') and the sibling examples add density that slightly dilutes the core message.

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?

No output schema and no annotations, so the description must supply everything - and it enumerates the reported checks, declares read-only, and routes usage correctly. An agent has what it needs to select and invoke it; only the exact return format remains implicit.

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?

One optional parameter with 100% schema description coverage, so the schema already fully documents the workspace path and its CPS_WORKSPACE/current-directory default. The description only alludes to the workspace ('the agent workspace it found') without adding format or resolution semantics beyond the schema, so the baseline 3 applies.

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?

States a specific verb (check) and resource (machine readiness), then enumerates exactly what is inspected: pac CLI/.NET, active auth profile, token-bearing cloud resources, env vars, write policy, and the discovered workspace. It explicitly draws the boundary against siblings ('reports the state of the machine and nothing else'), so an agent can distinguish it from cs_status, cs_guide, or cs_create_agent without opening schemas.

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?

Gives explicit when-to-use ('once at the start of a session, and again when a tool fails') and when-not ('when the user asked for something specific... call the tool for that thing instead'), naming cs_create_agent and cs_guide as alternatives. Nothing is left 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