Skip to main content
Glama

deploy_finalize

Destructive

Commit a deploy started with deploy_create_upload. Pass the versionId from the start response and a completions array containing the agent-collected ETags for each multi-part file (single-part uploads - those whose start response had an empty uploadId - do not need a completion entry). Returns the live site URL on success. The site must belong to the authenticated user; bearer-token auth is re-validated server-side, so holding presigned URLs alone does not let an unrelated caller finalize.

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe site ID being deployed to (must match the start call).
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
partitionNoData partition the site lives in. Omit to use the user's home partition.
versionIdYesThe `versionId` returned by `deploy_create_upload`.
completionsNoCompletions for multi-part uploads. Omit or pass an empty array if every file was single-part.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only flag destructiveHint=true; the description adds real behavioral context on top: the site must belong to the authenticated user, bearer-token auth is re-validated server-side, and holding presigned URLs is insufficient to finalize. It also discloses the return value (live site URL). Does not cover idempotency or partial-failure behavior, hence a 4 rather than 5.

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 sentences, no padding, and the prerequisite call is front-loaded before the parameter detail. Slightly dense in the completions sentence but every clause carries load-bearing information.

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

Completeness4/5

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

For a terminal mutation step with no output schema, the description covers the prerequisite call, the conditional parameter shape, the auth/ownership constraint, and the success return value. It is nearly complete; only failure and retry semantics are absent.

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 baseline is 3, but the description adds genuine meaning: it explains that versionId comes from the start response and that the completions array exists only for multi-part uploads, with the empty-uploadId exemption for single-part files. This clarifies the cross-call data flow the schema cannot express on its own.

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 ('Commit a deploy') plus the resource and the exact sibling that must precede it ('deploy_create_upload'). An agent can distinguish this from deploy_files or create_site 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?

Gives clear triggering context: it must follow deploy_create_upload and consume that call's versionId. It also states the conditional rule that single-part uploads (empty uploadId) need no completion entry. It stops short of naming an alternative tool or describing failure/recovery paths, so it falls just short of a 5.

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.