Skip to main content
Glama

commit_workspace_to_git

Commit a Fabric workspace to a local Git repository as .pbip files per item. Use dry run to validate changes, including warnings for uncommitted edits and files over 50MB.

Instructions

Snapshot a Fabric workspace into a local Git repo.

Reads workspace state via fabric_client.snapshot_workspace and commits each item as <type>/<name>.pbip. Warns on local uncommitted changes or large files (>50MB by default). dry_run skips the commit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNo
dry_runNo
workspace_idYes
exclude_itemsNo
commit_messageNo
output_repo_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses key behaviors: it reads workspace state via fabric_client.snapshot_workspace, commits each item as <type>/<name>.pbip, warns on uncommitted changes or large files, and dry_run skips the commit. Since no annotations are provided, the description carries the full burden, and it does a good job explaining side effects and safety mechanisms. It could add more detail about what happens to existing commits or how the repo is initialized, but it is quite transparent for a snapshot/commit tool.

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?

The description is concise and well-structured: a one-sentence summary followed by two sentences of key behavioral details. It front-loads the core purpose and then adds important caveats (warnings, dry_run). Every sentence earns its place, and the format is easy to scan.

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?

The tool has 6 parameters, no annotations, and an output schema. The description covers the main workflow and safety behaviors, but it does not explain the output schema or the exact role of parameters like branch and exclude_items. Given the complexity of a Git commit operation, a bit more detail on parameter effects and the output would make it complete. Still, it is largely sufficient for an agent to invoke it correctly.

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 description must compensate for the 6 parameters. It mentions dry_run and the commit behavior, but it does not explain the meaning of workspace_id, output_repo_path, branch, exclude_items, or commit_message beyond what their names imply. The description adds some context (e.g., dry_run skips the commit) but leaves most parameter semantics to the schema, which has no descriptions. This is a clear gap.

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 clearly states the tool's purpose: 'Snapshot a Fabric workspace into a local Git repo.' It specifies the verb (snapshot/commit), the resource (Fabric workspace), and the destination (local Git repo). It also distinguishes itself from sibling tools like sync_git_to_workspace by focusing on committing workspace state to a local repo, not syncing from Git.

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?

The description implies when to use this tool: when you need to snapshot a workspace into a local Git repo. It mentions 'Warns on local uncommitted changes or large files' and 'dry_run skips the commit,' which gives context for safe usage. However, it does not explicitly state when not to use it or name alternative tools like sync_git_to_workspace, so it falls short of a 5.

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