Skip to main content
Glama

ohmyho.st

Save source changes

source_changes
DestructiveIdempotent

Saves related files as one managed Git version against the expected source generation and commit. Each file accepts exactly one content_text (ordinary UTF-8 source) or content_base64 (binary/legacy); content_base64 null deletes it. Executable flags are explicit. A conflict requires reconciliation with current source; an idempotency key belongs to one unchanged request.

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": {
      "project_id": "<project_id>",
      "expected_source_generation": "<expected_source_generation>",
      "expected_commit_sha": "<expected_commit_sha>",
      "message": "<message>",
      "idempotency_key": "<idempotency_key>",
      "changes": "<changes>"
    },
    "name": "source_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes
messageYes
project_idYes
idempotency_keyYes
expected_commit_shaYes
expected_source_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds real context on top: passing null content_base64 deletes a file, executable bits are explicit rather than inherited, and stale expectations surface as conflicts needing reconciliation. It does not say whether the batch is all-or-nothing on failure, but the destructive and idempotent behaviors are clarified beyond what the annotations state.

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?

Four dense sentences with the core action front-loaded and no filler. Some phrasing is compressed to the point of opacity, such as 'as one managed Git version' and 'against the expected source generation,' which trade clarity for brevity.

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?

A six-parameter destructive mutation with no output schema and no documentation of return values. Atomicity, deletion semantics, conflict handling, and idempotency are covered, but the failure model for non-conflict errors and the response shape are not, which leaves gaps for a tool that mutates source in bulk.

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 coverage is 0%, so the description carries the full burden and does well on the changes array: exactly one of content_text (UTF-8) or content_base64 (binary/legacy) per file, with null deleting. It leaves project_id, message, expected_commit_sha, and expected_source_generation undefined, so an agent must infer that the expected_* fields are optimistic-concurrency tokens and null commit means an empty repository.

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 specific verb and resource: saves related files as one managed Git version, tied to an expected generation and commit. That atomic-commit framing distinguishes it from per-file siblings like source_blob_put or source_upload, though no 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?

Gives actionable conditions inside the call: a conflict requires reconciliation with current source, and an idempotency key belongs to one unchanged request. It never says when to choose this tool over source_upload, source_blob_put, or source_diff, so the choice between batch and single-file writes is left to inference.

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.