Skip to main content
Glama
Akxan
by Akxan

Commit an email attachment to GitHub

github_commit_attachment
Destructive

Commit a Gmail attachment to a GitHub branch, optionally converting or resizing images server-side; use dryRun to preview dimensions and bytes.

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.

Input Schema

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

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (destructiveHint=true, openWorldHint=true, non-idempotent, not read-only), so the bar is lower. The description still adds real context: server-side-only processing ('Nothing passes through the client') and precisely what dryRun returns (attachment, resulting dimensions and bytes) without committing. It stops short of stating overwrite behavior at an existing path.

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 sentences, zero waste. The core action is front-loaded and the dryRun behavior is placed last as a secondary mode, which matches how an agent will read it.

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 complex 15-parameter image-conversion-and-commit tool with no output schema, the description covers the pipeline, the server-side processing, and the dryRun reporting mode well. It leaves minor gaps around createBranch and path-collision semantics, but nothing an agent needs to invoke it correctly is fundamentally 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 67% and the schema already documents width/height, focus, variants, convert and format richly. The description reinforces those concepts ('webp by default, cover-crop, variants') but adds little semantic detail beyond the structured fields, so the baseline 3 is appropriate. It does not clarify undocumented params like createBranch or quality.

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 specific verb (commit), the source resource (a Gmail attachment), and the destination (a repo branch), and names the upstream sibling gmail_find_attachments. The scope is distinct from github_commit_files/github_commit_image because it takes the bytes straight from Gmail with nothing passing through the client, so an agent can tell it apart without opening a schema.

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?

It implies the workflow clearly by pointing at gmail_find_attachments as the way to obtain the messageId/filename, and it explains the dryRun preview path. However it never says when to prefer this over the related commit siblings (github_commit_files, github_commit_image) or any when-not-to-use condition, leaving routing to inference.

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