Get Work Item
get_work_itemFetch a GitLab work item by numeric ID or global gid and return raw widgets so hierarchy, health, iteration, milestone, and dates stay visible.
Instructions
Fetch a GitLab work item (issue, task, epic, incident, OKR) by global ID. Returns the raw widgets array so epic hierarchy, health status, iteration, milestone, and dates are all visible. Accepts either a numeric id or a full gid (gid://gitlab/WorkItem/123).
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": {
"id": "<id>"
},
"name": "get_work_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Work item ID — numeric (e.g. "123") or full gid (e.g. "gid://gitlab/WorkItem/123") | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |