Skip to main content
Glama

Bind a flow's connection

cs_bind_flow_connection

Binds a flow's connection reference to a real connection so the flow can be switched on; optionally activate it in the same call after binding.

Instructions

Point one of a flow's connection references at a real connection, which is the step that lets a flow be switched on. Picks the reference and the connection for you when there is only one of each, and asks when there is a choice. Handles both shapes: a flow that names a connection directly is edited in place, while a flow that came from a solution has its connectionreference row bound instead. Pass activate: true to turn the flow on in the same call once it is bound. Changes a live environment: requires confirm: true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowIdYesFlow (workflow) id (cs_list_flows)
searchNoNarrow the candidate connections by display name or owner
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
activateNoTurn the flow on after binding; default false
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.
connectorNoConnector id, e.g. shared_office365, to choose the reference by connector instead
referenceNoWhich connection reference to bind; only needed when the flow has more than one
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.
connectionIdNoThe connection to bind (its name from cs_list_connections); default: the only usable one for this connector
dataverseUrlNoDataverse URL; default: from the workspace or the environment
environmentIdNoPower Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.6

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so: it discloses auto-resolution behavior, that it handles two distinct storage shapes (directly-named connection edited in place vs. a connectionreference row bound for solution flows), that it mutates a live environment and requires confirm: true, and the activation side-effect of activate: true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the purpose and the enables-activation framing, then edge-case behavior, then the mutation confirmation requirement. No wasted clauses.

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 12-parameter mutation tool with no annotations and no output schema, the description adequately covers prerequisite (confirm), side effect (activate), and the branching behavior. It omits return/error semantics and success signaling, which are minor given the schema documents defaults and dry-run behavior.

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 coverage is 100%, so the baseline is 3, but the description adds real semantics beyond the schema: it explains the reference/connectionId correlation (which is auto-resolved when singular, chosen otherwise) and the two binding paths that govern which parameters apply. It still doesn't clarify connector-vs-reference selection precedence or defaults in prose.

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 (bind) and resource (a flow's connection reference), and adds the crucial scope that this is the step that enables a flow to be switched on. An agent can distinguish it from cs_set_flow_state, cs_update_flow, and cs_create_connection 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?

Gives clear context for when this tool is needed and how its arguments resolve ambiguity ('Picks the reference and the connection for you when there is only one of each, and asks when there is a choice'), plus the activate-in-same-call path. It stops short of naming sibling alternatives explicitly (e.g. when to bind vs. use cs_set_flow_state or cs_update_connection), so not a 5.

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