Skip to main content
Glama

Run local conversation tests

cs_run_conversation_tests

Run YAML conversation tests against a published Copilot Studio agent to verify wording and tool usage, reporting pass/fail with observed topic, tool, and citations.

Instructions

Run a YAML test file (tests: name, utterance, expect, continueConversation) against the published agent through cs_chat and report pass/fail. expect asserts on wording (contains, containsAny, notContains, regex, minLength, noSignIn) and on what the agent did (usedTool, notUsedTool, usedTopic, notUsedTopic, citedKnowledge), so a test can tell a real tool call from an answer that merely sounds right. Every result reports the observed topic, tool and citations whether or not it asserted on them. The CLI-native complement to portal evaluations. Pass writeExample to create a starter file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNo
botIdNoAgent (bot) id. Defaults to workspace sync metadata or CPS_AGENT_ID.
testsNo
clientIdNoEntra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id.
tenantIdNoEntra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID.
transportNoauto detects the agent's authentication mode via Dataverse; directline for no-auth/manual-auth agents; sdk for Entra SSO agents
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.
schemaNameNo
stopOnFailNo
dataverseUrlNo
writeExampleNoPath to write an example test file, then return
environmentIdNoPower Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID.
tokenEndpointNoExplicit DirectLine token endpoint
conversationIdNoContinue an earlier conversation from cs_chat
directLineSecretNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.8/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 behavioral disclosure burden. It states that tests run only against the published agent, that every result reports the observed topic, tool and citations even when not asserted, and that it reports pass/fail. It does not explicitly state whether running changes anything or its effect against the agent, but its non-destructive nature is strongly implied except for writeExample.

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?

Four sentences carry distinct loads: the invocation target, the assertion semantics, the reporting behavior, and a positioning/cli tip. It is dense and useful, with no empty filler, though the writeExample tip slightly repeats what the schema already says.

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 15 parameter tool with no output schema, the description does well: it explains the YAML format, the assertion surface, the through-cs_chat execution path, and the report content (pass/fail, plus always-present observed topic, tool, citations). It does not detail the full output structure or the remaining undocumented params, but an agent can meaningfully formulate and parse the results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 60%, so the description must compensate. It adds real meaning to the most critical and least-constrained parameter, expect, by enumerating its supported assertion forms (contains, containsAny, notContains, regex, minLength, noSignIn, usedTool, notUsedTool, usedTopic, notUsedTopic, citedKnowledge). It also describes the YAML test file shape. Parameters like file, stopOnFail, dataverseUrl, and directLineSecret remain without explanation.

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 states a specific verb+resource: "Run a YAML test file" against "the published agent through cs_chat" and report pass/fail. It also explains the assertion scope (wording plus tool/topic/citation checks), which separates it from a plain chat or evaluation tool. It does not explicitly name sibling tools like cs_run_evaluation, so the distinction is clear but implicit.

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 CLI-native complement to portal evaluations" locates the tool relative to portal-style evaluation UX, and "through cs_chat" suggests it parallels the chat tool. However, it does not explicitly name alternative siblings (cs_run_evaluation, cs_create_test_set_csv, cs_create_test_set) or specify a when-not-to-rule, so guidance is inferred rather than stated.

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