Skip to main content
Glama
Gearset MCP Server
by jaredbt

Get Manual CI Job Runs (Audit API)

get_manual_ci_job_runs_via_audit

Retrieves manually triggered CI job runs from the Audit API for a job and date range, so you can audit runs started by clicking play (Teams/Enterprise required).

Instructions

Get manually triggered CI job runs from the Audit API (requires Teams/Enterprise license) - only runs where user clicked "play" button

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "jobId": "<jobId>",
      "StartDate": "<StartDate>",
      "EndDate": "<EndDate>"
    },
    "name": "get_manual_ci_job_runs_via_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe CI job ID to get manually triggered runs for
EndDateYesEnd date/time in UTC format (e.g., 2024-01-31T23:59:59Z)
StartDateYesStart date/time in UTC format (e.g., 2024-01-01T00:00:00Z)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; it does disclose a meaningful behavioral constraint (a Teams/Enterprise license is required) and the provenance of the data (Audit API). It omits other traits an agent needs for a mutation-free but gated read: audit-log retention limits, result caps, pagination, and required permissions/scopes.

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?

A single front-loaded sentence with no filler; the scope-defining clause about the 'play' button is the most useful part and comes early. Slightly awkward with the parenthetical license note inserted mid-sentence, but nothing is wasted.

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

Completeness3/5

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

For a simple three-parameter lookup with no output schema, the definition covers purpose, source, and licensing. It is still incomplete on the practical limits of Audit API queries (retention window, result volume) and on what the returned run records contain, which matters since no output schema exists to explain them.

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 100%, so all three parameters (jobId, StartDate, EndDate) are already documented with formats and examples. The description adds no additional semantics such as date-range limits, timezone assumptions, or maximum span, so the baseline applies.

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 ('Get manually triggered CI job runs') plus the data source ('Audit API') and an operational constraint ('only runs where user clicked "play" button'), which sharply defines the subset returned. It does not explicitly name the contrasting sibling get_all_ci_job_runs_via_reporting, so the differentiation is implied by 'manually triggered' plus 'Audit API' rather than stated.

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

Usage Guidelines3/5

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

The license prerequisite ('requires Teams/Enterprise license') and the manual-trigger filter imply when this tool applies versus a general run-listing tool. However, there is no explicit when-to-use/when-not guidance and no named alternative for retrieving non-manual or reporting-based runs, leaving the agent to infer the routing.

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