Skip to main content
Glama

Commit

commit
Destructive

Change your Outer app's files and deploy: full-file writes, exact-match edits (old must occur exactly once), line-anchored line_edits (inclusive 1-based ranges from read_files numbering) and after-line inserts, or one unified diff / *** Begin Patch block (stands alone; hunks apply with exact context and any reject fails the whole commit). Per-file expect_blob pins the blob you read: a stale blob answers conflict with the current blob, unrelated files never conflict; whole-head base still CASes the tip. Counts one code change; waits for the deploy and returns success + url, failed + log, or blocked + the lines to fix. Written/edited code is formatted with oxfmt before the commit: commit.formatted lists changed files, commit.format_skipped lists files committed unformatted with why. Pass preview: true to trial the change at a temporary preview URL instead (Pro): same gate, a fresh empty data namespace, live untouched.

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": {
      "app": "<app>",
      "message": "<message>"
    },
    "name": "commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
baseNoExpected head (CAS): a moved head answers conflict with current_sha.
waitNoWait for the deploy (default true). False returns immediately; poll deploy_status (with preview: true for a preview commit).
editsNoExact-match replacements in existing files. A file with exact edits carries no line_edits or inserts in the same commit; send them as separate commits.
movesNoFile renames.
patchNoOne unified diff, or a `*** Begin Patch` block. A commit carrying patch carries no other change kind. Hunks apply with exact context; any reject fails the whole commit.
writesNoFull-file writes (new files or replacements).
deletesNoPaths to delete.
insertsNoInsertions after a line (0 is the top). Must not land inside a line_edits range of the same file, nor on a file that also carries exact edits.
messageYesCommit message, 1-500 chars.
previewNoPreview the change instead of shipping it (Pro): commits to the preview ref, deploys to the `<slug>--preview` URL with a fresh, empty data namespace, and leaves live untouched. Counts a code change like a live commit.
line_editsNoLine-range replacements (inclusive, 1-based read_files numbering). Ranges in one file must not overlap. Refused on a file that also carries exact edits. Copy the read_files blob into expect_blob: a shifted file then answers conflict instead of editing wrong lines.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructive/open-world/non-idempotent, and the description earns that by explaining exactly what happens: it waits for the deploy and returns success+url, failed+log, or blocked+lines to fix; stale blobs answer conflict with the current blob while unrelated files never conflict; whole-head `base` still CASes the tip. It adds formatting behavior (oxfmt runs before commit, `commit.formatted` / `commit.format_skipped` with reasons) and preview isolation (fresh empty data namespace, live untouched) — real behavioral context beyond the hints.

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?

Front-loaded with purpose and the deploy outcome, and nearly every clause carries new information rather than restating the schema. The cost is a dense single paragraph of semicolon-chained parentheticals that is harder to scan than it needs to be for a 12-parameter tool; some bullets would preserve the content with better structure.

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, CAS-guarded, deploy-coupled mutation with no output schema, the description covers the three terminal outcomes, the conflict model, formatting side effects, and preview behavior. Remaining gaps are modest: it never states permission/Pro requirements beyond the preview note, and gives no sense of how long the deploy wait takes or how to recover a partial/failed rolling state beyond the log.

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 100%, so the schema already defines every parameter; the description mainly reinforces it (exact-match `old` must occur once, line_edits are inclusive 1-based in read_files numbering, expect_blob pins the read blob). Where it adds genuine value is cross-parameter semantics the schema cannot express: which change kinds may not be combined in one commit and what ``*** Begin Patch`` standing alone means. It does not, however, explain ordering or precedence when several compatible kinds are sent together.

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?

Opens with a specific verb+resource+outcome: "Change your Outer app's files and deploy," then enumerates the four supported change kinds (full-file writes, exact-match edits, line_edits/inserts, unified diff or `*** Begin Patch`). It also names the read side it depends on (`read_files`) and the polling sibling (`deploy_status`), so an agent can place it precisely among the file-editing tools.

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 concrete conditional guidance: pass `preview: true` to trial at a temporary URL, `wait: false` to return and poll `deploy_status`, and copy the `read_files` blob into `expect_blob` to get conflicts instead of wrong-line edits. It also states mutual-exclusion rules (patch carries no other change kind; exact edits vs line_edits in one file). It never contrasts itself with the `ship`/`stage` siblings, so routing between deploy paths is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.