Skip to main content
Glama

Scaffold a cloud flow (experimental)

cs_add_flow

Generates a workflow for Copilot Studio agents with a call trigger and response, and can expose the flow as a reusable tool.

Instructions

EXPERIMENTAL: write workflows//metadata.yaml + workflow.json for a flow with the 'when an agent calls the flow' trigger and a response, optionally exposing it as a tool. Format follows the schema's CloudFlowDefinition and the Power Automate solution JSON; verify with cs_pack and in the portal after push.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
inputsNo
actionsNoExtra Power Automate actions (name -> definition) inserted before the response
addToolNoAlso create actions/<name>.mcs.yml invoking this flow
outputsNo
overwriteNo
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description must carry the behavioral burden. It flags 'EXPERIMENTAL' but says nothing about overwrite semantics, permissions, whether it pushes to the portal, or any side effects. The mention of 'verify with cs_pack and in the portal after push' implies a local-file workflow, but this is understated and could mislead an agent into thinking the flow is live immediately.

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?

Single sentence, front-loaded with the experimental warning, then states the core action. It packs a lot of information without fluff, though the format references are dense. It earns a 4 for efficiency, not for clarity of usage.

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?

For an 8-parameter tool with nested objects and no output schema, the description is far from complete. It doesn't explain how inputs/actions/outputs are structured, what the response is, or how overwrite behaves. The verification step is useful but not a substitute for usage semantics. An agent would need to inspect the schema and possibly sibling tools to call it correctly.

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

Parameters2/5

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

Schema description coverage is only 38%, and the description does not compensate. It only references 'Name' implicitly. Inputs, outputs, actions, overwrite, and workspace are left undefined. The schema descriptions for addTool and workspace are present but minimal, and the description adds no further meaning for the array/object parameters.

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 states a specific verb ('write'), resource (workflows/<Name>/metadata.yaml + workflow.json), and the exact trigger ('when an agent calls the flow') and response. This clearly distinguishes it from siblings like cs_create_flow or cs_build_flow_definition, which operate on live flows or build definitions. The experimental tag is upfront.

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?

No guidance on when to use this tool versus alternatives. It doesn't mention that it creates local scaffold files vs. modifying an existing flow, nor does it compare with cs_update_flow or cs_create_flow. The only hint is the verification step, but that's post-action, not a selection criterion.

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