Skip to main content
Glama

Get Issue SLA

jira_get_issue_sla
Read-only

Calculate SLA metrics for a Jira issue, including cycle time, lead time, time in status, and due date compliance. Filter by working hours for accurate business-time measurements.

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

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations declare readOnlyHint=true, so the safety profile is known. The description adds behavioral context by listing the environment variables that control working hours, which affects calculation results, and by enumerating available metrics. This goes beyond the schema and annotations, though it doesn't discuss rate limits or response structure (covered by output schema).

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?

The description is concise and front-loaded with the core purpose, followed by metric examples and a structured env var list. Each sentence serves a purpose; no redundant information.

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?

Given the presence of an output schema and readOnly annotation, the description sufficiently covers the tool's function, configuration, and metric types. It doesn't cover usage guidance or edge cases, but for a read-only metric calculator, this is adequate.

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?

The input schema has 100% coverage, with all four parameters fully described. The description adds no new parameter-level semantics beyond what the schema already provides; it only references the env var list globally. Thus the baseline of 3 applies.

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 'Calculate SLA metrics for a Jira issue,' a specific verb+resource statement that clearly distinguishes this from sibling tools like jira_get_issue (which fetches issue details) and jira_get_issue_dates (which likely returns raw dates). It lists example metrics, reinforcing its unique purpose.

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 description implies usage for computing time-based SLA metrics but provides no explicit when-to-use or alternatives. It doesn't state when to use this versus other issue tools, leaving the agent to infer from the verb 'calculate' and metric names. No exclusions or comparisons are made.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hieptran87/atlassian-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server