Skip to main content
Glama
google-seo-mcp
by Akxan

Commit file changes to GitHub

github_commit_files
Destructive

Commit multiple file additions, updates, or deletions to a GitHub branch as one atomic change, with optional dry-run preview and branch creation, so CI/CD can deploy updates.

Instructions

One atomic commit that adds, updates, edits or deletes several files on a branch (Git Data API); the site's CI/CD then deploys. Per file give exactly one of: content (full replacement; set encoding=base64 for binary), edits (in-place find/replace against the branch's current file, right for large files such as a 300 KB content bundle), or delete. createBranch=true creates the branch from the default branch first. dryRun previews sizes, changed-line counts and whether each edit matches exactly once, without committing.

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": {
      "repo": "<repo>",
      "branch": "<branch>",
      "message": "<message>",
      "files": "<files>"
    },
    "name": "github_commit_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository as 'owner/name', e.g. 'octocat/my-site'.
filesYes
branchYesBranch to commit to, e.g. 'main'.
dryRunNoPreview only: report each file's action, sizes and changed-line counts (edits are validated) without committing.
messageYesCommit message in the repository's conventions.
createBranchNoIf true, create `branch` from the repo's default branch when it does not exist yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed4 schema fields changedv0.8.0
    • changedInput schema / properties / dryRun / description
      Previous value: -"Preview only: compare each file with the branch's current content (size and changed-line counts) without committing."New value: +"Preview only: report each file's action, sizes and changed-line counts (edits are validated) without committing."
    • changedInput schema / properties / files / items / properties / content / description
      Previous value: -"Full new file content (UTF-8). Omit when delete=true."New value: +"Full new file content. UTF-8 text, or base64 when encoding=base64."
    • addedInput schema / properties / files / items / properties / edits
      Added value: +{
      +  "description": "Applied in order to the file's current content on the branch; the file must exist and be text.",
      +  "items": {
      +    "properties": {
      +      "all": {
      +        "default": false,
      +        "description": "Replace every occurrence instead of requiring a single match.",
      +        "type": "boolean"
      +      },
      +      "find": {
      +        "description": "Exact text to replace; must occur once (include context to disambiguate).",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "replace": {
      +        "description": "Replacement text (may be empty, may span lines).",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "find",
      +      "replace"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / files / items / properties / encoding
      Added value: +{
      +  "default": "utf8",
      +  "description": "base64 for binary files (images, fonts).",
      +  "enum": [
      +    "utf8",
      +    "base64"
      +  ],
      +  "type": "string"
      +}
  3. Changed4 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "default": false,
      +  "description": "Preview only: compare each file with the branch's current content (size and changed-line counts) without committing.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / files / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / message / description
      Previous value: -"Commit message. Follow the repository's conventions (language, style)."New value: +"Commit message in the repository's conventions."
  4. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds substantial context beyond them: the commit is atomic, it triggers the site's CI/CD deploy, edits are applied in order against the branch's current content and must match exactly once, files must already exist and be text for edits, and dryRun validates matches and reports sizes/changed-line counts without committing.

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 dense sentences, front-loaded with the core action, then the per-file mode rules, then branch creation, then the dryRun escape hatch. Every clause carries operational information; nothing is restated from the name or title.

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 destructive, multi-file mutation tool with no output schema, the definition covers atomicity, mode selection, branch bootstrapping, and a validation path. It omits what a successful call returns (commit SHA, per-file results) and how conflicts or non-fast-forward states surface, which an agent committing to a shared branch would benefit from knowing.

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 83%, so the schema already documents most parameters (repo format, encoding, edits.find/all, dryRun). The description still adds meaning the schema does not: the mutual exclusivity constraint that each file must supply exactly one of content/edits/delete, and the ordering semantics of edits against current branch content. That is real added value above the baseline 3.

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?

Names a specific verb and resource: 'One atomic commit that adds, updates, edits or deletes several files on a branch (Git Data API)'. The multi-file, single-commit scope implicitly but clearly separates it from the single-file siblings github_commit_attachment and github_commit_image, and the CI/CD consequence is stated up front.

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

Usage Guidelines4/5

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

Gives explicit decision rules among the three per-file modes: 'content' for full replacement, 'edits' for in-place find/replace against the branch's current file ('right for large files such as a 300 KB content bundle'), or 'delete'. Also explains when to set createBranch and dryRun. It does not point to a sibling (e.g. github_get_file) for reading current content before crafting edits, so guidance stops just short of full routing.

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