Skip to main content
Glama

ohmyho.st

Restore source version

source_restore
DestructiveIdempotent

Creates a new managed version with an earlier version's file contents. It retains history and does not publish or roll back a deployment.

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>",
      "restore_commit_sha": "<restore_commit_sha>"
    },
    "name": "source_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYes
project_idYes
idempotency_keyYes
restore_commit_shaYes
expected_commit_shaYes
expected_source_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true. The description adds genuinely new behavior: history is retained because a NEW version is created rather than mutating an existing one, and no deployment is published or rolled back. It does not explain what state is actually overwritten (the current source head) or what permissions/conflicts the expected_* guards are protecting against.

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?

Two tight sentences, front-loaded with the core effect and followed immediately by the necessary boundary conditions. No filler or restatement of the title.

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?

With no output schema and six fully required, undocumented parameters, the description is complete on the conceptual level (what it does and does not do) but thin on operational detail. It does not say what happens on a stale expected_commit_sha, whether the new version needs a subsequent publish to take effect, or how the idempotency key behaves on retry.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across six required parameters, so the description must compensate and it largely does not. The phrase 'earlier version's file contents' loosely gestures at restore_commit_sha, but expected_source_generation, expected_commit_sha, idempotency_key, and message are given no meaning at all, leaving several concurrency and retry-critical parameters undisclosed.

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?

The description states a specific verb and effect: it 'creates a new managed version with an earlier version's file contents,' which is far more precise than the name alone. It also distinguishes itself from publish/rollback operations, though it does not name the specific sibling tools (e.g., source_versions, container_job_version_publish) an agent should compare against.

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?

The negative guidance ('does not publish or roll back a deployment') implicitly tells the agent this is not the deploy path, which is useful context. However, there is no explicit 'use this when...' statement and no named alternative for the publishing case, so the agent must infer the routing decision.

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.