Skip to main content
Glama

deploy

Trigger Jenkins jobs by translating user-friendly arguments into the job's real parameters, handling branch, tickets, dependencies, secrets, and returning build number and URL.

Instructions

High-level deploy. Maps friendly args to the job's actual Jenkins parameters.

Args: job: Deploy target (fuzzy). A bare environment defaults to the configured app job: 'dev' / 'deploy dev' → 'dev_app_deployment'; say 'dev backend' for the backend job. Other job names resolve by fuzzy match. branch: Git branch to deploy. Sets whichever branch parameter the job defines (see config). tickets: Ticket URL(s) for the deployment purpose. Multiple URLs may be passed comma-separated ('url1, url2'); they are normalized to a comma-joined list. install_dependencies: If True, sets INSTALL_BE_REQUIREMENTS + INSTALL_FE_PACKAGES (whichever exist). use_server_secrets: Sets USE_SECRETS_FROM_SERVER. config_branch: Sets CONFIGURATION_MANAGEMENT_BRANCH. Default is already 'main' on most jobs. use_dummy_purpose: When the job mandates a deployment purpose and the user has no ticket URL, set this True to deploy with the placeholder purpose (<configured dummy_purpose>). Leave False to be told the purpose is required. allow_mr_purpose: Set True to accept a merge-request URL as the purpose after the user confirms (see the 'mr_url_as_purpose' guard below). extra: Raw Jenkins param overrides {name: value}. Used for anything the friendly API misses. wait: Poll the queue until a build number is assigned. timeout: Max seconds to wait for the queue→build transition.

Mandatory deployment purpose: if the resolved job enforces a non-empty purpose (DEPLOYMENT_PURPOSE) and no tickets was given, this returns {"error": "deployment_purpose_required", ...} WITHOUT deploying. When you get that, ask the user whether to (a) paste a ticket/URL — then re-call with tickets=... — or (b) proceed with a dummy URL — then re-call with use_dummy_purpose=True.

Merge-request URL guard: the purpose should be ticket URL(s). If any supplied URL is a merge request (/merge_requests/<id>) this returns {"error": "mr_url_as_purpose", ...} WITHOUT deploying. Tell the user the URL is an MR, not a ticket, and ask them to either paste the correct ticket URL or re-call with allow_mr_purpose=True to proceed anyway.

Returns the trigger result with build_number, build_url, and parameters_sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobYes
waitNo
extraNo
branchNo
ticketsNo
timeoutNo
config_branchNo
allow_mr_purposeNo
use_dummy_purposeNo
use_server_secretsNo
install_dependenciesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and excels. It explicitly discloses that certain conditions return an error 'WITHOUT deploying', describes how arguments map to Jenkins parameters, explains wait/timeout behavior, and names the return fields. The two guard clauses are especially transparent about non-obvious failure modes.

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?

Although the description is long, it is densely packed and every section earns its place: a one-line summary, an Args list covering all 11 parameters, and two focused behavioral guard sections. The structure is front-loaded with the high-level purpose, and the error-handling sections are clearly separated for quick lookup.

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?

For a complex 11-parameter deploy tool with no annotations and no output schema, this description is remarkably complete. It covers parameter semantics, job resolution behavior, error conditions with prescribed follow-up actions, waiting behavior, and the expected return fields. An agent has enough information to call it correctly and handle both documented guard failures.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does: every single parameter (job, branch, tickets, install_dependencies, use_server_secrets, config_branch, use_dummy_purpose, allow_mr_purpose, extra, wait, timeout) is individually explained with meaningful details like default behavior, fuzzy matching, comma-separated normalization, and mapping to Jenkins-specific parameter names.

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?

The description opens with 'High-level deploy' and immediately states that it 'maps friendly args to the job's actual Jenkins parameters.' This clearly identifies the verb, resource, and level of abstraction, distinguishing it from lower-level siblings like trigger_build even without naming them. The purpose is unambiguous.

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?

The description provides clear operational context for when to use the tool and how to react to its errors: if the deployment purpose is required and missing, ask the user for a ticket or set use_dummy_purpose; if an MR URL is supplied, warn the user and allow allow_mr_purpose as an escape hatch. It does not explicitly name alternatives like trigger_build, but the 'friendly vs. raw' distinction and the extra parameter make the intended usage clear.

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