Skip to main content
Glama

sync_git_to_workspace

Synchronize a local Git repository or branch containing PBIP projects to a Fabric workspace, updating workspace items from version-controlled files.

Instructions

Deploy a local Git repository with PBIP projects to a Fabric workspace.

Use this tool when the user asks to:

  • Synchronize or publish a local Git repository or branch to a Fabric workspace.

  • Update workspace items based on version-controlled PBIP files.

Args: repo_path: Path to the local Git repository. workspace_id: Target Fabric workspace ID (UUID). branch_or_commit: Git ref to sync (default: "HEAD"). conflict_resolution: Conflict handling strategy ("manual", etc.). auth_mode: Optional auth mode ("interactive", "service_principal", "managed_identity"). tenant_id: Optional Azure AD tenant ID. client_id: Optional Azure AD client ID. dry_run: If True, calculate changes without publishing. fabric_client: Optional injected bridge/client (for testing).

Returns: Dict with synchronized items, skipped items, and deployment results.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo_path": "<repo_path>",
      "workspace_id": "<workspace_id>"
    },
    "name": "sync_git_to_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
auth_modeNo
client_idNo
repo_pathYes
tenant_idNo
workspace_idYes
fabric_clientNo
branch_or_commitNoHEAD
conflict_resolutionNomanual

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.25.1
    • addedInput schema / properties / auth_mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Auth Mode"
      +}
    • addedInput schema / properties / client_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Client Id"
      +}
    • addedInput schema / properties / fabric_client
      Added value: +{
      +  "default": null,
      +  "title": "Fabric Client"
      +}
    • addedInput schema / properties / tenant_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tenant Id"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Because no annotations are provided, the description carries the full weight of disclosure. It does add real behavioral context: dry_run calculates changes without publishing, and conflict_resolution sets the conflict handling strategy; it also lists the supported auth modes. However, it never states whether publishing overwrites or deletes existing workspace items, which permissions are required, or which auth mode is the default, and the schema default of dry_run=true is left unmentioned.

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 usage triggers are front-loaded, and the Args and Returns blocks are scannable. With 9 parameters and 0% schema coverage, the parameter listing earns its place. The Returns paragraph is partly redundant given that an output schema exists.

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 9-parameter deployment mutation with no annotations, the description supplies triggers, parameter meanings, auth options, dry_run semantics, and a return shape, which is close to sufficient. The remaining gap is operational: permission prerequisites, the default for auth_mode, and the consequence of publishing without dry_run are all absent, and these matter for a tool that writes to a workspace.

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?

Schema description coverage is 0%, so the Args block is the only parameter documentation an agent gets, and it does compensate for that gap by naming the tunable fields: branch_or_commit defaulting to HEAD, the auth_mode values, the conflict_resolution strategy, and the warning that fabric_client is for testing. It does this only shallowly, though: conflict_resolution is described only as "manual, etc.", tenant_id and client_id get no explanation of when they are needed, and repo_path and workspace_id largely restate their names.

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 opens with a specific verb and resource: "Deploy a local Git repository with PBIP projects to a Fabric workspace." The direction of the sync (Git to workspace) is unambiguous for an agent choosing between this tool and a sibling such as commit_workspace_to_git, although no sibling is named explicitly. It is clear and specific but stops short of explicitly telling the agent which alternative handles the reverse direction.

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?

A dedicated "Use this tool when the user asks to" block gives two concrete triggers: synchronizing or publishing a local repository or branch, and updating workspace items from version-controlled PBIP files. The usage context is therefore clear. The description does not say when not to use the tool, and it does not name alternatives for deployment without Git.

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