Skip to content

MCP Tools Reference

The MCTL MCP server exposes 39 tools for managing your infrastructure. Each tool is annotated as either read-only or destructive.

Identity

ToolDescriptionType
mctl_whoamiCheck authentication status, user ID, team memberships, admin status, and accessible namespacesRead

Tenants

ToolDescriptionType
mctl_list_tenantsList all team workspaces with resource quotas and member counts (admin only)Read
mctl_get_tenantGet workspace details: members, quotas, and deployed servicesRead
mctl_create_tenantCreate a new workspace with namespace, resource quotas, network policies, Vault scope, ArgoCD RBAC, and SSO accessWrite
mctl_delete_tenantPermanently delete a workspace and all its resources. Retires all services firstDestructive

Services

ToolDescriptionType
mctl_list_servicesList deployed services showing name, team, image tag, host, and database status. Optional team filterRead
mctl_get_service_statusGet ArgoCD sync state, health status, and service configurationRead
mctl_get_service_configGet full configuration from GitOps: image tag, host, port, component type, database statusRead
mctl_get_service_logsFetch recent log lines from Loki, sorted by timestamp (most recent first)Read
mctl_get_resource_usageGet resource quota usage: CPU, memory, pods used vs allocatedRead
mctl_deploy_serviceDeploy a service. Actions: "onboard" (first-time), "deploy" (update version), "update-config" (change env/secrets)Write
mctl_scale_serviceUpdate autoscaling: enable/disable HPA, set min/max replicas and CPU thresholdWrite
mctl_rollback_serviceRoll back to a previously deployed image tag via GitOpsWrite
mctl_retire_servicePermanently remove a service: deletes GitOps manifests, Vault secrets, ArgoCD app, and K8s resourcesDestructive

Operations & Workflows

ToolDescriptionType
mctl_list_operationsList all available platform operations with parameters, risk levels, and descriptionsRead
mctl_get_operationGet detailed schema of an operation: parameters, types, defaults, validation, risk levelRead
mctl_list_recent_operationsList most recent platform operations from audit log (up to 50 entries)Read
mctl_list_workflowsList recent Argo Workflow runs for a team. Admins see all namespacesRead
mctl_get_workflow_statusGet status and logs of an Argo Workflow runRead

Incidents

ToolDescriptionType
mctl_list_incidentsList incidents (AlertManager alerts, GitHub Actions failures, polling). Filter by team, service, status, severityRead
mctl_get_incidentGet full incident details including evidence, analysis, and PR info. Accepts full ID or 8-char prefixRead
mctl_incident_summaryGet aggregate counts of active incidents by status, severity, and typeRead
mctl_acknowledge_incidentMark an incident as acknowledged. Records current user as acknowledgerWrite
mctl_resolve_incidentMark an incident as resolved with optional reasonWrite

Domains

ToolDescriptionType
mctl_list_domainsList custom domains for a team or service. Shows status (pending/verified/active)Read
mctl_verify_domainCheck if a domain's CNAME record points to the expected targetRead
mctl_add_custom_domainAdd a custom domain to a deployed service. Triggers DNS verification and TLS provisioningWrite
mctl_remove_custom_domainRemove a custom domain from a service. Auto-generated domain is not affectedDestructive

Databases

ToolDescriptionType
mctl_provision_databaseProvision PostgreSQL on shared CNPG cluster. Creates database/role, stores credentials in Vault and K8s SecretWrite

Preview Environments

ToolDescriptionType
mctl_list_previewsList active previews with health status, sync state, and namespaceRead
mctl_create_previewDeploy ephemeral preview from existing image tag. Auto-deleted after TTL (default: 24h)Write
mctl_delete_previewRemove a preview environment and all its K8s resources immediatelyDestructive

Repositories

ToolDescriptionType
mctl_list_reposList GitHub repos available to a team. Admins see org + personal reposRead
mctl_grant_repo_accessGenerate GitHub App installation URL to grant platform access to a repoWrite
mctl_sync_reposDiscover and register GitHub repos from App installations for a teamWrite

OpenClaw (Resource Optimization)

ToolDescriptionType
mctl_get_openclaw_sizing_recommendationRead VictoriaMetrics history and return recommended resource profileRead
mctl_deploy_openclawPrepare self-service OpenClaw deployment. Returns Telegram bot-token intake URLWrite
mctl_resume_openclaw_deployResume onboarding after bot token saved. Provisions database and submits deploy workflowWrite
mctl_apply_openclaw_resource_profileApply a named runtime profile (startup, steady-medium, steady-small) via GitOpsWrite

Tool Annotations

Tools are annotated with behavior hints for AI clients:

  • Read (readOnly: true) — safe to call without side effects
  • Write — modifies resources, requires confirmation
  • Destructive (destructive: true) — deletes resources, requires explicit confirmation