Skip to main content
Glama

Validate workspace YAML

cs_validate

Validate Copilot Studio component files against the authoring schema and cross-file references to find broken kinds, missing properties, duplicate IDs, Power Fx errors, and bad redirects before push.

Instructions

Structural validation of every component file against the Copilot Studio authoring schema (kinds, unknown/missing properties, duplicate ids, placeholders, Power Fx prefixes, variable scopes) plus cross-file checks (connection references, topic redirects). Answers 'is anything broken in these files?'; it only reads them and sends nothing anywhere. cs_push runs it itself and blocks on errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoValidate a single file (relative to workspace)
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.1/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 discloses that it 'only reads them and sends nothing anywhere' (safety/read-only), lists the validation categories (kinds, duplicate ids, placeholders, Power Fx prefixes, variable scopes, cross-file checks), and its relationship to cs_push. It stops short of return-value or severity/reporting behavior.

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-loaded with the core action and scoping, followed by the check inventory and the read-only note. The long parenthetical is dense but each item is informative; no filler sentences.

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 establish safety and coverage, which it does via the read-only statement and the enumerated check categories. It leaves the shape of the validation report (severity, error list format) unspecified, but nothing needed to invoke it correctly is missing.

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 both parameters are already documented in the schema. The description implies scope ('every component file') but adds no syntax, path-format, or workspace-resolution detail beyond what 'file' and 'workspace' already say, so the baseline of 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+resource ('Structural validation of every component file against the Copilot Studio authoring schema') and enumerates the exact check classes it covers. An agent can distinguish it from cs_check_drift, cs_status, or cs_review_agent without opening any schema.

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?

Frames its purpose as answering 'is anything broken in these files?' and notes that 'cs_push runs it itself and blocks on errors', which tells the agent when this is redundant. It does not explicitly contrast with nearby siblings like cs_check_drift, so it falls short of a full when/when-not/alternatives statement.

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