Skip to main content
Glama

Add a topic

cs_add_topic

Create a Copilot Studio topic from a declarative spec with triggers, messages, questions, conditions, and actions, then validate and apply it to your agent workspace.

Instructions

Create topics/.topic.mcs.yml from a declarative spec: trigger phrases (or a system trigger) plus message / question / condition / redirect / setVariable / searchKnowledge / http / invokeFlow / end / raw nodes. Validates the result. Push to apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
actionsYes
priorityNo
overwriteNo
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.
descriptionNo
triggerKindNoSystem trigger instead of phrases
triggerPhrasesNoUser phrases that start the topic (OnRecognizedIntent)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description adds some behavioral context: it says it 'Validates the result' and gives a workflow cue via 'Push to apply.' However, it does not disclose side effects such as overwrite behavior, workspace path resolution, what happens when validation fails, or whether the tool itself pushes changes or only stages them.

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 description gets to the point quickly and each clause adds information: the resource being created, the spec shape, validation, and the push action. It is slightly dense because of the long node-type list, but there is no filler or repetition holding back.

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

Completeness2/5

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

The tool has 8 parameters including a large action schema, no output schema, and no annotations. The description does not explain expected return values, failure modes, whether the push must be done with a separate tool, or workspace/overwrite semantics, so a caller must guess or rely entirely on the schema for an invoke.

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 description explains trigger phrases vs a system trigger and lists the expected action node types, which the role of the 'actions' array at a high level. But with only 38% schema coverage it doesn't compensate for undocumented concerns like 'overwrite', 'priority', 'description', or the workspace parameter, and the node list is incomplete (missing card, transfer, endConversation) even though the schema supports them.

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 uses a precise verb and resource ('Create topics/<name>.topic.mcs.yml') and names the main ingredients of the declarative spec. It clearly distinguishes the creation function from siblings like cs_edit_topic by using 'Create' and mentioning the file path pattern.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance or mention of alternatives. The tool name and 'Create' imply new-topic use, but the description does not tell the agent when to prefer this over cs_edit_topic, cs_add_trigger, or other mutation tooling, and it omits final state requirements like when a push is needed.

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