Skip to main content
Glama
JSungMin

vs-token-safer

vts_git

Compacts output of read-only git commands (status/log/diff) into token-capped summaries: groups status by type and directory, logs one line per commit, diffs by file diffstat. Refuses mutating commands.

Instructions

Run a READ-ONLY git command and return its output COMPACTED (token-capped) — for status/log/diff, which the language-server index can't help with but whose raw dump is verbose and repetitive. status groups by change-type + directory; log keeps one line per commit; diff collapses to a per-file +/- diffstat (no hunk bodies). Mutating subcommands (commit/reset/checkout/clean/push/merge/rebase) are REFUSED — this only compacts output; run those directly. Use instead of a raw git status/log/diff.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argvNoGit subcommand + flags, e.g. ["status","-s"] or ["log","--oneline"].
argsNoAlternative to argv: the subcommand as one string, e.g. "status -s".
projectPathNoRepo root to run in (default: configured projectPath or cwd).
maxResultsNo
Behavior5/5

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

Despite no annotations, the description fully discloses behavior: output is compacted and token-capped, format details for status (groups by change-type+directory), log (one line per commit), and diff (per-file +/- diffstat). Also mentions refusal of mutating subcommands.

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 paragraph that front-loads purpose and structure, then details output formats and usage guidelines. Every sentence adds value; no redundancy.

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?

Given no output schema, the description adequately explains the return format (compacted, summaries). It covers inputs, constraints, and behavior, making it complete for an agent to invoke correctly.

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 75% (3 of 4 params described). The description doesn't add parameter details but clarifies that argv and args are alternatives and implies maxResults controls token cap. This is sufficient beyond the schema.

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 runs READ-ONLY git commands and compacts output for status/log/diff. It distinguishes from raw git commands and lists specific subcommands, providing a specific verb and resource.

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?

Explicitly states when to use (for status/log/diff where index can't help, output verbose) and what is refused (mutating subcommands). Also suggests running mutating commands directly, providing clear guidance and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JSungMin/vs-token-safer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server