Skip to main content
Glama

ohmyho.st

Prepare source upload

source_upload_prepare
DestructiveIdempotent

Prepare one complete managed snapshot from uploaded contents. initialize requires unbound source, commit requires the current managed binding and head, and switch requires the current GitHub binding and generation. Returns the upload operation ID. An incomplete upload cannot deploy and preparation starts no 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>",
      "expected_source_connection_id": "<expected_source_connection_id>",
      "mode": "<mode>"
    },
    "name": "source_upload_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
messageYes
project_idYes
idempotency_keyYes
expected_commit_shaYes
expected_source_generationYes
expected_source_connection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 the important safety framing that preparation starts no deployment and an incomplete upload cannot deploy, plus that it returns an upload operation ID. It still doesn't say what the destructive aspect actually destroys or whether a prepared snapshot can be discarded, which is a notable gap given destructiveHint.

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 no filler; the core action is front-loaded and the mode preconditions follow immediately. The clause 'and preparation starts no deployment' slightly restates the preceding sentence about incomplete uploads, but overall it is tight.

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 7-required-parameter, no-output-schema, destructive mutation tool, the description covers the mode contract and the return value but leaves several required inputs and the lifecycle after preparation (can it be re-run, how long does the snapshot live) undefined. Adequate to start but not sufficient to call confidently.

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 0% with 7 required parameters, so the description must carry the load. It usefully ties mode to its enum values and links the expected_* parameters loosely to 'current managed binding and head' and 'GitHub binding and generation', but message, idempotency_key, and project_id are never explained, leaving half the required inputs opaque.

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 resource: 'Prepare one complete managed snapshot from uploaded contents', and then differentiates the three modes (initialize/commit/switch) by their preconditions. An agent can tell this is the preparation step of an upload flow rather than the upload itself, though it never names the sibling tools it is distinct from.

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?

It gives explicit when-to-use conditions per mode: initialize requires an unbound source, commit requires the current managed binding and head, switch requires the current GitHub binding and generation. This is genuinely actionable routing logic, but no alternatives (e.g. source_initialize, source_switch) are named for agents that might want a standalone operation.

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.