Skip to content

abt-atlassian-tools

abt-atlassian-tools is a first-party abt package that provides @tool functions — jira_search, jira_view, jira_add_comment, jira_create_issue, jira_edit_issue, confluence_search, and confluence_view — backed by the Python SDK, not Atlassian MCP.

Atlassian MCP abt-atlassian-tools (SDK)
Schema injection per call Large tool schemas 0 extra MCP tokens
Prerequisites MCP server + tokens abt-core[confluence,jira] installed (uv pip install "abt-core[confluence,jira]"). abt deps does not install it.
Confluence full-text search Varies CQL via atlassian-python-api
Host binary — None (Python libraries only)

Package id: abt-atlassian-tools · Shorthand: atlassian

All manifest tools default to read-only. The three Jira write tools — jira_add_comment, jira_create_issue and jira_edit_issue — require config.packages write gating.

Tool catalog

Component Manifest tool Registry name Access
jira jira_search jira_search read
jira jira_view jira_view read
jira jira_add_comment jira_add_comment write
jira jira_create_issue jira_create_issue write
jira jira_edit_issue jira_edit_issue write
confluence confluence_search confluence_search read
confluence confluence_view confluence_view read
abt docs package atlassian --project-root .

Tool spec syntax

Agent frontmatter uses shorthand__tool (double underscore), not a bare tool name:

tools:
  - atlassian__*              # all read tools (respects write gates)
  - atlassian__confluence_search  # confluence search only
  - atlassian__confluence_view    # confluence page read
  - atlassian__jira_search    # jira search
  - atlassian__jira_view      # direct ENG-123 lookup

Write tools are gated: an explicit write spec that is not enabled fails abt compile, and atlassian__* omits it. Enable writes with config.packages.abt-atlassian-tools.allow_writes (package-wide) or config.packages.abt-atlassian-tools.components.jira.allow_writes (jira only).


Backend: Python SDK

jira_search, jira_view, confluence_search, and confluence_view call abt.integrations.atlassian.search, which uses the same jira and atlassian-python-api libraries as retrievers and compile-time context.confluence. The write tools call abt.integrations.atlassian.jira_write (add_jira_comment, create_jira_issue, edit_jira_issue). Credentials come from profiles.yaml → credentials.atlassian only. url must be https://; plain http:// is rejected unless it is localhost, 127.0.0.1 or ::1, because the API token is sent with every request.

Projects using Confluence or Jira with abt typically already install abt-core[confluence], [jira], or [all].


Installation

packages:
  - git: https://github.com/getyourguide/abt-core.git
    revision: main
    subdirectory: packages/abt-atlassian-tools
abt deps

Credentials (profiles.yaml)

Same atlassian namespace as retrievers, sources, and exposures:

# profiles.yaml
default:
  target: dev
  outputs:
    dev:
      credentials:
        atlassian:
          url: https://your-org.atlassian.net
          username: you@company.com
          api_token: "{{ env_var('ATLASSIAN_API_TOKEN') }}"

Tools

Every tool returns bounded Markdown (at most 75,000 characters). When a result is cut or more exists, the output says so and names what to change. Failures start with [ERROR] and carry the service's own message, such as the field Jira rejected, with a hint where one helps. An out-of-range number such as limit=500 is refused with the allowed range rather than reduced.

jira_search(query: str = "", jql: str = "", projects: str = "", limit: int = 10) -> str

Finds issues. A query lists the most recently updated first; a jql lists in the order it states, so add ORDER BY. Pass either query (keywords matched against summary, description and comments, optionally restricted by projects such as ENG,DATA) or jql (a complete JQL statement such as assignee = currentUser() AND resolution = Unresolved ORDER BY updated DESC). limit is 1–50. Jira Cloud refuses a JQL with no restriction (for example ORDER BY updated DESC alone). Each hit shows key, URL, status, priority, assignee and the first 600 characters of the description; use jira_view for the rest. Cloud search reports no total, so the output ends with a note when more issues matched than limit. An empty result for a jql echoes the statement that ran.

jira_view

jira_view(issue_key: str, comments: int = 10) -> str

Reads one issue in full: type, status, priority, resolution, people (each with the account id a [~accountid:…] mention needs), labels, components, fix versions, dates, parent, issue links, the whole description and the newest comments comments (0–50, newest first, with a note when older ones exist). issue_key accepts ENG-123, a /browse/ENG-123 URL, or a board URL with selectedIssue=. The description and comments are written by users; the tool description tells the model to treat them as data.

jira_add_comment

jira_add_comment(issue_key: str, body: str) -> str

Adds a comment to a Jira issue. body is wiki markup. Write tool — requires allow_writes (see Tool spec syntax).

jira_create_issue

jira_create_issue(
    project: str,
    summary: str,
    description: str = "",
    issue_type: str = "Task",
    labels: list[str] | None = None,
) -> str

Creates an issue and returns Created KEY: <browse url>. Write tool. issue_type is the issue-type name as the target project defines it ("Task", "Bug", "Access Request") — the SDK resolves the name to an id, and a name the project does not define fails with a 400. A label must not contain whitespace (Jira rejects it with an opaque 400, so this is validated up front).

jira_edit_issue

jira_edit_issue(
    issue_key: str,
    summary: str = "",
    description: str = "",
    labels: list[str] | None = None,
) -> str

Updates an existing issue; arguments left empty are not touched. Write tool. description and labels replace the existing values rather than appending — read the issue first if you mean to merge. It cannot clear the description or the labels. Does not transition status: that is the jira exposure's config.transition.

confluence_search(
    query: str = "",
    cql: str = "",
    spaces: str = "",
    limit: int = 5,
    include_body: bool = True,
) -> str

Finds pages. A query lists the most recently modified first; a cql lists in the order it states, so add ORDER BY. Pass either query (keywords, optionally restricted by spaces as shown in the space URL, such as Engineering,OPS) or cql (a complete CQL statement such as type = page AND label = "runbook"). limit is 1–25. Each hit shows title, URL, space, last-modified date and an excerpt of up to 800 characters (include_body=false for a compact list). The output ends with a note when more pages matched than limit.

confluence_view

confluence_view(page_id: str, offset: int = 0) -> str

Reads one page as Markdown: headings, nested lists, tables, code blocks and link targets are kept (the rendered view body is converted, so macros appear as the text Confluence renders for them). page_id accepts a numeric id or a page URL: /pages/<id>, a legacy viewpage.action?pageId= link, an editor /pages/edit-v2/<id> link or a /wiki/x/<code> short link. A long page is returned in parts of about 60,000 characters; each part ends with a note giving the offset of the next, so the whole page is always reachable. The page text is written by users; the tool description tells the model to treat it as data.


Jira bodies are wiki markup, not Markdown or ADF

The jira SDK talks Jira REST v2, which takes wiki markup. Anything you pass as a comment body or an issue description is rendered as wiki markup, so Markdown silently degrades:

Intent Correct (v2 wiki markup) Wrong — renders literally
Mention a user (notifies) [~accountid:5f8a…] @Name, [Name](url)
Link [label\|https://example.com] [label](https://example.com)
Heading h3. Title ### Title
Bold *bold* **bold**
Code block {code}…{code} ```…```

[~accountid:…] is the form that actually notifies the user. There is no v2 equivalent of an ADF inlineCard, so a team smart-link cannot be made to notify — mention an individual by accountId instead. Passing an ADF document ({"type": "doc", …}) does not work: the SDK's add_comment takes a str.


Choosing retriever vs tool vs context

Need Use
Inject search at agent compile Retriever type: jira_search / confluence_search
Agent decides when to search mid-run jira_search / confluence_search tools
Single page in system prompt {{ context.confluence(...) }}
Full page body at runtime confluence_view
Post a comment / transition Jira at the end of a run Exposure type: jira — one fixed target
Agent decides mid-run to comment, create or edit an issue jira_add_comment / jira_create_issue / jira_edit_issue

Retrievers and package tools share abt.integrations.atlassian.search — identical markdown output shape.


Example agent

tools:
  - atlassian__jira_search
  - atlassian__jira_view
  - atlassian__confluence_search
  - atlassian__confluence_view
User: Runbooks for remote Airflow pipelines and related Jira tickets?

Agent:
  confluence_search("remote airflow pipelines", spaces="MOCK", limit=5)
  jira_search(jql='project = DATA AND text ~ "remote airflow" AND resolution = Unresolved')
  confluence_view("<page-id>")        # if the excerpt is insufficient
  confluence_view("<page-id>", offset=<offset from the note>)   # when a part ends with a continue note
  jira_view("DATA-123")               # full description and comments of one hit

Environment variables

Variable Default Description
ABT_TOOL_MAX_OUTPUT_BYTES 500 KB Per-tool output cap in bytes (the tools already stay under 75,000 characters)

See also

  • Packages — install, shorthand specs, config.packages
  • Retrievers — confluence_search / jira_search
  • git-tools — local git/gh tools (separate integration)