Skip to main content
Glama
t-rhex

mcp-obsidian-vault

by t-rhex

git_sync

Perform Git version control operations on your Obsidian vault: commit changes, pull remote updates, push backups, and run full sync with one action.

Instructions

Git version control for your vault. Actions: 'status' (show changes), 'commit' (stage all + commit), 'pull' (fetch remote changes), 'push' (push to remote), 'sync' (pull+commit+push in one operation), 'log' (commit history), 'diff' (show changes), 'init' (initialize git repo + .gitignore), 'remote_add' (add remote), 'remote_list' (list remotes).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoFile path for 'diff' action. If omitted, shows all changes.
limitNoNumber of commits to show for 'log' action. Default: 10.
actionYesGit action to perform. 'sync' does pull+commit+push in one operation. 'init' initializes a new git repo with a sensible .gitignore.
messageNoCommit message (for 'commit' and 'sync' actions). Auto-generated if not provided.
remote_urlNoRemote URL (for 'remote_add'). e.g. 'git@github.com:user/vault.git'
remote_nameNoRemote name (for 'remote_add'). Defaults to 'origin'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It does disclose key behaviors: commit stages all changes, sync combines pull+commit+push, init adds a .gitignore, and remote_name defaults to origin. However, it omits side effects and failure modes such as what happens when pull or sync encounters conflicts, whether operations mutate the vault irreversibly, and what authentication or repository-state prerequisites exist.

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 a single dense, scannable sentence with no filler. Each listed action maps directly to an enum value in the schema, and the 'Git version control for your vault' purpose is front-loaded.

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 multi-action tool with no output schema and no annotations, the description covers all ten actions and their primary parameter semantics well enough to invoke the tool correctly in most cases. The main remaining gaps are return-value formats and conflict/error behavior, but the schema fills in parameter details and the action list is comprehensive.

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. The description adds genuine value by explaining action-specific parameter usage: path is for diff, limit for log, message for commit/sync, and remote_name/remote_url for remote_add. It also clarifies the combined behavior of 'sync' beyond what the schema alone states.

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 opens with 'Git version control for your vault' and enumerates ten distinct actions with one-line explanations. This makes it unmistakably a multi-action git tool and separates it from the note/task management siblings.

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?

No sibling tool duplicates git functionality, so alternative routing is unnecessary. Instead, the description provides concrete per-action guidance: 'sync' means pull+commit+push, 'diff' takes a path, 'log' takes a limit, and 'commit' auto-generates a message. It lacks explicit 'when not to use' exclusions, but intended usage is clear.

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