Skip to main content
Glama

Deploy local workspace

workspaces.deploy

Coordinate a resumable local-workspace deployment. Until local Git prerequisites are complete, return one structured client_action_required next_action for the LLM caller to perform. Once the exact commit is pushed to the configured Resilis Git repository, verify the remote branch head and start an idempotent deployment without reading or modifying the local workspace.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "branch": "main",
      "template": "web-service",
      "project_id": "project-id",
      "client_state": {},
      "resource_type": "service",
      "environment_id": "environment-id",
      "idempotency_key": "workspace-tanda-api-staging-v1"
    },
    "name": "workspaces.deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoapp display name; defaults to the hosted repository name
branchNotarget stable branch; defaults to main
replicasNostable replica count; defaults to 1
templateYesweb-service or static-site, determined by inspecting the local workspace
cpu_limitNoKubernetes CPU quantity such as 500m
build_argsNoDocker build arguments; values are treated as sensitive in returned deployment data
project_idNoproject in the selected organization; omit only when the organization has one project
static_spaNoenable conservative single-page-app fallback for extensionless routes
technologyNoframework or runtime detected from the local workspace
clone_tokenNofirst-time repository-scoped read and clone token; encrypted server-side, excluded from replay records, and never returned
descriptionNooptional app description
region_codeNotarget region; omit for plan-aware recommendation
target_portNoexplicit container port from 1 to 65535; omit for runtime discovery
client_stateYescaller-reported local workspace state; omit unknown fields and execute the returned next_action locally
memory_limitNoKubernetes memory quantity such as 512Mi
runtime_modeNocontainer or shared; shared is opt-in for paid plans and the default for eligible free-plan apps
build_commandNooptional build command override
health_checksNooptional HTTP health probes; target_port is required
resource_typeYesservice, web_application, static_website, or function, determined by inspecting the local workspace
start_commandNooptional start command override
webhook_tokenNofirst-time separate repository-scoped webhook administration token; encrypted server-side, excluded from replay records, and never returned
workload_pathNodirectory inside a monorepo; defaults to repository root
build_strategyNorailpack or dockerfile; omitted values default to railpack
clone_usernameNoForgejo username for first-time repository onboarding; accepted only with both repository-scoped tokens
environment_idYestarget environment identifier belonging to the project
repository_urlNooptional expected repository URL; managed WalGit derives the canonical organization/project URL server-side and rejects a different value
dockerfile_pathNoDockerfile path relative to workload_path
idempotency_keyYesunique caller-generated key reserved for the final deployment; reuse it while completing this workflow
install_commandNooptional dependency installation command override
organization_idNoorganization membership to use for this call; omit only when the account has one current membership
previews_enabledNocreate previews for pull requests targeting this stable branch after repository onboarding
preferred_regionsNoordered preferred region codes
deployment_strategyNosingle-region or multi-region
sensitive_variablesNoenvironment variable keys whose values must be encrypted and redacted
environment_variablesNoruntime environment variables
static_output_directoryNooptional compatibility override for the static-site build output directory relative to workload_path; omit for automatic detection
inherit_environment_variablesNoalso inherit environment variables and secrets from the configuration source
configuration_source_instance_idNoexisting app instance whose stable configuration should be inherited

Output Schema

NameRequiredDescriptionDefault
workflowYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the thin openWorldHint=false/destructiveHint=false annotations: it discloses resumability, that it returns exactly one structured next_action for the caller to execute locally, that it never reads or modifies the local workspace, and that the deployment is idempotent after remote head verification. These are the behavioral traits an agent needs to reason about repeated calls.

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?

Three dense sentences, front-loaded with the core action and then the conditional branch. Every clause carries information; no filler or restatement of the title.

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 38-parameter, nested-schema tool with an output schema, the description covers the essential interaction contract (prerequisite loop, commit verification, idempotency, no local mutation). It leaves out failure/repeat behavior and permission or auth expectations, but nothing critical for correct invocation is missing.

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 coverage is 100%, so all 38 parameters, including the nested client_state flags, are already documented in the schema. The description adds workflow-level meaning to client_state and idempotency_key by framing the prerequisite loop, but contributes no additional syntax, defaults, or constraints beyond what the schema states.

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 ('Coordinate a resumable local-workspace deployment') and scopes it to a local-Git-then-remote-verify flow, which is distinguishable from a generic app deploy. It does not explicitly name or contrast with siblings such as apps.deploy or deployments.redeploy, so an agent must infer the boundary.

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 conditional flow: call while Git prerequisites are incomplete to receive a client_action_required next_action, and once the commit is pushed, verify the remote head and start deployment. What is missing is an explicit exclusion, e.g. when to prefer apps.deploy or how to resume if prerequisites keep failing.

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.

Resources