Skip to main content
Glama

runrunit_commit_per_file

Plan and create one Git commit per changed file in dependency order, skipping secrets and using numbered type-prefixed subjects; defaults to a dry-run plan until approved.

Instructions

Plans one commit per changed file, in dependency order, with a [numero] - [tipo] - [descrição] subject. Excludes likely secrets. Default is plan. Pass approved:true and the same commits list to create the commits. Does not open a pull request. If includes_pr is true, next_tool is runrunit_check_pr.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoDefault commit type when a file does not set its own.
filesNoOptional explicit files. Secrets in this list are dropped from the plan.
commitsNoApproved commits (path + message). When present, this list is used as-is and is not reordered. Required shape of the plan you are approving.
task_idNoTask number, or task_[número]. Used in branch names and commit subjects.
approvedNoDefault false. When false or omitted, returns a plan and does not change git. Set true only after the user approves that plan.
descriptionNoDefault description when a file does not set its own.
includes_prNoWhen true, next_tool is runrunit_check_pr. This tool still does not open a PR.
project_rootYesAbsolute path of the git repository. Required for tools that read or write that repo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and largely succeeds: it discloses the safe default (plan, no git mutation), the secret-filtering behavior, the side-effect boundary (does not open a PR), and the routing hint for next_tool. These are exactly the safety and state-change facts an agent needs before invoking a git-writing 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?

Four short sentences with the purpose front-loaded, then the plan/execute rule, then scope boundaries. Every sentence contributes new information with no filler or repetition of the schema.

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-parameter git-writing tool with no annotations and no output schema, the description covers the critical behavior: default mode, execution trigger, secret handling, and PR boundary. The one gap is the shape/content of the returned plan, which is only described as "a plan" rather than what the agent should inspect before approving.

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 100%, so the schema already documents all eight parameters, including the plan/execute semantics of approved and the as-is handling of commits. The description reinforces a couple of these but adds no syntax, format, or constraint details beyond what the schema provides, so the baseline of 3 applies.

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 specific verb and resource ("Plans one commit per changed file, in dependency order") plus the exact subject format and secret exclusion. This is immediately distinguishable from siblings like runrunit_format_commit_message and runrunit_create_pr_github, since it explicitly says it does not open a pull request.

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?

Explains the two-phase flow precisely: default is plan-only, and execution requires passing approved:true with the same commits list. It also names the follow-on tool conditionally ("If includes_pr is true, next_tool is runrunit_check_pr"), so the agent knows how to sequence this against other tools.

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