Skip to main content
Glama

github_mcp.create_file_commits

Creates one local Git commit per changed path from a reviewed job snapshot, verifies the final tree, and returns commit SHAs and checks without pushing.

Instructions

Create one real local commit per changed path from the reviewed job snapshot, then verify the final tree. Requires applicable local approval and policy; may reconcile an already completed commit chain. Returns job report with commit SHAs and checks. Does not push.

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": {
      "job_id": "<job_id>"
    },
    "name": "github_mcp.create_file_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesExisting job identifier with reviewed snapshot and applicable local commit approval.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • addedInput schema / properties / job_id / description
      Added value: +"Existing job identifier with reviewed snapshot and applicable local commit approval."
  2. First observedv1.0.1

TDQS

A4/5.0
Behavior5/5

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

The annotations only declare readOnly=false, destructive=false and openWorld=false; the description layers on the actual effects (per-path local commits, tree verification), the approval/policy gate, the possibility of reconciling an already-completed chain, and the fact that nothing is pushed. That is exactly the extra behavioral context the annotations cannot carry.

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, front-loaded with the core action, then prerequisites, then the push exclusion. No filler and nothing buried.

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 one-parameter mutation tool with annotations and an output schema, the entry covers prerequisites, side effects, idempotent-style reconciliation and return contents. Only the failure mode when approval or policy is absent is left unstated.

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?

With a single parameter at 100% schema description coverage, the schema already explains that job_id must reference an existing job with a reviewed snapshot and commit approval. The description's 'from the reviewed job snapshot' and approval mention restate that rather than adding new constraints or formats.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and effect: one real local commit per changed path from a reviewed job snapshot, plus a final tree verification. The closing 'Does not push' cleanly separates it from publishing siblings such as publish_branch, though no other sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The prerequisites (applicable local approval and policy) and the reconcile-existing-chain case give a real sense of when this is applicable, but the description never says which alternative to use instead — e.g. when to plan or preview rather than commit. Usage context is implied rather than stated.

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