Skip to main content
Glama
N0moreher0
by N0moreher0

Trigger CI workflow

project_ci_trigger

Trigger a GitHub Actions workflow_dispatch, GitLab pipeline, or Bitbucket custom pipeline for a branch, including reruns and input/variable dispatch, without creating a new commit.

Instructions

Trigger a pipeline: GitHub Actions workflow_dispatch, a GitLab pipeline, or a Bitbucket custom pipeline. Ref defaults to the current branch. Use when: re-running a pipeline for a branch without a new commit, or dispatching a workflow with inputs/variables. Avoid when: the workflow has no workflow_dispatch trigger (GitHub rejects it), or a push would do it anyway. Speed: one API call; the new run appears in project_ci_status within ~10s. Output: ci_trigger: repo, provider, workflow, ref, inputs, triggered, dispatched_at. Batch-safe: no

Input Schema

NameRequiredDescriptionDefault
refNoBranch/tag to run on (default: current branch, else default branch).
repoNoRepository as "owner/name" or a PR URL (default: VENIRA_GIT_REPO, git.repo in venira.config.json, else the workspace .git origin remote).
inputsNo
reasonNoWhy this change is made (e.g. "sua loi null pointer o dong 45"). Recorded in the audit trail so later sessions know the intent. Single line, max 400 chars, secrets are redacted.
providerNoProvider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote).
workflowNoGitHub: workflow file name (ci.yml) or id (required). GitLab: optional label. Bitbucket: custom pipeline pattern (default: default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.4

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=true), and the description adds value beyond them: the failure mode (GitHub rejects workflow_dispatch on workflows that lack the trigger), the cost/latency profile ('one API call'), and how the side effect becomes observable ('the new run appears in project_ci_status within ~10s'). It also enumerates the output fields (repo, provider, workflow, ref, inputs, triggered, dispatched_at), which matters since no output schema exists.

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?

Front-loaded with purpose, then labeled blocks (Use when / Avoid when / Speed / Output / Batch-safe) so an agent can scan to the relevant line. No filler sentences; each line carries a distinct operational fact.

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 6-parameter, zero-required, nested-object mutation tool with no output schema, the description supplies what's missing: which providers/pipeline types are covered, what the return payload looks like, the failure case, and the visibility delay. Nothing an agent needs to decide whether to call it or to interpret the result is absent.

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 description coverage is 83%, so the schema already documents ref, repo, provider, workflow, and reason in detail; the description only repeats the ref default ('Ref defaults to the current branch') which the schema already states. It adds light context for the undocumented nested `inputs` object ('dispatch a workflow with inputs/variables') but no value-type or naming guidance for it. Baseline 3 is appropriate given the schema does the heavy lifting.

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 (Trigger) plus the exact resources per provider: GitHub Actions workflow_dispatch, GitLab pipeline, Bitbucket custom pipeline. An agent can immediately tell this apart from the read-only siblings project_ci_status and project_ci_logs without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives both directions: 'Use when: re-running a pipeline for a branch without a new commit, or dispatching a workflow with inputs/variables' and 'Avoid when: the workflow has no workflow_dispatch trigger ... or a push would do it anyway.' The exclusion names a concrete alternative action (a push) rather than leaving routing to inference.

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