Skip to main content
Glama

ck_git_commit

Destructive

Validate a commit message against CK governance policy and create a git commit only if validation passes and no blocked findings exist.

Instructions

Validate a commit message against CK governance policy and execute git commit if validation passes and no findings are blocked. Write operation — creates a git commit in the repository when validation succeeds. Returns validation result, any blocked findings, and the commit SHA on success. If blocked findings exist, the commit is not created and the findings are returned for remediation. Use ck_git_status first to confirm governance state, then ck_git_commit to create the commit. Does not push to remote — use git push separately after commit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesCommit message text.
project_rootNoAbsolute path to the project root directory on the local filesystem.
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
messageNo
shaNo
validationNo
Behavior5/5

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

The description transparently discloses the tool's write nature ('Write operation — creates a git commit') and the conditional behavior when blocked findings exist ('the commit is not created and the findings are returned for remediation'). It aligns with annotations (destructiveHint=true) and adds context beyond them.

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, with no wasted words. It front-loads the primary action and then adds key details in a logical order: validation, write operation, return values, usage order, and push reminder.

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 the existence of an output schema, the description appropriately explains return values and the condition for commit creation. It also includes pre-requisite advice (ck_git_status) and post-commit step (push separately), making it self-contained for the agent.

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?

The description adds context to the 'message' parameter by mentioning validation against governance policy. For 'project_root', the schema already provides adequate description. The 'session_id' parameter lacks description in both schema and description, which slightly reduces score. With 67% schema coverage, the description partially compensates.

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 explicitly states the tool's dual function: validating a commit message against CK governance policy and executing git commit if validation passes. It also distinguishes from sibling tools like ck_git_status and ck_git_diff by noting the pre-requisite of checking governance state first.

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?

The description provides clear when-to-use guidance: 'Use ck_git_status first to confirm governance state, then ck_git_commit to create the commit.' It also advises that the tool does not push to remote, directing the user to use git push separately.

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/aryaminus/controlkeel'

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