Skip to main content
Glama
Gearset MCP Server
by jaredbt

Get Lead Time for Changes

get_lead_time_for_changes

Retrieve lead time for changes metrics from the Reporting API for a pipeline and date range, with optional aggregation, to track delivery performance.

Instructions

Get lead time for changes data and metrics from the Reporting API

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": {
      "pipelineId": "<pipelineId>",
      "StartDate": "<StartDate>",
      "EndDate": "<EndDate>"
    },
    "name": "get_lead_time_for_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
EndDateYesEnd date in UTC format (e.g., 2024-01-31T23:59:59Z)
ExcludeNoFields to exclude from response
IntervalNoTime interval for aggregation (required if aggregate=true)
StartDateYesStart date in UTC format (e.g., 2024-01-01T00:00:00Z)
aggregateNoReturn aggregate metrics
pipelineIdYesPipeline ID (required, passed as path parameter)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it reveals nothing beyond 'Reporting API'. It does not state permission or scope requirements, whether data is scoped to the pipelineId, how the aggregate vs interval modes change behavior, or what the response contains (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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short, front-loaded sentence with no wasted words. It is efficient, though the brevity borders on under-specification rather than tightness.

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

Completeness2/5

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

With six parameters, an aggregate/interval interaction, and no output schema, the definition should explain what metrics are returned and how aggregate mode shapes the result. Given zero annotation coverage, the one-line description leaves the agent without enough behavioral context to predict the response.

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 every parameter (dates, pipelineId, aggregate, Interval, Exclude) is already documented inline, including the note that Interval is required when aggregate=true. The description adds no additional meaning about date-range semantics, aggregate behavior, or exclusion effects, so the baseline 3 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 lead time for changes data and metrics') plus the source system (Reporting API), so the agent knows exactly which metric is returned. It does not differentiate itself from metric siblings such as get_change_failure_rate or get_deployment_frequency, leaving selection to name inference alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives or exclusions. The agent must infer from the name alone that this is the DORA lead-time metric tool rather than any other reporting endpoint.

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