Skip to main content
Glama

ohmyho.st

Switch project source

source_switch
DestructiveIdempotent

Seals a prepared GitHub-to-managed upload for the user's explicit source-switch request, using the complete intended manifest and original GitHub connection/generation. Preparation must finish before the same project's binding can switch; conflicts require the current binding. The asynchronous operation reports completion. URLs, data and deployment history remain; GitHub auto-deploy is disabled and earlier generation-bound plans/events are fenced. No replacement deployment starts.

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>",
      "upload_operation_id": "<upload_operation_id>",
      "expected_source_connection_id": "<expected_source_connection_id>",
      "expected_source_generation": "<expected_source_generation>",
      "files": "<files>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "source_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
project_idYes
idempotency_keyYes
upload_operation_idYes
expected_source_generationYes
expected_source_connection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful beyond-annotation context: what survives ('URLs, data and deployment history remain'), what is disabled (GitHub auto-deploy), and that earlier generation-bound plans/events are 'fenced' with no replacement deployment started. That last term is unexplained jargon and the 'asynchronous operation reports completion' line does not say how completion is observed, keeping it out of the top band.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core action and contains no filler, which is good. However the style is telegraphic sentence fragments ('No replacement deployment starts.', 'conflicts require the current binding') that compress several distinct ideas — preconditions, concurrency, side effects — into run-on clauses, making the causal structure harder to parse than a slightly longer, better-segmented version would be.

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 destructive, asynchronous, six-required-parameter mutation with no output schema and no schema descriptions, the definition covers the lifecycle (preparation → seal → switch) and the side-effect surface reasonably well. It is still missing how completion is surfaced to the caller, what errors/conflicts look like in practice, and any guidance on idempotency_key reuse, so an agent could call it correctly but not confidently handle the response.

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% across six required parameters, so the description must compensate and only partly does. It conceptually maps several parameters — the complete intended manifest (files), original GitHub connection/generation (expected_source_connection_id, expected_source_generation) and the prepared operation (upload_operation_id) — but never explains the manifest entry format, the meaning of 'expected' optimistic-concurrency values, or the role of idempotency_key at all.

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: 'Seals a prepared GitHub-to-managed upload for the user's explicit source-switch request', which is far more precise than the title 'Switch project source'. It implicitly differentiates from the preparation step ('prepared', 'Preparation must finish before') without naming source_upload_prepare or source_upload_commit directly, so the sibling routing is inferable but not spelled out.

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 a clear precondition ('Preparation must finish before the same project's binding can switch') and a conflict rule ('conflicts require the current binding'), which tells an agent when the call is valid. It stops short of naming the specific alternative tool to call for preparation or for the conflict case, leaving that to inference from sibling names.

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.