Skip to main content
Glama

Get Issue SLA

jira_get_issue_sla
Read-onlyIdempotent

Calculate SLA metrics for a Jira issue, including cycle time, lead time, time in status, and due date compliance, with optional working-hours filtering.

Instructions

Calculate SLA metrics for a Jira issue.

Computes various time-based metrics including cycle time, lead time, time spent in each status, due date compliance, and more.

Working hours can be configured via environment variables:

  • JIRA_SLA_WORKING_HOURS_ONLY: Enable working hours filtering (true/false)

  • JIRA_SLA_WORKING_HOURS_START: Start time (e.g., "09:00")

  • JIRA_SLA_WORKING_HOURS_END: End time (e.g., "17:00")

  • JIRA_SLA_WORKING_DAYS: Working days (e.g., "1,2,3,4,5" for Mon-Fri)

  • JIRA_SLA_TIMEZONE: Timezone for calculations (e.g., "America/New_York")

Input Schema

NameRequiredDescriptionDefault
metricsNoComma-separated list of SLA metrics to calculate. Available: cycle_time, lead_time, time_in_status, due_date_compliance, resolution_time, first_response_time. Defaults to configured metrics or 'cycle_time,time_in_status'.
issue_keyYesJira issue key (e.g., 'PROJ-123', 'ACV2-642')
include_raw_datesNoInclude raw date values in the response
working_hours_onlyNoCalculate using working hours only (excludes weekends/non-business hours). Defaults to value from JIRA_SLA_WORKING_HOURS_ONLY environment variable.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.4.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / issue_key / pattern
      Previous value: -"^[A-Z][A-Z0-9_]+-\\d+$"New value: +"^[A-Z][A-Z0-9_]+-\\d+(?:-\\d+)*$"
    • removedOutput schema / description
      Removed value: -"Generic wrapper for non-object return types."
  2. Addedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: calculations can be filtered to working hours, and the behavior is governed by five named environment variables including timezone — something an agent cannot learn from structured fields. It stops short of explaining default fallback order precisely or whether unconfigured metrics error out.

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?

Purpose and metric list are front-loaded in the first two sentences, then the configuration block follows as a scannable bullet list. The env-var list is long relative to the tool's own behavior but each line is concrete and non-redundant, so nothing is truly wasted.

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

Completeness4/5

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

An output schema exists, so return-shape explanation is unnecessary, and the schema fully documents all four parameters. The description covers configuration and default metrics, leaving only the gap of sibling disambiguation against jira_get_issue_dates and how missing status/changelog history is handled.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description goes further by tying working_hours_only to the JIRA_SLA_WORKING_HOURS_* environment variables and timezone, explaining where the parameter's default actually comes from — meaning the schema does not provide. It does not elaborate on the metrics list beyond what the schema already enumerates.

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 ('Calculate SLA metrics for a Jira issue') and enumerates the computed metrics (cycle time, lead time, time in status, due date compliance), so the agent knows exactly what comes back. It does not differentiate itself from the closest sibling, jira_get_issue_dates, which could plausibly overlap, so it falls short of a 5.

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?

Usage is only implied — the description says what it computes but never says when to prefer it over jira_get_issue_dates or jira_get_issue, nor does it state prerequisites (auth, issue visibility). No exclusions or alternative routing are given, which is the minimum-viable level.

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

Deploy Server

Other Tools