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

Commit an email attachment to GitHub

github_commit_attachment
Destructive

Commit a Gmail attachment directly to a GitHub branch, optionally converting or resizing images server-side; dryRun previews results without committing.

Instructions

Take an attachment from a Gmail message (found with gmail_find_attachments), optionally convert/resize it on the server when it is an image (webp by default, cover-crop, variants), and commit the result to a branch. Nothing passes through the client. dryRun reports the attachment and the resulting dimensions and bytes 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": {
      "messageId": "<messageId>",
      "repo": "<repo>",
      "branch": "<branch>",
      "message": "<message>",
      "path": "<path>"
    },
    "name": "github_commit_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDestination path in the repo, e.g. 'public/assets/img/blog/cover.webp'.
repoYesRepository as 'owner/name'.
focusNoCrop anchor: 'attention' keeps the visually busiest region, 'centre' crops symmetrically.attention
widthNoTarget width. With height too, the image is cover-cropped to exactly that size; alone, height follows the aspect ratio. Never upscaled.
branchYesBranch to commit to, e.g. 'main'.
dryRunNo
formatNowebp
heightNo
convertNoImages: convert/resize on the server with the options below; false commits the original bytes unchanged.
messageYesCommit message in the repository's conventions.
qualityNo
filenameNoAttachment file name as listed; omit when the message has exactly one attachment.
variantsNoExtra outputs from the same source (same format/quality/focus), e.g. a 1000×562 card version.
messageIdYesGmail message id from gmail_find_attachments.
createBranchNo

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. Addedv0.8.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the destructiveHint/openWorldHint annotations, it discloses that processing happens server-side ("Nothing passes through the client") and that dryRun returns attachment, dimensions and bytes without writing. It does not mention auth/permission requirements or that repeated calls produce new commits, but the annotation set already signals mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences that front-load the core action and end with the dryRun preview, with no filler. The parenthetical option list is compact but slightly crowded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter mutating tool with no output schema, the description covers the main flow and dryRun output but says nothing about createBranch, quality, focus behavior, or failure cases such as a missing/ambiguous attachment. It is adequate but leaves notable gaps.

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 67%, and the description adds real meaning for the undocumented dryRun parameter (reports without committing) and for convert (server-side image conversion, webp default, cover-crop, variants). Some of the conversion wording mirrors what the schema already says for width/format, so it is additive rather than fully compensating.

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 concrete verb chain (take attachment -> optionally convert -> commit to a branch) on a specific resource, and names the upstream sibling gmail_find_attachments as the source. An agent can distinguish this from github_commit_files and github_commit_image purely from the description.

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 clear entry conditions: the file comes from a Gmail message located via gmail_find_attachments, and dryRun exists as a preview path before committing. It does not explicitly contrast against github_commit_image or github_commit_files, so the agent must infer when to prefer those instead.

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