Skip to main content
Glama
ghl-mcp-server-v2

ghl-mcp-server-v2

by zackscriven

ghl_clientportal_promote_project_to_production

Publishes a Client Portal app to its live site and active custom domains using the approved source run, then returns a publish job to poll for success or failure.

Instructions

CLIENT PORTAL AI BUILDER API (/ai-builder-api) — side-effecting: opens/edits sandboxes and starts builds. Edit a sandbox only once sandbox.status is ready; checkpoint after edits and before starting the run that builds them; 409 means a cloud build owns the sandbox or it is not running. Publish an app to its live site. Publishes the app to its live site: its managed address, and every custom domain attached to it (changes kind domain) once that domain is active. A domain that becomes active later joins the live site without another publish. Check GET .../publishability first and send the sourceRunId it returns, so the build the creator approved is the one that goes live. Returns a publish job: poll GET .../infra/publish-jobs/{publishJobId} until status is succeeded (publishedUrl is the live site) or failed (error says why). Send the same idempotencyKey to retry safely. Endpoint: POST /ai-builder-api/projects/{projectId}/infra/promote-to-production (Version header: v3; source: v3/clientportal-ai-v3.json) OAuth scopes: clientportal-ai.write

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": {
      "projectId": "<projectId>",
      "body": "<body>"
    },
    "name": "ghl_clientportal_promote_project_to_production"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).
projectIdYesThe project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only give the safety profile (not read-only, open-world, not idempotent, not destructive); the description adds substantive behavior: fail-closed run binding via `sourceRunId`, late-activating domains joining without republish, async job semantics with `succeeded`/`failed` terminal states, `publishedUrl`/`error` fields, and idempotency-key retry safety. The `idempotentHint: false` annotation is not contradicted — the description frames the key as an opt-in retry mechanism, not blanket idempotency.

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?

The publish-specific sentences are dense and front-loaded, but the opening paragraph is generic API boilerplate about sandboxes, checkpoints, and 409 conflicts that does not apply to this endpoint and adds noise before the actual purpose. Removing it would make the definition tighter without losing anything.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description fully covers the return contract (a publish job to poll, terminal statuses, `publishedUrl`, `error`) plus endpoint, version header, and required OAuth scope. An agent has everything needed to call it and drive it to completion.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already defines both parameters and their patterns. The description still earns credit by adding operational meaning: `sourceRunId` must come from the publishability response so the approved build goes live, and `idempotencyKey` is the safe-retry handle — rationale the schema only partly conveys.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Publish an app to its live site' — and immediately scopes what 'live site' means (managed address plus every `active` custom domain). It is clearly distinguishable from siblings like get_project_publishability (a check) and get_project_publish_job (a status poll) without opening any schema.

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?

Strong preconditions are spelled out: check `GET .../publishability` first and pass the `sourceRunId` it returns, and only domains already `active` go live now. It also names the follow-up step (poll the publish job) and the retry condition (same `idempotencyKey`). It stops short of explicit when-not-to-use or naming the sibling tools by name, so it lands at 4 rather than 5.

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

Deploy Server

Other Tools