Skip to main content
Glama

Add worklog

jira_add_worklog

Log work time on a Jira issue using duration strings or decimal hours, and control how the remaining estimate is updated. Optionally add a comment and set the work start date or time.

Instructions

Log work time on an issue. timeSpent is a Jira duration string ('3h 30m') or decimal hours ('8.05' / 8.05 -> '8h 3m'). adjustEstimate controls how the remaining estimate is updated (auto/leave/new/manual; new+manual need newValue). started accepts a full ISO timestamp or a YYYY-MM-DD date (then startedHour, default '07:30', provides the time-of-day).

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": {
      "issueKey": "<issueKey>",
      "timeSpent": "<timeSpent>"
    },
    "name": "jira_add_worklog"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional worklog comment
startedNoWork start date: full ISO 8601 ('2026-01-14T10:33:00.000+0000') or date-only 'YYYY-MM-DD' (time-of-day then comes from startedHour)
issueKeyYesIssue key, e.g. 'ABC-123'
newValueNoEstimate string required for adjustEstimate='new'|'manual' (e.g. '1d 2h')
timeSpentYesJira duration ('3h 30m') or decimal hours ('8.05' or 8.05 -> '8h 3m')
startedHourNoTime-of-day "HH:mm" used when started is date-only (default "07:30")
adjustEstimateNoauto: reduce remaining estimate by logged time; leave: keep; new: set a new total (needs newValue); manual: subtract newValueauto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose real behavior via the adjustEstimate modes (auto/leave/new/manual) and the started/startedHour fallback, but omits permission requirements, duplicate-log handling, and what the call returns.

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?

Three dense sentences, front-loaded with the core action and then the two tricky parameters, with zero filler. Slightly heavy parenthetical formatting but no wasted wording.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the parameter interactions well but leaves the safety and result profile thin: no mention of required permissions, validation failures, or what a successful response contains.

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 already 100%, yet the description earns extra credit by explaining the cross-parameter rule that new and manual require newValue and that a date-only started defers to startedHour (default '07:30'). The timeSpent decimal-to-duration conversion example also removes ambiguity about the numeric form.

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?

"Log work time on an issue" gives a specific verb and resource, which clearly separates it from read-side siblings like jira_list_worklogs. It stops short of explicitly naming an alternative, so it is clear but not maximally differentiated.

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 parameter walkthrough makes it obvious you call this when recording time, but nothing states prerequisites such as required permissions, whether the caller must be the assignee, or when to prefer jira_update_issue instead.

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