Skip to main content
Glama

apps_publish

Destructive

Publishes the exact draft revision after all files and build steps finish, preserving the prior applied revision if the target fails to load.

Instructions

After all files and build steps in a complete editing round finish, publish its exact draftRevision. A failed target load preserves the old applied revision.

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": {
      "workspaceId": "<workspaceId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "apps_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationIdNo
workspaceIdYes
connectionRefNoThe host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connectionRef
      Added value: +{
      +  "description": "The host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructive=true, openWorld=true, and idempotent=false, so the safety profile is known. The description adds a useful failure guarantee that a failed target load preserves the old applied revision, but it does not explain what successful publishing changes or how revision mismatch is handled.

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?

The description is two tightly written sentences and front-loads the main action and timing. Every sentence carries relevant information without repetition.

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 publish operation with four parameters and no output schema, the description covers timing and one failure behavior. It remains incomplete on key parameter meanings and on what happens to the target on success, though annotations supply the core safety signals.

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 low at 25%, and only connectionRef is documented in the schema. The description hints that expectedRevision is the exact draftRevision to publish, but it leaves workspaceId and operationId unexplained and does not compensate for the coverage gap.

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 ('publish') and resource ('exact draftRevision') with timing context. It does not explicitly differentiate this action from nearby sibling operations such as apps_save, so it is clear but not fully sibling-aware.

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 a clear usage condition: call after all files and build steps in a complete editing round finish. It does not state when not to use it or name alternative tools, but the context for use is clear.

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