Skip to main content
Glama

Copy a connected service into another of the member's workspaces

connections_copy_connection
Destructive

Copy one connected service (Cloudflare, GitHub, AWS, ...) from one of the member's workspaces into another, so the receiving workspace uses the same account without a new sign-in. The copy SHARES the source's credential - nothing secret is duplicated, read into this conversation or returned. Allowed only while the member's cross-workspace access is ON (connections_cross_workspace_access) and BOTH workspaces are solely theirs; otherwise the reply is cross_workspace_refused with a reason and the settings link - say that and do not retry; when the member asked you to do it, mint a one-tap link with connections_copy_connection_link and send them that instead. Name the source EXACTLY ONE way: connectionId (the source row's id, from GET /v1/connected-services in the source workspace), or service (the connector slug, e.g. "ssh") + instance (that connection's instance name) - naming both forms together returns conflicting_source, and naming neither returns missing_source. fromProject defaults to whichever of the member's own workspaces holds that connection, the one this assistant is bound to included; pass it when service + instance matches in more than one workspace (the reply is ambiguous_source, listing each candidate's project_id) or to search only one. A not_found names the workspace searched - pass fromProject, or switch to service + instance, rather than guessing. Pass overwrite with a connection id in the TARGET workspace to replace a dead or duplicate connection in one act: the copy lands first, the old row is disconnected, and the copy takes its name. Returns {connectionId, projectId, instanceName, sharesCredential}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceNoWith `instance`, instead of connectionId: the connector slug of the connection to copy (e.g. "ssh").
instanceNoWith `service`, instead of connectionId: that connection's instance name in the source workspace.
overwriteNoOptional: a connection id IN THE RECEIVING WORKSPACE to replace; the copy takes its name.
toProjectYesThe receiving workspace's project id, ref or company id.
fromProjectNoThe source workspace's project id, ref or company id. Omit to use whichever of the member's own workspaces holds the connection.
connectionIdNoThe SOURCE connection's id (a UUID from /v1/connected-services). Or omit it and pass service + instance instead - exactly one of the two forms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / connectionId / description
      Previous value: -"The SOURCE connection's id (a UUID from /v1/connected-services)."New value: +"The SOURCE connection's id (a UUID from /v1/connected-services). Or omit it and pass service + instance instead - exactly one of the two forms."
    • changedInput schema / properties / fromProject / description
      Previous value: -"The source workspace's project id, ref or company id. Omit for the workspace this connection is bound to."New value: +"The source workspace's project id, ref or company id. Omit to use whichever of the member's own workspaces holds the connection."
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "With `service`, instead of connectionId: that connection's instance name in the source workspace.",
      +  "type": "string"
      +}
    • addedInput schema / properties / service
      Added value: +{
      +  "description": "With `instance`, instead of connectionId: the connector slug of the connection to copy (e.g. \"ssh\").",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "connectionId",
      -  "toProject"
      -]New value: +[
      +  "toProject"
      +]
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false; the description adds crucial context — the copy shares the credential, no secret is duplicated or returned, and overwrite replaces a dead/duplicate row in a single act. Also discloses error codes and their meaning, which goes well beyond annotations.

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?

Dense but front-loaded: purpose first, then constraints, then parameter rules, then return shape. A few clauses (e.g. the error-code enumeration) could be trimmed, but each earns its place given the tool's complexity.

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

Completeness5/5

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

Covers preconditions, safety profile, parameter selection rules, error recovery, the sibling hand-off, and the return shape {connectionId, projectId, instanceName, sharesCredential}. For a destructive, open-world mutation tool with no output schema, this is complete.

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 baseline is 3, but the description adds real semantic constraints: exactly one naming form (connectionId XOR service+instance), the resulting error codes (conflicting_source, missing_source, ambiguous_source), and overwrite's target-workspace scoping. It earns above baseline.

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 precise verb+resource+scope: copy a connected service from one of the member's workspaces into another, sharing the same credential. Distinguishes clearly from connections_copy_connection_link, which it names as the alternative for user-initiated copies.

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

Usage Guidelines5/5

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

Explicit preconditions (cross-workspace access ON, both workspaces solely owned), explicit routing to connections_copy_connection_link when the member asked, and explicit do-not-retry on cross_workspace_refused. Also gives guidance on when to pass fromProject and how to recover from not_found/ambiguous_source.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources