Skip to main content
Glama

commit_push

Stages all changes, commits them with your message, and pushes the current chatgpt/* branch to origin without force. Use it after reviewing the diff and checks, before creating a pull request.

Instructions

Stage every change (git add -A), commit with the message, and push the current chatgpt/* branch to origin (never --force). Refused on any other branch. Call after git_diff and run_check; then pr_create. Returns commit and push exit codes and output.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "commit_push"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesCommit message; first line is the subject, e.g. 'fix: handle empty input'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already disclose readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true. The description adds behavior beyond those fields: it stages everything indiscriminately (git add -A), never force-pushes, refuses non-chatgpt/* branches, and returns commit and push exit codes. It stops short of covering auth requirements or what happens if the push is rejected, which keeps it at 4 rather than 5.

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?

Three tight sentences: what it does first, constraints and ordering second, return values last. Every clause carries information — no filler and no repetition of the title.

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?

For a one-parameter write tool with annotations and no output schema, this covers the workflow position, the hard failure condition, the no-force guarantee, and the return values. Nothing an agent needs before invoking it is missing.

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% and the single 'message' parameter is documented with a subject-line example, so the schema does the heavy lifting. The description only restates 'commit with the message' without adding format or length constraints, which is the baseline for fully-covered schemas.

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 states a specific verb chain and resource: stage all changes with git add -A, commit with the message, and push the chatgpt/* branch to origin. It also pins the scope ('every change', 'current chatgpt/* branch'), so an agent can distinguish it from siblings like git_diff or pr_create without further reading.

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?

Explicit sequencing is given: call after git_diff and run_check, then pr_create. The negative case is also stated — 'Refused on any other branch' — so both when-to-use and when-not-to-use are covered.

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