Skip to content

MCP API Reference ​

ai-boost has sixteen MCP tools: ten for search, instructions, feedback and drafting a team decision, five that write to Jira, documented under Jira write tools, and apply_jira_changes, which makes many of those writes behind one previewed plan (below). A key whose project allows no Jira writes sees fifteen: apply_jira_changes is listed only once a write is allowed. All are deferred — load their schemas once at the start of a session:

text
ToolSearch("select:mcp__ai-boost__search_code_patterns,mcp__ai-boost__record_agent_feedback,mcp__ai-boost__get_few_shot_examples,mcp__ai-boost__find_relevant_instructions,mcp__ai-boost__query_agent_feedback,mcp__ai-boost__search_commit_history,mcp__ai-boost__search_project_knowledge,mcp__ai-boost__get_issues,mcp__ai-boost__prepare_task,mcp__ai-boost__remember_for_team")

Every tool in tools/list carries annotations with all four hints — readOnlyHint, destructiveHint, idempotentHint and openWorldHint — so a client can decide when to ask before a call. The search tools and remember_for_team are read-only; edit_comment, edit_issue, transition_issue, manage_fix_version and apply_jira_changes are marked destructive.

Results are delivered whole. No tool result loses items to fit a size. Every tool in tools/list also carries _meta: {"anthropic/maxResultSizeChars": 100000}, so Claude Code keeps a text result of up to 100,000 characters in the conversation instead of its 50,000 default. Above that, Claude Code saves the whole result to a file and hands over the path. The JSON block of every tools/call result is compact JSON, with no indentation. The line before it, the summary a person reads in the collapsed row, is unchanged.


search_code_patterns ​

Semantic search over the indexed codebase. Returns the most relevant code chunks for a natural-language query.

Call before writing any code. Run 2–3 targeted queries to understand existing patterns before implementing.

Parameters ​

ParameterTypeDefaultDescription
querystringrequiredNatural-language description of what you're looking for. Genuinely required — a call without it, or with a blank one, is refused with a 422 rather than answered with an empty result
kinteger5Number of results to return (minimum 1, and a search never returns more than 20 whatever k says)
session_idstringnullThe id the SessionStart hook stated — copy that value exactly. Passing it is what lets the call count as context the session actually used; omit it and the retrieval is invisible to the judge, which then scores the session on its own account alone. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

json
{
  "status": "ok",
  "results": [
    {
      "repository": "ai-boost",
      "file_path": "app/Http/Controllers/PaymentController.php",
      "symbol": "PaymentController::handleWebhook",
      "chunk_type": "method",
      "language": "php",
      "start_line": 42,
      "end_line": 78,
      "content": "...",
      "score": 0.87
    }
  ]
}

repository says which repository the chunk came from. It matters because a project-scoped key searches every repository in the project at once, and a pattern from a sibling repository is context rather than the file you are about to edit.

start_line and end_line are left out entirely — not returned as null — for a chunk indexed before the clients started sending line numbers. A missing key reads as "this is a file path", which is what it always was; "start_line": null reads as a line you could jump to.

status is one of three:

ValueMeaning
okAt least one result scored above the confidence threshold
low_confidenceEverything in scope was searched and nothing cleared the threshold. index_freshness names the stalest repository in scope and when it was last indexed — usually the actual explanation
partialAt least one repository could not be searched. failed_repositories lists them and message says so. Any results are from the rest of the scope, so an empty list here is not a confident "nothing found"

index_freshness — what the answer was drawn from ​

Present on successful search_code_patterns, search_commit_history and find_relevant_instructions responses as well as on low_confidence ones. On a successful answer it describes the repositories that actually produced results; on an empty one, the stalest in scope, which is usually the explanation.

json
"index_freshness": {
  "repository": "warehouse-picking",
  "last_indexed_at": "2026-08-28T18:28:04+00:00",
  "age": "20 seconds ago",
  "indexed_commit": "508380a7462434a961a6b0e47174939e735d298f",
  "staleness_check": "git rev-list --count 508380a746…..HEAD — commits indexed since, which is what stale means here; age is only a proxy",
  "uncommitted_check": "git status --porcelain — uncommitted edits are not in staleness_check; re-run `ai-boost index` to include them",
  "main_check": "git fetch -q origin && git rev-list --count 508380a746…..origin/HEAD — commits on the default branch the index does not have (use origin/<default branch> if origin/HEAD is not set)",
  "repositories": [
    {
      "repository": "warehouse-picking",
      "indexed_commit": "508380a7462434a961a6b0e47174939e735d298f",
      "indexed_at": "2026-08-28T18:28:04+00:00",
      "commits_behind": 3,
      "stale": false
    }
  ]
}

The top-level keys name the stalest repository. repositories has one entry per repository the answer came from (the whole scope when it is empty), each with its own indexed_commit and indexed_at.

staleness_check and main_check answer different questions. staleness_check compares with your local HEAD: what you committed that the index lacks. It reads 0 on a stale checkout whose HEAD is the indexed commit, so it cannot tell you the index is behind. main_check compares with the remote default branch, which is the question "does this answer reflect current main".

commits_behind and stale are absent unless an index run reported the default-branch head; absent means unknown, not zero. When present, the count is as of that index run (see indexed_at), not live, and stale is true above 20 commits.

indexed_commit is the field worth acting on. The server has no checkout and cannot tell whether the index is behind; the client does, so comparing it against local HEAD — or running staleness_check verbatim — is what turns "indexed 20 seconds ago" into an answer. A result whose indexed_commit is not an ancestor of your HEAD was indexed from a different branch, and the file paths in it may not exist in your working tree.

Absent when no index was consulted: find_relevant_instructions with an empty context answers from the stack baseline alone, and says nothing about freshness rather than describing an index that took no part. indexed_commit and staleness_check are null for a repository last indexed by a client too old to report its commit.

Usage examples ​

text
search_code_patterns("how authentication middleware is applied to routes")
search_code_patterns("Stripe webhook signature verification")
search_code_patterns("User model relationships and scopes")

get_few_shot_examples ​

Returns the highest-scoring past sessions for a given task type. Use before coding to calibrate approach and quality expectations.

Parameters ​

ParameterTypeDefaultDescription
task_typestringnullFree-form task label. Common values: feature, bug-fix, refactor, api-endpoint, migration, test, command, job, policy. Spelling is normalised, so bugfix and bug_fix reach the same rows. Leave it out to get the best example of any type
kinteger3Number of examples to return (minimum 1)
session_idstringnullThe id the SessionStart hook stated — copy that value exactly. Passing it is what lets the call count as context the session actually used; omit it and the retrieval is invisible to the judge, which then scores the session on its own account alone. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

json
{
  "status": "ok",
  "examples": [
    {
      "session_id": "46b9f5a4-3e1a-43e5-a148-49cc2cd4504c",
      "score": 0.92,
      "verified": true,
      "task_type": "feature",
      "task_description": "Add Stripe subscription webhook handler",
      "notes": "Used existing PaymentService pattern, added feature test"
    }
  ]
}

score is the effective score — the judge's, not the session's own — because that is the number the example was selected and ranked by. A session that rated itself 0.97 and was judged 0.4 drops out of the pool entirely rather than leading it.

verified is true on every row today, and is worth knowing about rather than branching on. An unjudged row no longer qualifies as an example at all, so the distinction the field was added to draw has nothing left to draw it between. The key stays because older clients read it and cannot be force-upgraded.

An empty result is never ok. Anything that would have returned no examples answers low_confidence with a message naming which of three situations you are in — the label matched nothing but others exist, nothing is judged under any type, or the repository has no judged examples at all — because each one asks you to do something different. available_task_types accompanies the first and is omitted entirely, not sent as [], in the other two.

This matters more than it looks: {"status":"ok","examples":[]} reads as "this repository has nothing worth imitating", which is a claim about the code rather than about the data.


find_relevant_instructions ​

Retrieves the most relevant project conventions and instructions for the current task context. Uses semantic search over indexed CLAUDE.md and project instruction files.

Parameters ​

ParameterTypeDefaultDescription
contextstringnullWhat you are about to do, in a sentence — "adding a queued job that retries on failure" retrieves far more than "jobs". Matched semantically against the project's own documents, so describe the task, not a filename. Leave it out to get the stack baseline alone
lessonsinteger0Lessons from earlier sessions on similar work to add, 1–2 (0 for none). Only sessions that share a specific identifier with context qualify, so the list is often empty
session_idstringnullThe id the SessionStart hook stated — copy that value exactly. Passing it is what lets the call count as context the session actually used; omit it and the retrieval is invisible to the judge, which then scores the session on its own account alone. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

json
{
  "status": "ok",
  "instructions": [
    "Use Form Request classes for validation, never inline validate() calls",
    "Every new endpoint needs a feature test"
  ],
  "documents": [
    {
      "repository": "ai-boost",
      "file_path": "CLAUDE.md",
      "content": "## Controllers & Validation\nUse Form Request classes..."
    }
  ]
}

Two sources, layered rather than chosen between:

  • instructions is a list of plain strings — this project's stack baseline. It is always present, so a Qdrant outage still leaves you with a useful answer rather than nothing.
  • documents is what semantic search found in the repository's own instruction files — CLAUDE.md, AGENTS.md, CONTRIBUTING.md, docs/ and their siblings — up to six passages. .claude/CLAUDE.md is never among them: that directory is excluded from indexing by the CLI, because it is ai-boost's own output and holds the API key.

If retrieval fails, documents is empty, a message explains why, and instructions still answers the question.

The passages go through the same relevance check as the code and commit searches (on by default since AI-692): a passage the judge does not confirm for context is left out, and relevance says whether the check ran ({"checked": true, "candidates": N, "kept": M}, or {"checked": false} when it could not answer in time, in which case every passage is kept). The rules in instructions are never judged. The check adds one small-model call, measured on production code search at a median of about 1.8 s; RETRIEVAL_RELEVANCE_CHECK_TOOLS sets which tools it covers.


search_commit_history ​

Semantic search over the indexed git commit history. Useful for understanding the reasoning behind existing code or finding when a specific change was introduced.

Parameters ​

ParameterTypeDefaultDescription
querystringrequiredNatural-language description of the change or area you're investigating. Genuinely required — a call without it, or with a blank one, is refused with a 422 rather than answered with an empty result
kinteger5Number of commits to return (at most 20)
session_idstringnullThe id the SessionStart hook stated — copy that value exactly. Passing it is what lets the call count as context the session actually used; omit it and the retrieval is invisible to the judge, which then scores the session on its own account alone. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

json
{
  "status": "ok",
  "results": [
    {
      "repository": "ai-boost",
      "file_path": ".git/commits/3861916",
      "symbol": "3861916",
      "chunk_type": "git_commit",
      "language": "text",
      "content": "fix(repos): normalize gitlab_url before persisting to strip .git suffix\n\nThe registry returns it with a trailing .git...",
      "score": 0.79
    }
  ]
}

The shape is the same as search_code_patterns, because a commit is indexed as an ordinary chunk. Read it accordingly:

You wantRead
The commit shasymbol (also the tail of file_path)
The commit messagecontent — subject line, blank line, then the body
Which repository it is fromrepository

There are no hash, message, author or date fields. Author and date are not indexed at all: what is searched is the message, so this answers "why does this look like it does", and git show <symbol> gives you the rest.

start_line and end_line are absent, since a commit message is not a region of a file. status carries the same three values as search_code_patterns.


record_agent_feedback ​

Records a quality score for the current session. The Stop hook prompts for it when code was changed; it can also be called directly.

Always call this at the end of a session. Even a score of 0.5 with a brief note contributes to the project's learning baseline.

Parameters ​

Prefer the four sub-scores. When they are supplied, the overall score is computed automatically from the weighted formula below and the value you pass in score is ignored — score is only a fallback for when you don't provide sub-scores.

ParameterTypeDefaultDescription
session_idstringrequiredThe id the SessionStart hook stated — copy that value exactly. The judge looks the session up by this id, so an invented label is never matched and the row is never verified. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters
repositorystringconditionalWhich repository this session changed, by folder name. Required when this server covers more than one — a feedback row belongs to exactly one repository, and the call is refused rather than guessed at. Ignored when it covers only one
scorefloatconditionalFallback overall quality score, 0.0–1.0. Required only when you send none of the four sub-scores; ignored whenever they are present, because the overall is computed from them
rule_compliancefloatnullFollowed project rules and conventions (0–1). Weight: 35%
task_completionfloatnullRequested task was fully completed (0–1). Weight: 30%
implementation_faithfulnessfloatnullFaithfulness to project patterns and architecture (0–1). Weight: 20%
context_relevancefloatnullRelevance and usefulness of the RAG context retrieved (0–1). Weight: 15%
task_typestringnullFree-form task label. Common values: feature, bug-fix, refactor, api-endpoint, migration, test, command, job, policy. research, investigation, review and audit are judged on a read-only rubric and without a diff
task_descriptionstringnullBrief description of what was implemented
notesstringnullWhat went well, what was tricky, approach notes
rag_alignmentstringnullShort note on how well the RAG context matched the task
agent_typestringnullModel used (e.g. claude-opus-5)
issue_keystringnullThe Jira issue the session worked on (e.g. AI-66), so the score can be traced to the ticket

Scoring guide ​

Each value — the four sub-scores and the fallback score — is on the same 0.0–1.0 scale:

ValueMeaning
0.9 – 1.0Excellent: correct first attempt, good tests, clean code
0.7 – 0.9Good: minor corrections needed, solid overall
0.5 – 0.7Average: required significant guidance or rework
0.3 – 0.5Below average: substantial errors or missed requirements
0.0 – 0.3Poor: mostly wrong, or session abandoned

Score independently of session duration — a 5-minute bug fix at 0.95 is equally valuable as a 2-hour feature at 0.85. A session becomes a golden eval only when it changed code (the diff sent with the evaluation names changed files) and the computed overall score and the server's independent LLM judge both reach 0.9. A research or investigation session never does. It is reused as a few-shot example on a lower, judge-only bar: the judge scores it 0.8 or higher on a complete diff. A code session the judge scores below 0.8 can be shown to teammates as a lesson; a research or investigation session never is. Scoring yourself highly is not sufficient, and the judge can remove the label again.

Give the judge something to read. A row carrying only a number — no notes, no task_description, no diff, and no tool calls attributed to the session — is declined rather than judged, because the only evidence would be the score you just claimed. It is recorded, but it never becomes an example. Passing session_id on the retrieval tools is one of the four things that counts.

Response ​

json
{
  "status": "ok",
  "score": 0.883,
  "golden_eval_eligible": false
}

score is the weighted overall, computed from the four dimensions. It differs from the number you passed in score whenever you supplied sub-scores, so this — not your own input — is the row's score.

golden_eval_eligible says the row clears the self-reported half of the golden-eval bar and is not a research or investigation session. The rest comes later: the server's judge independently agreeing, and the evaluation's diff naming changed files.

A truncated key appears when a field was longer than the column that stores it and was stored shortened — rag_alignment at 255 characters is the one that bites in practice, and notes and task_description at 20 000 the ones that rarely do. It lists the field names, so a caller that wanted its whole note is told it did not get one.


query_agent_feedback ​

Returns past session feedback for this repository, with the independent judge's score and reasoning. Pass query and the records most related to your task come back first, from the repository's whole history — including the sessions the judge scored low, which get_few_shot_examples never returns and which are often the more useful thing to read.

Parameters ​

ParameterTypeDefaultDescription
querystringnullYour task in a sentence. Ranks every record by how much its task description (counted twice), notes and judge rationale share with it. Omit it for the most recent records
kinteger10Number of records to return
task_typestringnullFilter by task type (optional)
session_idstringnullThe id the SessionStart hook stated — copy that value exactly. Passing it is what lets the call count as context the session actually used; omit it and the retrieval is invisible to the judge, which then scores the session on its own account alone. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

json
{
  "status": "ok",
  "ranking": "relevance",
  "field_notes": { "lesson": "…", "judge_score": "…", "judge_rationale": "…", "score": "…", "ranking": "…" },
  "feedback": [
    {
      "session_id": "46b9f5a4-3e1a-43e5-a148-49cc2cd4504c",
      "lesson": "cautionary",
      "judge_score": 0.35,
      "judge_rationale": "The retry test was never run; the backoff ignores Retry-After.",
      "score": 0.88,
      "task_type": "feature",
      "task_description": "Retry the Jira webhook delivery on 429",
      "rule_compliance": 0.9,
      "task_completion": 0.9,
      "implementation_faithfulness": 0.85,
      "context_relevance": 0.8,
      "agent_type": "claude-opus-5",
      "rag_alignment": null,
      "notes": "Claimed the retry test passed.",
      "source": "session",
      "created_at": "2026-07-04 09:00:00"
    }
  ]
}

lesson is example when the judge scored the session 0.8 or higher on a complete diff (the bar get_few_shot_examples uses), cautionary for a code session below it — read judge_rationale for what went wrong and do not copy the approach — reference for a research, investigation, review or audit session, which is scored on its own rubric and is never an example or a mistake to avoid, and unjudged when no independent score exists yet. A session is labelled a golden eval only when it changed code and both your own score and the judge's reach 0.9; a research or investigation session is never shown to teammates as a lesson.

ranking is relevance when a query matched, and recency — newest first — when none was given or nothing shared a word with it. The ranking is lexical (BM25), across every repository the key covers at once, so a project key compares them on one scale. field_notes explains the fields in the response itself.

status is ok, low_confidence or partial. An empty list is never ok: no feedback recorded at all, and none under the task_type you asked for, are both low_confidence with a message saying which. partial outranks it, so a repository that could not be reached is reported as unreachable rather than as one with no history.

score here is what the session reported about itself; judge_score is the server's independent judge, and is null until the judge has reached the row. Trust the judge where they disagree.

There is no average_score and no count — the list is the whole answer.


search_project_knowledge ​

Searches the project's connected, approved external sources — Jira issues and their comments, and Confluence pages — for what the repository never held: requirements, decisions, an issue's status. Read only: it never calls, writes to or changes a provider.

Parameters ​

ParameterTypeRequiredDescription
querystringyesWhat you need, in a sentence. Put an issue key such as AI-123 in it and that issue ranks first
kintnoResults to return (default 5, at most 20)
external_idstringnoAn item this tool already returned, or a Jira issue key, to search within that one item. Re-checks the same permissions
external_kindstringnoWith external_id: the kind that item carried (e.g. jira_comment), for an id an issue and a comment share. Without it a bare number is the issue
detailstringno"full", with external_id: that one item whole — its stored text, every comment and every linked commit. query is then not used
pageintnoWith detail: "full" only: the page of a long item to return (default 1). A page past the last is a 422 that names the last; page without detail: "full" is a 422
session_idstringnoThe session id the SessionStart hook stated. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

Results are citations: each carries external_kind, the issue key (external_iid), its title, its source, the item's own freshness fields and its excerpt, the whole matched passage without the title every passage begins with. Each source's facts (provider, source_status, the source clocks, may_conclude_deletions, partial_coverage_reason) are stated once, in sources, keyed by the source each row names.

A field left out holds its default (each value is said once):

  • source: left out of every row when the answer has one source; that source is the one key in sources.
  • item_truncated: sent only when true. attributes_known: sent only when false.
  • In linked_code: evidence only where it differs from subject, indexed_commit on the first entry of its repository, via and truncated only when set.
  • reference is not sent. It is derivable from the row: jira/issues/<key>, jira/issues/<key>/comments/<id>, confluence/pages/<id> and so on, by kind.
  • score has three decimals.

The response's own field_notes object explains every field the answer carries, so read it rather than assuming. An empty result with a reason is an authorization or source-state answer about your call — not proof that no such source exists.

Nothing is cut. An answer holds whole rows while they fit one page (45,000 bytes as the transport encodes it, under Claude Code's inline limit); every further hit is listed in citations, best first, each hit exactly once, and whole names the call that reads a citation whole. page is refused (422) on a search without detail: "full".

A detail: "full" read larger than one page carries page: {"number": n, "of": N, "answer": "…"}: call again with the same arguments and page n+1. answer names the answer the pages belong to; if a later page's differs from an earlier one's, the answer changed in between, so read again from page 1. An entry continued from an earlier page repeats its identity (external_iid, external_id, external_kind, title, source_version) and says continued: true; it carries the rest of that entry, in order: more of attributes.links and attributes.subtasks, more of body, more comments and more linked_code. A comment marked continued: true (with its external_id and external_kind) carries more of the text of the comment before it. Text is split only after a blank line, so appending the pieces in order gives the whole body or comment; a paragraph larger than a page goes whole on a page of its own. An answer that fits one page carries no page.

field_notes is always sent, one short line per field with only the rules that change how a result is read (for example attributes_known: false means not known yet, and only status: linked proves the work landed). Pass field_notes: "full" for the complete explanations. Nothing is remembered between calls. In a search row a Jira issue's linked_code lists the two strongest commits and linked_code_more counts the rest; a full read lists every one. Each value is said once: evidence only where it differs from subject, indexed_commit once per repository.


get_issues ​

Reads several Jira issues in one call — by key, or by a simple attribute filter — instead of one search per issue. It reads the same index as search_project_knowledge, passes the same three locks (an authenticated project member, shared retrieval switched on, a deliverable source) and never calls Jira. If a lock refuses, the whole call is refused, exactly as a search is.

Parameters ​

Give exactly one of keys or filter; both, or neither, is a 422.

ParameterTypeRequiredDescription
keysstring[]one of1 to 20 issue keys. Upper-cased; a repeated key answers once; entries come back in this order
filterobjectone ofIssues matching every field given, compared case-insensitively. At least one field
filter.statusstringnoA status name, or its category: new, indeterminate or done (the same in every workflow)
filter.issue_typestringnoAn issue type name, e.g. Story
filter.epicstringnoThe key of the parent epic
filter.parentstringnoAlias of filter.epic. Giving both with different values is a 422
filter.status_categorystringnoAlias of filter.status, limited to a category: new, indeterminate or done; any other value is a 422. Giving both with different values is a 422
filter.assigneestringnoA display name. Refused (422) when the server is configured not to name people
filter.labelstringnoA label the issue carries
filter.updated_sincestringnoISO 8601; issues the provider changed at or after it
detailstringno"summary" (default) or "full", which adds the whole body and every comment to each readable issue. Anything else is a 422
pageintnoThe page of the answer to return (default 1). A page past the last, or one below 1, is a 422
session_idstringnoThe session id the SessionStart hook stated. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

The search_project_knowledge envelope: status, audience, policy_version, field_notes, sources and results. A readable issue is the same row a full lookup returns, attributes (every link and sub-task, each title whole) and linked_code included: two commits and linked_code_more in a summary, every one with detail: "full". A filter list leaves linked_code out: ask for the issue by key to see what landed for it. field_notes follows the rule of search_project_knowledge, compact by default and full on request. Nothing is cut: a summary answer pages at 25,000 bytes and a full one at 45,000, by the page contract of search_project_knowledge.

  • By key, results has one entry per requested key. A key that cannot be read gets {"external_iid": "AI-9", "reason": "…"} and the other keys still answer: not_found (no such issue among the sources you may read — a key held anywhere else is not revealed), restricted (the issue exists but is withheld from delivery) or not_indexed (its import is still pending).
  • By filter, results holds every match, newest first by source_updated_at, across the pages, with total_matched and more (true when later pages hold more of them).
  • detail: "full" reads up to 20 issues whole. A filter that matches more lists them in summary, and whole names the call that reads them whole: get_issues with up to 20 of their keys and detail: "full".

prepare_task ​

A task's conventions, lessons from earlier sessions, examples and project knowledge in one call. Read only. Each section is produced by its own tool — find_relevant_instructions, query_agent_feedback, get_few_shot_examples and search_project_knowledge — and then selected for the task. Nothing in the answer is cut, truncated or dropped to fit a size: an item that goes in is whole, and a body that is not inline is named, in the section's whole field, with the one call that returns it whole.

Parameters ​

ParameterTypeRequiredDescription
taskstringyesYour task in a sentence. Used as context for the conventions and as query for the lessons and the knowledge
issue_keystringnoA single Jira issue key such as AI-121. Its row comes first in knowledge, in full, even when task does not name it. Anything else is refused with 422
task_typestringnoFilters examples only, which are then ranked by the task; the lessons are not filtered, so a cautionary lesson filed under another type still reaches you
session_idstringnoThe session id the SessionStart hook stated. Letters, digits, dot, underscore, colon and hyphen only, at most 128 characters

Response ​

json
{
  "status": "ok",
  "sections": {
    "instructions": { "status": "ok", "instructions": [], "documents": [], "index_freshness": { "repositories": [] } },
    "lessons":      { "status": "ok", "ranking": "relevance", "field_notes": {}, "feedback": [], "whole": "…" },
    "examples":     { "status": "ok", "examples": [], "whole": "…" },
    "knowledge":    { "status": "ok", "sources": {}, "field_notes": {}, "results": [], "whole": "…" }
  }
}
  • status is ok whenever the call ran. Each section carries its own status, so read it: low_confidence, partial and denied mean what they mean for the standalone tool. A section that could not run at all is {"status": "unavailable", …} and the other three still answer.
  • The call has a time bound, 20 s by default (PREPARE_TASK_SECONDS, held between 5 and 25 s): no section starts after it, and no outbound request made inside it waits past it. A section that did not start in time, or one whose request the bound cut short, is {"status": "deferred", "reason": "time_bound", …}, and its whole names the call that returns it; a section that answered late keeps its answer whole. Nothing is cut to meet the bound.
  • instructions: the stack rules, and the passages the relevance check confirmed for the task, each whole. When the check did not run or did not answer in time, the passages are listed by file under passages (repository, file_path) instead, and find_relevant_instructions with the same context returns them whole. Inside prepare_task the check has its own budget, 4 s by default (OPENAI_RELEVANCE_TIMEOUT_PREPARE_TASK); the standalone tool keeps OPENAI_RELEVANCE_TIMEOUT. index_freshness keeps each repository's indexed_commit, indexed_at, commits_behind and stale. The also_check pointer to the project knowledge is left out when the knowledge section is in the answer; when that section is left out, the pointer stays.
  • lessons: up to three records, ranked by the task as query_agent_feedback ranks them, one per session. Each carries the judge's verdict and the task whole: session_id, lesson, judge_score, judge_rationale, task_type, task_description, issue_key, created_at. The session's own notes, sub-scores and self-rating are in query_agent_feedback with the same query, which returns each of these records.
  • examples: up to three judged examples, from the top 20 for task_type ranked by the task with the same ranker, never a session already among the lessons. Each carries session_id, score, verified, task_type and task_description; get_few_shot_examples with the same task_type and k 20 returns each whole, notes included. When no example shares a word with the task the section is low_confidence and says so.
  • knowledge: sources holds each source's state once (provider, source_status and the clocks). The issue named by issue_key is the first row of results in full, its matched passages merged into one row; its linked_code says evidence only where it differs from subject, and indexed_commit once per repository. Every other match is a citation: external_iid, title, external_kind, url, status, status_category and score (source when several sources answered). An issue (jira_issue) is read whole by its key through get_issues. Every other kind — a comment, an attachment, a page — also keeps external_id, and search_project_knowledge with that external_id, its external_kind and detail: "full" returns it whole, whatever its external_iid holds. The section does not repeat the answer's own policy_version, and leaves partial_coverage out while it is null (every source searched). Its rows follow the absence rules of search_project_knowledge.
  • field_notes explain only the fields the section carries. A section that succeeded and found nothing is left out, and one that could not answer keeps its status and message without its empty list.
  • The task is embedded once per embedding model, not once per section. Each section files its own span under its own tool name, attributed to the session, so analytics read them as they read standalone calls; the embedding's tokens and cost sit on the first span that used it and the later one shows none. A fifth span, prepare_task, carries no cost and counts the call itself.

remember_for_team ​

Drafts a decision your team should remember, as a markdown file for docs/decisions/ in a repository the key covers. It writes nothing. No file, no database row, no search entry: it returns the path and the text, and the answer tells the agent to show the draft to the developer and write the file only after a yes. Marked read-only.

Once the file is written, committed and indexed, find_relevant_instructions can return it to later sessions. That starts with the next index run after the commit, not before.

Parameters ​

All parameters are strings. The server checks every one itself, whatever the schema says.

ParameterTypeRequiredDescription
titlestringyesThe decision in one short line, at most 150 characters. It becomes the heading and the file name
contextstringyesWhy: the situation and what pushed the decision, at most 4000 characters
decisionstringyesWhat was decided, at most 4000 characters
consequencesstringnoWhat follows from it, at most 4000 characters
alternativesstringnoWhat was considered and turned down, at most 4000 characters
repositorystringwhen the key covers more than one repositoryThe repository's folder name, with the same rule as record_agent_feedback. Without it on such a key the call is refused and the folder names are listed
session_idstringnoThe session id the SessionStart hook stated

Bounds count characters after control and text-direction characters are removed and the value is trimmed. A value over its bound is refused, never cut short. An optional field that is empty or only whitespace counts as not given.

Response ​

json
{
  "status": "ok",
  "repository": "acme-shop",
  "path": "docs/decisions/2026-11-20-release-branches-are-cut-on-friday.md",
  "content": "# Release branches are cut on Friday\n\nDate: 2026-11-20\n\n## Context\n...\n\n## Decision\n...\n",
  "redacted": 0,
  "written": false,
  "next_step": "Nothing has been written. Show this draft to the developer and ask whether to write it. Only after a yes, create the file ... Never write it without asking."
}
  • path is relative to the root of the repository folder. The date is the day of the call in UTC, and the name is built from the title: lowercase letters, digits and hyphens only, at most 60 characters, so a title cannot point the file anywhere else. A title with no usable letters becomes decision.
  • content has a heading, a date line and a Context and a Decision section. Consequences and Alternatives considered appear only when you gave them. The same input on the same day gives the same text.
  • written is always false. next_step tells the agent to ask first, to add -2, -3 to the name rather than overwrite a file that already exists, and to commit the file once written.
  • Text that looks like a credential (API keys, tokens, private keys, passwords in assignments, credentials in URLs) is replaced with [REDACTED] in every field, the title and path included. redacted counts the replacements, and when it is above 0 next_step says so. This catches credential shapes, not every secret: read the draft before you write it.
  • Line breaks and tabs in your text are kept. Other control characters are removed, and so are text-direction control characters.
  • In the transcript the tool's collapsed line says the draft was not written.

Refusals ​

Each answer is HTTP 422 with {"status": "error", "message": "..."}, and nothing is written:

  • a required field is missing, is not a string, or is empty once control and text-direction characters are removed and the value is trimmed (the message names the field);
  • an optional field that is not a string, or any field over its bound (the message names the field and the bound);
  • repository is missing on a key that covers several, or names a folder the key does not cover;
  • the redaction step failed. The call is refused rather than answering with unchecked text.

Jira write tools ​

Eight tools change Jira (delete_comment is off until KNOWLEDGE_DELETE_COMMENT_ENABLED is set, and manage_fix_version is off and not listed until KNOWLEDGE_ATLASSIAN_VERSION_SCOPE is set): comment_on_issue, edit_comment, delete_comment, edit_issue, create_issue, transition_issue, manage_fix_version and apply_jira_changes, which applies a reviewed batch of comments, edits, creates and transitions. They share one contract.

  • Refused unless a project owner allowed it. Writing is granted per Jira project on the project page of the Developer Portal, and each capability is its own grant: Comment, Edit (edit_comment, delete_comment, edit_issue), Create (create_issue), Transition (transition_issue) and Versions (manage_fix_version). None implies another — editing and creating on a Jira project do not allow transitions there. A grant is also for one Atlassian site: when a project reads the same Jira key on two sites, each site is allowed on its own, and a write goes only through an admitted source (active, shared retrieval on). An empty allowlist is the default.

  • Checked against Jira first. Every write, dry runs included, asks Jira where the target is: an issue in another project, an issue or comment restricted in Jira, and a Jira Service Management project are refused. create_issue also checks the issue type and its required fields; transition_issue checks which transitions Jira offers from the issue's current status (see Transitions).

  • expected_updated, optional on edit_issue and transition_issue: the issue's updated time as you last read it (the source_updated_at a search returned), ISO 8601 with an offset. When given, an issue changed since is refused as issue_changed_since_read, compared to the second. It is optional because the index lags Jira by the webhook delay; without it the write goes ahead on what Jira says now.

  • Written as the connection's account, or the caller's own. By default Jira shows the account that authorized the Atlassian connection; for an organisation switched to personal accounts it shows the calling developer's own account, and a caller without one connected is refused. The text is sent as the caller wrote it; nothing is appended to it. A dry run that would write says whose name it will carry in posted_as, the first field of the answer, for example "Will be posted as Ann Lee (the shared connection), not as you." (or "your own Atlassian account" when the caller authorized the connection).

  • One summary block. The same dry run carries summary, right after posted_as: plain text of four lines that says, in one place, who the change is posted as, where (the issue key and its title, the site, and the issue's priority when Jira sends one) and what will happen ("New comment", "Replace comment 10101", "Change summary, Append to description, Labels +a −b", "Create Task in ACME", "Move To Do → Done"). Show it to the developer as it is. It comes from the issue read the checks already make, so it costs no extra Jira call, and it holds nothing the developer cannot already see: no e-mail address, account id or cloud id, and the text itself stays in preview.body. A title is cut to 80 characters and shown on one line. Only a dry run that would write has a summary; a refusal, a real call and a duplicate have none. A create_issue reads no issue, so its block names the project and the summary you sent.

  • Markdown. body and description are Markdown and arrive in Jira as native formatting: headings and lists for anything longer than a few lines, fenced code for code and logs, > [!NOTE], [!TIP], [!IMPORTANT] or [!WARNING] quotes as panels, tables, task lists and links. A single line break is kept. Plain text still works. A construct Jira has no equivalent for is sent as its literal text and listed by name and line in the dry run's preview: {format: "markdown", body, fallbacks: [{construct, line}]}, where body is the text exactly as it will be converted. preview is on comment_on_issue, edit_comment, edit_issue (with a description) and create_issue (with a description), and on the matching items of an apply_jira_changes dry run. The plan_id signs the arguments, so the text approved is the text posted. A comment body or description longer than 32,767 characters, counted on the Markdown text, is refused as body_too_long (details: {length, limit}) on a dry run and a real call alike; it is never cut.

  • Two steps, for every write tool. dry_run: true runs every check, sends nothing and returns a plan_id (valid for 30 minutes) with plan_expires_at. Show the developer the preview, get their approval where approval.where and the note say (see below), then call again with the same arguments and that plan_id. A real call without a plan_id is refused as plan_required, and one whose arguments differ from the previewed ones, or whose plan was issued to someone else, for another project or for another tool, as plan_mismatch; nothing is sent either way. The plan also binds the Atlassian site (the Cloud ID the write is addressed to) and the account the write is posted as — the ones posted_as named — so a connection that was re-authorized as another account, or a source moved to another site, since the preview is refused as plan_mismatch (a plan issued before this binding was added is too: dry run again). The plan check comes after the gates that identify the write, so a call with no plan_id for an unwritable project or a site that is not connected answers missing_arguments, membership_revoked, no_such_source or ambiguous_source first, and plan_required only after them. If the connection changes while a request is being handled, it is refused as connection_changed. The plan is signed, not stored, so a replayed plan repeats the same idempotency_key and answers duplicate.

  • Where approval happens. A dry run that issues a plan_id also carries approval: {where: "terminal" | "prompt" | "conversation", reasons: [...]}, and its note follows where. terminal is returned when the gate filed a refusal for exactly this call (below): the note (dry_run_refused) says nothing was sent, that the change is sent from Claude Code in a terminal or in the Claude desktop app (the desktop app needs ai-boost CLI 3.46.0 or later), and not to send the real call or ask for approval in the conversation; reasons is ["gate_refuses_here"], and a refusal beats the guard and an earlier attestation. conversation (the default) says to wait for the developer's yes in the conversation. prompt is returned only when the ai-boost CLI's write gate attested for exactly this call a moment earlier (below) and no guard applies; the note then says that Claude Code asks the developer in its own permission prompt, whose answer is the approval, and not to ask again in the conversation. reasons holds gate_attested or no_gate_attestation, plus priority_guard when the issue's Jira priority id is in KNOWLEDGE_JIRA_GUARD_PRIORITY_IDS, or its name is in KNOWLEDGE_JIRA_GUARD_PRIORITY_NAMES (default Blocker, compared case-insensitively), (comma-separated ids, default 1, Highest; ids, never names, which are localised): a guarded issue is always approved in the conversation, whatever the gate does, and a batch with one guarded item is guarded as a whole. create_issue has no issue and so no guard. A watcher ai-boost cannot vouch for is a guard too (external_watchers_guard), whatever the policy and even under an open allowance: it asks in the conversation and the preview only counts them ("N watchers outside your organisation", "N watchers ai-boost cannot place"), never names them and never shows an address, a domain or an account id. Per watcher: a Jira Service Management customer is always outside; an app account, and the account the write is made as, never; an account id ai-boost already knows for the client (the organisation's connection and the developers' own Atlassian connections) is inside whatever its address; a visible email is outside when its domain is not one of the client's (derived from its developers' email addresses, minus public mail domains in knowledge.public_mail_domains, such as gmail.com); a hidden email, which is Jira's default for nearly everyone, is outside unless the account id is known, and is counted as one ai-boost cannot place. A developer who connects their own Atlassian account makes it known. The check fails closed: a watcher list that cannot be read, shows fewer people than its count, or has a malformed entry asks too. There is no per-project switch. A text that mentions someone (@Name) is a guard too (mention_guard), whatever the policy. Manager policy. For each Jira project and capability a project owner chooses ask every time (the default) or ask once per session. After an accepted write under once per session, the server keeps a session allowance for that developer, credential, Jira project, capability and session_id (2 hours idle, 12 hours at most); the next dry run of that kind, with the same session_id and no guard, answers where: "allowance" with session_allowance in reasons and the note dry_run_allowance: show summary once and send the real call without asking in the conversation. policy_once_per_session or developer_always_ask appear in reasons, and policy, only for a project that chose once per session. A batch is allowance only if every item is. A plan issued as allowance is checked again on the real call: if the allowance, the policy, the developer's own "always ask" setting or the grant changed, the call is refused as allowance_ended, nothing sent. A call without a valid session_id always asks. Every client that never attests (no CLI, an older CLI, including one in the Claude desktop app before 3.46.0, the VS Code and JetBrains extensions, claude -p, OAuth clients, sub-agents, plan mode and the manual permission value) gets conversation, unless a live session allowance covers the change (allowance; it needs a session_id, and a guard still wins). Where the CLI's gate is registered, it then refuses the real call from the extensions, claude -p, sub-agents, plan mode and the manual permission value, and dontAsk mode in the desktop app. We have not tested the extensions yet.

    • POST /api/v1/jira-gate/attestations (personal key, Authorization: Bearer): body {"tool": "<one of the write tools above, without prefix>", "arguments": {<the tool_input as the hook saw it>}, "gate_version": 2}; gate_version is an integer, at least 2. Answers 202 {"status":"accepted"}, 403 for a shared key, 404 when the credential names no project, 422 for an invalid body or arguments that name no target. The server keeps only the decision (ask) and the gate version, for 120 seconds, under the developer, project, tool and target (the issue key, plus the comment id for edit_comment; the Jira project and idempotency_key for create_issue; the idempotency_key for apply_jira_changes), and the first dry run for that target, whatever its outcome (a refused one included), takes it out. It makes no Jira call and stores no argument text. An attestation authorizes nothing: the real call still goes through the gate. It is as forgeable as the key itself, which is documented, not defended. When the CLI's hook cannot answer (killed, timed out, or its binary missing), Claude Code falls back to its normal permission handling and may not ask, for example when the developer allowlisted the ai-boost tools; a developer's own hooks or allowlist may also pre-approve the call. Either way the server still refuses a real call without the exact signed preview.
    • POST /api/v1/jira-gate/refusals (personal key, Authorization: Bearer): the gate saying it will refuse the real call because the app is one the gate does not ask in (an IDE extension, claude -p). Body {"tool": ..., "arguments": {...}, "gate_version": 2, "reason": "not_terminal"}; reason is required and not_terminal is the only value. Same answers as attestations (202, 403, 404, 422). It is stored under the same key as an attestation with the decision refuse, so the latest write wins and the first dry run takes it out. A client older than this route never calls it, and an older server answers 404, which the CLI ignores. It authorizes nothing and can only make the note stricter, and it is as forgeable as an attestation: a forged one costs one misleading "send it from a terminal" sentence.
  • The latest preview wins. Only the newest preview of a change can be sent. When a newer dry run exists for the same person, project, tool and target, an older plan_id is refused as plan_superseded, nothing sent, even though it is still signed and unexpired. The target is the issue key (plus the comment id for edit_comment; for create_issue the Jira project and the idempotency_key, so two different new issues never supersede each other). A batch counts under each of its operations, as the single tool each one is. The record of the latest preview is kept for the plan's 30 minutes; if it is gone, the answer is the same and the remedy is another dry run. A single dry run that is refused (for example as duplicate_content) issues no plan and supersedes nothing; a batch dry run registers its plan under every operation's target, including one whose item was refused, so it supersedes earlier previews of those targets. A call whose issue key, comment id or idempotency key is neither text nor a number gets no plan (422), and a batch with such an operation gets no plan_id. A revised create_issue under a new key is not superseded, because its target is new; duplicate_content is what catches an identical one.

  • The same text is not posted twice. A comment_on_issue or create_issue whose text (the body; for an issue the summary and description together, ignoring surrounding whitespace and line-ending style) is exactly what the same developer already posted on the same issue (for a create: in the same Jira project) in the last 24 hours is refused as duplicate_content, on a dry run and a real call alike, with details.url and details.written_at of the earlier one. Nothing is sent. A different text, a different issue or another developer's identical text is not affected, and a retry under the key that posted it still answers duplicate. Issue keys compare case-insensitively; a numeric issue id and the key naming the same issue do not match (known residual). A create's text includes its parent, issue type and labels. Not closed: a create under a new key that differs in any word, and two processes inside one claim window; the text is never locked, because that would refuse legitimate repeats by different developers.

  • Whose Atlassian account. For an organisation that has not been switched to personal accounts (the default), every write uses the organisation's connection, as it always has. For one that has, every write, previews included, uses the asking developer's own connection and never the organisation's: a developer with no usable connection gets a personal_connection_* refusal carrying details.connect_url, with nothing sent, and a preview made under one setting cannot be applied under the other (plan_mismatch). The audit row records the account the write went out as and, for a developer's own connection, which connection.

  • A developer's key and comments are their own. A key another developer used, or has an unresolved create or append under, is refused as idempotency_key_reused rather than answered duplicate with their result. edit_comment works only on a comment this developer's agent wrote; another developer's agent comment, and a comment recorded before the writer was kept, is refused as comment_not_yours. delete_comment follows the same rule and needs the same Edit grant; a comment written in Jira is refused comment_not_ours, and one already gone answers already_deleted, a success. Deleting cannot be undone, and delete_comment is not part of apply_jira_changes.

  • A receipt from a read-back. After a change is accepted, ai-boost reads it back from Jira once and adds a receipt: a link, who posted it, whether Jira showed it, and how to undo it. In detail: link to the comment or issue, posted_as (the display name Jira shows, or the connection's account name where Jira states no author for that kind of write), verified and undo. verified: false means the read could not be made; the write is exactly what outcome says and nothing is repeated. The read counts against no write limit.

  • idempotency_key is your name for this write. Send the same key on a retry: a write that already landed answers duplicate with the first result instead of writing again. A key is scoped to the project's source and the tool, and reusing one for a different object is refused. A completed write's key is kept without a time limit: the record that answers a reused key is not pruned with the rest of the audit.

  • Crash recovery. A comment, a new issue, a transition or a description append whose outcome is unknown — no answer, a server error — is looked up in Jira by a marker before anything is sent again: a retry does not write until it has asked. The look-up covers the newest 50 comments on the issue (when the issue has more and none of the 50 carries the marker, the answer is outcome_unknown and nothing is sent), the issues this connection created since the attempt, or the ai-boost.transition issue property a transition writes; where it cannot tell, the answer is outcome_unknown (or, for a transition, transition_moved_on) and nothing is sent. Jira ignores properties on the transition request itself (measured on 29 Sep 2026), so the marker is written in a request of its own — PUT …/properties/ai-boost.transition = {marker, from, to} (the status ids before and after) — before the move, and the move is sent only once that succeeded. On a retry:

    • marker ours and the issue in to — the issue is where this key asked; nothing is sent (duplicate). That does not prove our request moved it: a person could have moved it between the marker and the move;
    • marker ours and the issue in from — the marker landed and the move did not: sent once;
    • marker ours and the issue in neither — it moved on (automation, a person, another key), and nobody can say whether our move landed: transition_moved_on, nothing sent, details.status is where it is now. The attempt stays open, so retrying with the same key keeps answering this and never sends; read the issue and, if it should still move, send a new idempotency_key. The leftover case: it landed and the issue was then moved back to from, which reads as never landed and is sent again;
    • no marker — a fresh attempt;
    • another key's marker, or a status without an id — outcome_unknown: nothing sent, the attempt stays open. Only a new idempotency_key moves on, after you read the issue.

    A description append writes no marker into the description. Its retry reads the description once and checks whether it already ends with the paragraphs this key would add, compared on each paragraph's type and text: if so, duplicate and nothing is sent; if not, it is sent once; if the description cannot be read, outcome_unknown. Under that open attempt expected_updated is not applied when the section is already there, since our own landing is what changed the issue; when it is not, a change since your read is refused as usual. A retry under the same key with different text is a different section and is sent. The read and the write are two requests, and Jira has no conditional update, so an edit somebody makes in the milliseconds between them is overwritten — the window is narrowed, not closed. Two bounds follow from comparing text. If Jira rewrites the stored description so it no longer ends with exactly what was sent, a crash retry appends the section again. And an identical section already at the end of the description answers duplicate, whichever key sent it.

    That holds wherever a crash falls, for to_status and transition_id alike — including a transition the workflow offers from every status. A transition_id whose target is the status the issue is already in is refused already_in_status, unsent. If the marker cannot be written, nothing is moved: this tool refuses rather than move without recovery. The PUT needs Jira's "Edit issues" permission on the issue, which a transition alone does not. Only a PUT answered 403 or 400 is marker_not_writable, with the HTTP status. Every other failure goes the ordinary way — 401 needs_reconnect, 404 issue_not_found, 429 rate_limited, and a 409 http_409 (a failure; nothing moved, the key is free). A server error or no answer at all leaves the attempt open (the retry asks first). Measured on the production AI project on 29 and 30 Sep 2026: a property PUT on an issue in the Done status "Erledigt" answered 201 and did not change updated, so there a closed issue can still be reopened — but a workflow whose status sets jira.issue.editable=false may refuse, and such an issue cannot be moved by this tool. There is one ai-boost.transition property per issue, shared by concurrent keys: a later transition under another key overwrites it, and the earlier key's retry then sees a marker that is not its own: it answers outcome_unknown, sends nothing and keeps the attempt open, so you read the issue and use a new key. Do not run two transitions on one issue at once. A key reused after a definite refusal of the move is a fresh attempt: it writes its marker again and sends. The marker left by the refused attempt is read only if that new attempt then crashes, and then it is ours with the issue in from, in to or, if the issue moved in between, in neither (transition_moved_on), as above. With expected_updated, a retry under an open attempt checks the marker first: our own marker with the issue in to means the change is ours and recovery proceeds (duplicate); otherwise (no marker, or ours with the issue in from) the earlier attempt did not land, so a change since your read is someone else's and is refused issue_changed_since_read. A summary edit or a description replace is also held to the version its dry run showed (the preview states it in details.updated): if the issue changed since, or the preview is gone, it is refused issue_changed_since_preview. A label edit needs none: adding a label the issue has, or removing one it lacks, changes nothing, so sending it again is harmless.

  • Assigning is assignee on create_issue and edit_issue (below); nothing deletes while delete_comment is not enabled (KNOWLEDGE_DELETE_COMMENT_ENABLED, off by default: the tool is then not listed and a direct call answers delete_comment_not_enabled). Once enabled, the only deletion is a comment this developer's agent wrote, under the Edit grant. A status change — closing an issue included — happens only through transition_issue, under the Transition grant. The CLI's write gate covers delete_comment from CLI 3.33.3.

Files on a Jira change ​

Files can go on a comment, on a new or edited issue, and in a batch of changes. comment_on_issue takes attachments: up to 10 refs of files the developer's CLI staged with ai-boost jira stage <file>.... The CLI removes secrets from text files and HARs first; the server looks again and refuses a text in which it still finds one (secret_in_attachment, no override). The preview lists every file, the developer approves the comment and its files once, the real call uploads each new file and then posts the comment, and the receipt links the comment and every file.

  • Asks by default. A change with files is guarded (approval.reasons has attachments_guard). A project owner may set Attach to once per session: then, after one approved write with files, the next one in the same session rides an allowance if the base capability has one too (where: "allowance", no attachments_guard). undo_of, another session, the developer's own "always ask", a mention and an outside watcher always ask. Under the default (every time) it never rides a session allowance, whatever the comment policy says. The project needs the Attach permission (may_attach, off on every existing grant); without it the preview answers attach_not_allowed.
  • Placing images. ![alt](attachment:<filename>) alone on a line places an image; one the text does not place goes at the end, and every other file is a link. With knowledge.writes.attachments.inline_images off (the default) every file is a link and the preview says so.
  • Limits (knowledge.writes.attachments): 10 files, 10 MiB a file, 25 MiB a write, 30 minutes in staging, 20 files and 50 MiB staged per developer. The site's own limits are read in the preview: attachments_disabled, attachment_too_large (details.file, details.limit), attachment_permission_missing. Also too_many_attachments, attachments_too_large, attachment_not_found, duplicate_attachment_name, bad_attachments.
  • What is checked. Text kinds are checked for valid UTF-8 and scanned for credentials; images, PDFs and zip files are not scanned. Jira serves an attachment as a download, never as a page, so a text or HAR file is not rendered. The link in the comment is the site's own address (/secure/attachment/<id>/<name>), which a signed-in reader's browser follows.
  • Same bytes are not uploaded twice. A file whose size and SHA-256 match an attachment already on the issue is linked and marked already_on_issue. Only attachments of an equal size are ever downloaded, at most three per file.
  • A failure stops before the comment. attachment_upload_failed (details.file, details.uploaded) or comment_failed_after_upload; a retry with the same idempotency_key uploads only what is missing.
  • Undo. delete_comment with undo_of (the idempotency_key of the write) removes that write's comment and exactly the files it uploaded (jira_attachment_uploads), never a file that was already there, under the Edit and Attach permissions. It is off until KNOWLEDGE_DELETE_COMMENT_ENABLED is set; the receipt says what to delete by hand until then. nothing_to_undo, attachment_not_yours.
  • Files on issues. create_issue and edit_issue take the same attachments. edit_issue needs a description with them (attachments_need_description): the description is where the files are placed and shown in the preview. A create checks the site's settings and the CREATE_ATTACHMENTS permission on the project, makes the issue (a placed image is a plain line [name: attached below] for the moment), uploads the files to it, then sets the real description. If an upload fails the answer names the issue (details.issue); if the description fails after the uploads it is description_failed_after_upload. A retry with the same idempotency_key finds the issue (no second one), uploads only what is missing and sets the description again. Undo with delete_comment removes only the files that write uploaded, never the issue or its description (edit_issue changes the text back).
  • In a batch. apply_jira_changes operations may carry attachments, at most 10 files across the whole batch (too_many_attachments, nothing sent). The batch reserves one write-budget unit per item, one per file, and one more for a create with files (its description update). A batch with files always asks.
  • Staging API (personal key only; a shared key gets 403; another developer's, another project's or an expired ref gets 404 attachment_not_found): POST /api/v1/jira-staging (multipart file, filename, redactions, original_bytes; 201 with ref, filename, mime, kind, size, sha256, width, height, gzipped, redactions, expires_at, warnings; refusals 413 file_too_large | staging_quota_exceeded, 415 type_not_allowed, 422 type_mismatch | secret_in_attachment | filename_invalid | har_not_redacted) and GET /api/v1/jira-staging/{ref} (the same, plus content for text, unzipped and cut at 200 KB, with content_truncated). Staged files are never indexed.

Parameters ​

ToolRequiredOptional
comment_on_issueproject_key, issue_key, body, idempotency_keyattachments, unresolved_mentions, site, dry_run, plan_id, session_id
edit_commentproject_key, issue_key, comment_id, body, idempotency_keyunresolved_mentions, site, dry_run, plan_id, session_id
delete_commentproject_key, issue_key, idempotency_key, and comment_id or undo_ofsite, dry_run, plan_id, session_id
edit_issueproject_key, issue_key, idempotency_key, and at least one of summary, description, labels_add, labels_remove, components_add, components_remove, assigneemode (with description only), expected_updated, unresolved_mentions, site, dry_run, plan_id, session_id
create_issueproject_key, issue_type, summary (one line, at most 255 characters), idempotency_keydescription, parent, labels (at most 10, no spaces), components (at most 10 names), assignee, unresolved_mentions, site, dry_run, plan_id, session_id
transition_issueproject_key, issue_key, idempotency_key, and exactly one of to_status (a status name, case-insensitive) or transition_idexpected_updated, site, dry_run, plan_id, session_id
manage_fix_versionproject_key, action (create, release, unrelease), name, idempotency_keydescription, start_date, release_date, site, dry_run, plan_id, session_id — see Fix versions

Two sites, one key. A project can read the same Jira project key on two Atlassian sites. A write then needs site — the site's address or its cloud id, matched without regard to case, scheme or a trailing slash. Without it the write is refused ambiguous_source before anything is sent, with details.sites: [{cloud_id, label, url}]. With one site for the key, site is not needed. A site that matches none of the project's connected sources is no_such_source.

edit_comment changes only a comment this integration wrote. edit_issue changes only the summary, the description, the labels, the components and the assignee. A description is added after the existing one by default (mode: "append"): its blocks go after the issue's current content, which is kept exactly as Jira holds it — tables, panels, mentions and formatting included. mode: "replace" replaces the whole description. Appended text is Markdown, converted like any other description. A description that is not an ADF document is refused target_unverifiable, never rewritten. A mode that is neither value, or given without a description, is a 422 with the rule. labels_add and labels_remove are lists of at most 10 labels without spaces, and a label may not be in both; labels are only ever added or removed, never replaced as a set, so a label somebody else added since you read the issue stays.

Components. create_issue takes components, and edit_issue takes components_add and components_remove, each a list of at most 10 component names of at most 255 characters (spaces are allowed). Names are the Jira project's own: each is trimmed and matched without regard to case against the project's components, an exact match winning, and a name that matches none (or two that differ only in case, with no exact one) is refused component_unknown with details.unknown, details.available (the project's names, at most 50, and details.available_more for the rest) and nothing is sent. Jira is sent component ids, never names. Components are only ever added or removed, never replaced, so a component somebody else added since you read the issue stays; a name may not be in both lists. The list is read from Jira on the dry run and again on the real call, so a component deleted in between is refused then. A call that names no components makes no extra Jira call. A project whose create screen requires components accepts a create_issue that names some; without them it is refused required_field_unsupported. The plan binds the list and its order, and the duplicate-content digest of a create includes the components (a create without them keeps the digest it had). The dry-run summary lists them (Components +Backend −UI, components Backend, UI) and the receipt carries receipt.components, the names Jira shows after the write. Only the read scope is needed. A malformed argument — both or neither of to_status and transition_id, a label with a space, more than 10 components, a component in both lists, an expected_updated that is not a timestamp — is a 422 naming the rule, and nothing is checked or sent.

Assignee. create_issue and edit_issue take an optional assignee: one person's display name as Jira shows it, or the reserved word unassigned (so a person whose name is literally "Unassigned" cannot be chosen by name). It is 1 to 255 characters without control characters, and an edit with only an assignee is valid. Assigning rides on the Create and Edit grants; there is no grant of its own, and the dry-run preview is where the developer approves it.

  • Resolved as the developer. The name is looked up through the developer's own Atlassian connection, among the people Jira says can be assigned in that project (or on that issue), so Jira's own visibility rules apply. A write that goes through the organisation's shared connection is refused assignee_needs_personal_connection before any lookup. A connection that was not granted read:jira-user is refused before any request. A reconnect brings that permission only when the server asks for it (KNOWLEDGE_ATLASSIAN_USER_SCOPE): then the refusal is assignee_needs_user_permission with details.connect_url and the developer reconnects once; while the server does not ask, reconnecting returns the same permissions, so the refusal is assignee_by_name_not_available, with no link. unassigned needs neither.
  • One person or a refusal. A display name equal to the text (without regard to case) is chosen; otherwise a single remaining candidate is chosen and the preview shows their full name. No match is assignee_unknown; a person who exists but cannot be assigned there is assignee_not_assignable with details.name; more than one is assignee_ambiguous with details.candidates (at most 10 display names, details.candidates_more for the rest). Only display names are returned, never an account id or an e-mail address. A server configured not to name people refuses an assignee as assignee_not_available, before any Jira call.
  • Sent with the rest. The account id goes in the same request as the other fields, so one edit is one write. The name is checked again on the real call: if it now means another person, or the preview is gone, the answer is assignee_changed_since_preview and nothing is sent. An edit that assigns is also held to the issue's version, so an issue changed since the preview is issue_changed_since_preview. The plan binds the name.
  • Who is told. The dry run carries details.assignee (name, unassign, previous, is_you). Jira normally notifies the new assignee, and by default does not notify you of your own change. The project's notification scheme may also notify the issue's reporter and watchers; ai-boost cannot read that scheme, so the preview does not claim to list them. The receipt carries receipt.assignee, the name Jira shows after the write.
  • Notified row. The summary of a comment_on_issue, edit_comment, edit_issue or transition_issue dry run has one Notified row: the issue's assignee and reporter (named only where the server may name people, otherwise "the assignee" and "the reporter"), the number of watchers (never their names) and "you are watching" when you are one, then the sentence that ai-boost cannot read the notification scheme. When Jira does not return the watcher count the row says watchers unknown and the dry run still issues a plan. The count comes from the watches field of the issue read the preview already makes. A preview has one watcher line, in the same words everywhere. On this row, when the outside-watcher guard fires, the count is followed by (N watchers outside your organisation), (N watchers ai-boost cannot place) or both joined by a comma, and by a note that the list could not be read when it could not. delete_comment (including an undo) and a resumed create_issue have no Notified row, so they show the same phrases on one Watchers row instead; never both rows. No name, address, domain or account id appears in either. The guard's read of the watcher list is the preview's only one: one GET /issue/{key}/watchers per issue in a single preview, and one per item in a batch. apply_jira_changes shows watchers N on each item's line, followed by the same parenthesised note when that item trips the guard, because approval then moves to the conversation for the whole batch. create_issue and manage_fix_version have no such row.

Mentions {#mentions}. In the text of comment_on_issue, edit_comment, and the description of create_issue and edit_issue (and so in apply_jira_changes), @Name — or @[Full Name] when the name has a space — becomes a real Jira mention that notifies the person, by Jira's default. Nothing inside inline code or a code block is a mention (@Override, @pytest), nor is an @ inside an e-mail address, a version (pkg@1.2), a path (src/@x) or a link text. A scoped package name such as @types/node at the start of a word is read as the name "types" and blocks visibly, so put it in code. In Claude Code, @ opens file autocomplete; text that matches no file is sent as typed, so the syntax works as written.

  • Who is found. Each name is looked up as the developer, among the people who can see the issue (or browse the project, for create_issue), by display name, so people whose privacy settings hide their e-mail are found too. It needs the developer's own Atlassian connection with permission to view user profiles: without a personal connection the write is refused mention_needs_personal_connection; without the permission mention_needs_user_permission (with details.connect_url), or mention_by_name_not_available while this server does not ask for it. At most 10 different people per text (too_many_mentions). A server configured not to name people refuses a mention as mention_not_available, before any Jira call; with unresolved_mentions: "as_text" it posts the names as typed. Two people with the same display name cannot be told apart by name; send them as text or do not mention them.
  • The preview. The dry run's summary has a Mentions row, and details.mentions lists each person by display name (state is notify, you — a real mention, but Jira does not notify you of your own change — or as_text). Account ids never leave the server.
  • A name that does not resolve stops the write. Any name that is ambiguous (candidates, the issue's assignee, reporter, watchers and commenters first; watchers and commenters are read only then), belongs to someone who cannot see the issue (cannot_view, named) or is not found refuses the dry run mention_unresolved with details.mentions, and no plan_id is issued. The agent either writes @[Full Name] for the person the developer picked and previews again, or, only when the developer says so, previews again with unresolved_mentions: "as_text": those names are posted as typed and nobody is notified. unresolved_mentions is signed by the plan like every other argument; any other value is a 422.
  • Held to the preview. Each name is resolved again on the real call and must lead to the same account, or nothing is sent (mentions_changed_since_preview). Names approved as text stay text.

Fix versions ​

manage_fix_version creates a version in a project, marks one released, or takes the release back (action: create, release, unrelease). Arguments: project_key, action, name (at most 255 characters), idempotency_key; optional description (create only, at most 1,000 characters), start_date (create only) and release_date (YYYY-MM-DD; a release without one is dated today, UTC), site, dry_run, plan_id, session_id.

  • Its own grant, Versions (may_manage_versions, off on every existing grant). It has no policy: a version change always asks, and never rides a session allowance. Without the grant the preview answers versions_not_permitted.
  • A version is found by name in the granted project only. The tool takes no version id, so another project's version cannot be named.
  • Preview. A create says "New version 2.4.0 in ACME, release date 30 Nov". A release says "Release 2.4.0 in ACME, dated 16 Nov" and how many issues are still unresolved, which Jira's own dialog would ask about.
  • Idempotent. A create that got no answer is found again by name before anything is sent, so a retry makes no second version. Releasing a released version, or unreleasing one that is not, is a duplicate and sends nothing.
  • Undo. release is undone by unrelease and back. A create cannot be deleted by ai-boost: delete the version on Jira's Releases page, which is safe while no issue uses it.
  • The permission it needs. Jira needs Administer Projects on the project, and the Atlassian connection needs the granular scopes write:project-version:jira and read:project-version:jira. This server asks for them only when KNOWLEDGE_ATLASSIAN_VERSION_SCOPE is on, which the owner of ai-boost does after adding both scopes to the OAuth app in the developer console: a scope the app does not list makes Atlassian refuse the whole consent. Until then a version write is refused version_scope_not_available and nothing is sent; after it, a connection made earlier answers version_scope_missing until the organisation reconnects Atlassian once.
  • Not in apply_jira_changes: releases are rare, one call is enough.

Transitions ​

transition_issue asks Jira which transitions it offers from the issue's current status to the connected account, and makes exactly one of them:

  • to_status matches a transition by the status it reaches, without regard to case. None reaching it is transition_not_available; two or more reaching it is transition_ambiguous — pass transition_id instead. The tool never picks between them: which of two routes to Done is meant is the workflow's author's decision, and a silent pick can be the wrong resolution.
  • transition_id matches exactly one transition by id, from an earlier answer's details.available.
  • A transition screen that requires a field without a default is refused as transition_needs_fields, naming the fields; the tool never fills a screen in. A screen with no required field is fine.
  • Already there: an issue already in to_status is refused as already_in_status, and nothing is sent.

Every transition_* refusal carries details: {status, available: [{id, name, to}]} — where the issue is now and what it can do from there — so the next call needs no second read. A transition can trigger the workflow's automation and notify the issue's watchers, and Jira records it in the issue history.

Response ​

json
{ "outcome": "written", "performed": true, "external_id": "44242", "reason": null, "note": null }
outcomeMeaning
writtenDone. With performed: false and reason: "dry_run", every check passed and nothing was sent
duplicateThis key's write already happened; external_id is its result. Success, not an error
refusedA check or Jira declined it; reason says which. Nothing was written
failedJira could not be reached or answered with an error; reason says which

edit_issue also returns fields, the names it was asked to change, and mode, the description mode (null without a description); the outbound audit row records the same two things, never the text. create_issue also returns issue_key and url. transition_issue also returns status, the status a written transition reached (null otherwise, a duplicate included). details, when present, carries what a refusal needs to be acted on — the transitions offered, the candidate sites, or the issue's live updated. note, when present, tells an agent what to do next.

A write limit per project. Each project may send a limited number of writes to Jira in any 10 minutes, counted across all its Jira sources and every write tool. The project page shows the limit in force: the built-in default is 60 writes in 10 minutes (KNOWLEDGE_WRITE_BUDGET and KNOWLEDGE_WRITE_WINDOW_MINUTES change them). A write counts once it was sent to Jira, whatever Jira answered it with: written; failed (unreachable, rate_limited, http_5xx, or any other http_<status>); or refused by Jira itself — provider_rejected (400), needs_reconnect (401), provider_denied (403), issue_not_found, comment_not_found or object_outside_container (404). Each counts only when it is Jira's answer to the write: the same reasons from the check before it count nothing. A refusal by one of this server's own checks, a dry run and a duplicate answer never count; nor do the reads a write makes first. Because the limit is shared by the whole project, one agent looping on a write Jira refuses — an account that can read the project but not comment in it, say — pauses writing for every agent in the project for a window. Over the limit, every write is refused with write_budget_exhausted, a dry run included, and nothing is sent. The answer then also carries retry_after, the UTC time from which one more write is admitted — when enough counted writes have left the window. A retry of a write that already happened still answers duplicate. Just before a write calls Jira it holds one unit of room in the project's count, under a per-project lock, and gives it back once its row is recorded, so two calls at the same moment cannot both take the last unit. If the lock cannot be taken, the write is refused with write_budget_busy and a retry_after a few seconds ahead; nothing is sent.

Refusal and failure reasons ​

reasonWhat it meansRetry?
container_not_allowlistedA project owner has not allowed writing to that Jira project, on the Atlassian site the write would go through (a permission is per site)No — a setting
editing_not_permittedCommenting is allowed there, editing is a separate grant that is offNo — a setting
creating_not_permittedCommenting is allowed there, creating is a separate grant that is offNo — a setting
transitioning_not_permittedCommenting is allowed there, transitions are a separate grant that is off — editing and creating do not include itNo — a setting
secret_in_textThe text holds what looks like a credential; details.findings lists field, line, column, kind and a masked form, never the value; nothing was sent and no plan_id is issuedNot with this text — remove it and link to an internal note; there is no override
comment_not_oursThat comment was not written by this integrationNo — add a new comment
comment_not_yoursThe comment was written through ai-boost, but not by this developer's agent (or before the writer was recorded); nothing was sentNo — add a new comment
duplicate_contentThis developer already posted exactly this text on this issue (or, for a create, in this project) in the last 24 hours; details.url and details.written_at name it; nothing was sentNot with this text — change it if it is wanted again
allowance_endedThe session allowance the preview relied on has ended or no longer applies (policy, the developer's own setting or the grant changed); nothing was sentDry run again and ask the developer
plan_supersededA newer preview of this change exists, or this plan's record is gone; nothing was sentWith the latest preview's plan_id, after the developer approved it; otherwise dry run again
component_unknownThe Jira project has no component with that name; details.unknown names it and details.available lists the project's components; nothing was sentNo — choose from details.available
components_not_on_create_screenComponents were named, but the create screen of that issue type in this Jira project has no components field; nothing was sent, on the dry run or the real callNo — create the issue without components, or ask a Jira administrator to add the field to the create screen
assignee_unknownNobody the developer can see in Jira matches the name; details.query echoes it; nothing was sentNo — check the spelling
assignee_ambiguousMore than one person matches; details.candidates lists display names; nothing was sentNo — retry with the full display name of one of them
assignee_not_assignableThe person exists (details.name) but cannot be assigned issues in this Jira project; nothing was sentNo — choose someone else
assignee_needs_user_permissionThe developer's Atlassian connection does not include permission to view user profiles, and this server asks for it; details.connect_url reconnects it; nothing was sentNo — reconnect once, then retry
assignee_by_name_not_availableAssigning by name needs permission to view user profiles, which this server does not ask for yet, so a reconnect would not help; no link; nothing was sent. unassigned still worksNo
assignee_needs_personal_connectionThe write goes through the organisation's shared connection, which is never used to look up a person; nothing was sentNo
assignee_changed_since_previewThe name now leads to another person, or the preview is gone; nothing was sentDry run again and have it approved
mention_not_availableThe server is configured not to name people, so a mention cannot be previewed; nothing was sent. unresolved_mentions: "as_text" still worksNo
assignee_not_availableThe server is configured not to name people, so an assignee cannot be previewed; nothing was sentNo
field_not_editableOnly summary, description, labels (labels_add, labels_remove), components (components_add, components_remove) and the assignee can be changed; a full labels or components set is refusedNo — a status is transition_issue
transition_not_availableJira offers no such transition from the issue's current status; details.available lists what it offersWith one of those
transition_ambiguousMore than one transition reaches that statusWith transition_id from details.available
transition_needs_fieldsThe transition's screen requires fields (details.fields); this tool never fills one inNo — another transition, or a person
transition_moved_onAn earlier attempt under this key may have moved the issue and it was moved on since: it is in neither its old nor its new status (details.status); nothing was sent, and the attempt stays openNo, not with this key — read the issue, then a new key if it should still move
already_in_statusThe issue is already in that status (details.status), or the transition's target is its current status; nothing was sentNo — nothing to do
marker_not_writableJira refused (403 or 400) the recovery marker (ai-boost.transition) that is written before a move — the account lacks Edit issues on the issue, or its status is not editable; nothing was movedNo — a Jira admin grants Edit issues, or the status must be editable
issue_changed_since_readThe issue changed after expected_updated (details.updated); nothing was sentAfter reading it again, with a new value
issue_changed_since_previewA summary edit or a description replace goes only to the version its preview showed: the issue changed since (details.updated), or the preview is no longer held, so nothing was sent. A plan from before this check lands here onceAfter a new dry run, shown to the developer and approved again
edit_outcome_unknownAn earlier edit_comment under this key may have reached Jira and its result was never recorded; nothing was sent, so nothing someone changed since is overwrittenNo, not with this key — read the comment in Jira, then a new key and a new dry run if it still needs changing
object_outside_containerThe issue (or a parent) is not in the named Jira projectNo — use its own project
issue_restrictedThe issue carries a Jira security level; this project cannot read itNo
comment_restrictedThe comment is restricted to a group or roleNo
service_desk_not_supportedA Jira Service Management project; a comment there could reach the customerNo
issue_type_unknownThe project has no issue type by that nameNo — use one of its types
required_field_unsupportedThat issue type requires a field this tool cannot fillNo — another type, or a person
parent_requiredA sub-task type needs parentWith a parent
project_not_boundThe Jira project is no longer the one this source was set up forNo — an owner checks the source
issue_not_found, comment_not_foundJira no longer has it, or this connection cannot see itNo
needs_reconnectThe Atlassian connection was not acceptedAfter an admin reconnects
provider_deniedThe account the change was made with lacks the Jira permissionNo — a Jira admin grants it
provider_rejectedJira rejected what was sentNot the same call
idempotency_key_reusedThat key was used for a different write, or by another developer; nothing was sentWith a new key
write_budget_exhaustedThis project reached its write limit for the window; nothing was sentAfter retry_after, same key. If it is the same write over and over, stop
credential_unavailableThe connection's token could not be refreshed just now (an outage or a rate limit at Atlassian); nothing was sentAfter retry_after, same key
comment_changed_since_previewdelete_comment: the comment changed since the preview, or the preview is no longer available; nothing was deletedDry run again, show it, get approval again
delete_comment_not_enabledDeleting a comment is not enabled on this server; nothing was sentNo
bad_attachments, too_many_attachments, attachments_too_large, attachment_too_large, duplicate_attachment_nameThe attachments list or a file in it is over a limit or malformed (details.file, details.limit); nothing was sentNot the same call — fewer or smaller files
attachments_disabled, attachment_permission_missing, attachments_unverifiableThe Jira site has attachments off, the account may not add or delete them, or Jira could not be asked; nothing was sentattachments_unverifiable later, same key; the others no
attachment_upload_failed, comment_failed_after_upload, undo_failedA step of an upload or undo failed (details.uploaded / details.removed list what landed); no comment follows a failed uploadYes, same key: only what is missing is sent
attachments_not_in_batchOlder servers only: apply_jira_changes did not take filesPost the comment on its own
attachments_need_descriptionedit_issue was sent files without a description; nothing was sentAdd a description that places the files
description_failed_after_uploadThe issue and files exist but Jira refused the description (details.issue, details.cause)Retry with the same idempotency_key
nothing_to_undo, attachment_not_yoursundo_of names no write of this developer's that put a comment or files there; nothing was sentNo
attach_not_allowedA comment with files, or an undo of one, in a project whose grant does not have Attach; nothing was sentNo — a project owner turns Attach on
versions_not_permittedmanage_fix_version in a project whose grant does not have Versions; nothing was sentNo — a project owner turns Versions on
version_scope_not_availableThe server does not ask Atlassian for the version permission yet (KNOWLEDGE_ATLASSIAN_VERSION_SCOPE is off); nothing was sentNo — the owner of ai-boost enables Versions, then the organisation reconnects Atlassian
version_scope_missingThe connection lacks the version permission, or Jira said the scope does not match (details.connect_url); nothing was sentAfter reconnecting Atlassian
version_permission_missingThe Atlassian account does not hold Administer Projects on the project; nothing was sentNo — a Jira admin grants it
version_existsA create of a name the project already has (details.id); nothing was sentUse another name
version_not_foundA release or unrelease of a name the project does not have; nothing was sentCheck the name
bad_datestart_date or release_date is not a real YYYY-MM-DD day; nothing was sentFix the date
versions_unverifiableJira did not say what the account may do in the project; nothing was sentYes, with the same idempotency_key
attachment_not_foundA ref is not staged for this developer in this project, or its thirty minutes are overStage the file again
personal_connection_requiredThis organisation is switched to each developer's own Atlassian account and this developer has not connected theirs; nothing was sent (details.connect_url)After they connect, same key
personal_key_requiredReserved for a write attempted with no developer behind it under an organisation switched to developers' own accounts; nothing is sent. Every entry point refuses a shared key earlier, with caller_not_authenticated, so no client receives this reason todayAfter ai-boost init gives a personal key
personal_connection_expiredThe developer's own connection expired or was withdrawn (including a 401 from Jira on the write); nothing was written, and nothing is posted under another account (details.connect_url)After they reconnect
personal_connection_scope_missingThe developer's own connection does not allow Jira changes (or its permissions are unknown); nothing was sent (details.connect_url)After they reconnect and accept the Jira permission
personal_connection_missing_siteThe developer's own account cannot reach this Jira site; nothing was sent (details.connect_url)With an account that can
comment_not_written_as_youAn edit or delete would use a different Atlassian account than the one the comment was posted with (for example the organisation's shared account before the switch); nothing was sentNo: change it in Jira
already_deleteddelete_comment found the comment already gone; nothing was sent (a success)No
write_budget_busyThe project's write count could not be taken just now because other writes were being counted; nothing was sentAfter retry_after, same key
source_not_admittedThe connected source for that Jira project is not admitted (pending, degraded, or shared retrieval off); nothing was sentNo — a project owner admits the source
plan_requiredA real call of any write tool without a plan_id; nothing was sentDry run, show the developer the preview, then send the same arguments with its plan_id
plan_mismatchThe plan_id does not match the arguments sent (for apply_jira_changes: the operations, idempotency_key and stop_on_error), or was not issued to this person in this project for this tool, or the site or account it would be posted through is not the one the preview named (for apply_jira_changes: for any item, in order); nothing was sentWith the previewed arguments unchanged, or dry run again
connection_changedThe Atlassian account behind the credential changed while the request was being handled; nothing was sentDry run again and have the new preview approved
plan_expiredThe plan is older than 30 minutes; nothing was sentAfter a new dry run
batch_exceeds_write_budgetThe list needs more new writes than the project's whole limit, so it can never be sent at once; there is no retry_afterNot the same list — split it
write_in_progressAnother attempt with this key is still in flightYes, shortly, same key. Past ten minutes the earlier attempt died and the key is free; a comment, a new issue, a transition or a description append is then checked against Jira first
target_unverifiableJira did not say where the issue lives or whether it is restricted, or answered a description that is not an ADF document (details.field is description)Later
outcome_unknownAn earlier attempt may have landed and Jira could not be asked just now, or could not show enough to tell (an issue with more than 50 newer comments, or another key's transition marker)Later, same key — the retry checks first. If it keeps answering this, check the issue, then use a new key
outcome_unknown_unrecoverableAn earlier attempt got no answer, or a server error, before this server could check afterwardsCheck the issue, then a new key
rate_limitedJira is rate-limitingLater, same key
unreachableJira did not answer; whether it was written is unknownSame key — the retry asks Jira first
http_502, http_503, http_504, … (http_5xx)Jira or its gateway answered with a server error, possibly after processingSame key — the retry asks Jira first
http_<status> (other)Jira answered with that statusDepends on the status
no_credentialThe connection can present no credentialAfter an admin reconnects
malformed_targetThe project or issue key is empty or too longNot the same call
empty_bodyThe comment body or issue summary is emptyNot the same call
unknown_provider, provider_not_writableThe source is not a Jira source; only Jira is written toNo
ambiguous_sourceMore than one connected site of this project reads that Jira project key and no site was given; details.sites lists them; nothing was sentWith site set to one of them
body_too_longA comment body or a description is over 32,767 characters; details has length and limit; nothing was sent or cutShorten it, or split a comment into several
dry_runNot a refusal: every check passed and nothing was sent; the answer carries posted_as, summary and a plan_idAfter the developer approves, send the same arguments with the plan_id
dry_run_promptNot a refusal and not sent as reason: the note of a dry run the CLI write gate attested for (see Where approval happens)The developer answers in Claude Code's own prompt when the real call is sent with the plan_id; do not ask again in the conversation
dry_run_guardedNot a refusal and not sent as reason: the note of a dry run on an issue with a guarded priorityWait for the developer's yes in the conversation, then send the real call with the plan_id

Transport-level answers come before any of these: a shared (not personal) key is refused as caller_not_authenticated, a project that does not read that Jira project, or a site it does not read for that key, as no_such_source, and a server with external sources switched off as shared_retrieval_disabled.

Many changes, one plan: apply_jira_changes ​

One approval can cover up to 20 writes. apply_jira_changes takes operations — 1 to 20 objects, each op (comment, edit, create or transition) plus exactly the arguments of that single tool, without its own idempotency_key, dry_run or session_id — and a batch idempotency_key (up to 180 characters). It is listed in tools/list only for a project that has at least one write grant.

  1. Preview. Call with dry_run: true. Every operation is checked by its own tool's code, nothing is sent, and the answer lists each item's result with a plan_id (valid for 30 minutes) and plan_expires_at. Items a gate refused are in the preview too: a person approves the plan as shown.
  2. Apply. Call again with the same operations, idempotency_key and stop_on_error, and the plan_id. Any difference — a changed character in a body, a reordered, added or removed operation, another key — is refused as plan_mismatch before anything is sent; a missing plan_id is plan_required, an old one plan_expired. The plan is signed, not stored, and bound to the project, the person who previewed it and, per operation in order, the site and account each one goes through (an item whose connection changes after the batch started is refused as plan_mismatch on its own); only session_id and keys starting with _ are ignored. A newer preview of any one of its targets, single or batch, supersedes the batch: plan_superseded, nothing sent.

Each item's idempotency key is the batch key plus its position (<key>#01), so repeating the call writes nothing twice. Items run in order and each reports its own outcome (written, duplicate, refused, failed, or invalid for an operation whose arguments were malformed); partial success is a normal answer. With stop_on_error, the items after the first one that is neither written nor a duplicate are skipped; a dry run never stops early. The answer is {outcome: "dry_run" | "applied", posted_as? (dry run), summary? (dry run), plan_id?, plan_expires_at?, approval? and note? (with the plan_id, see [where approval happens](#jira-write-tools)), stop_on_error, counts: {written, duplicate, refused, error, skipped}, items: [{position, op, idempotency_key, …}]}, where each item carries its single tool's own answer. On a dry run written counts the items that would be written. The dry run's summary is one block for the whole list, not one per item: a header (the account or accounts, then how many changes would be made and how many would not), then one line per operation with the issue, its title, priority and what will happen, or refused (<reason>) for one a gate stopped. A list of 20 gives a three-line header and 20 lines. A preview that ran out of time issues no plan_id and has no summary.

The project's write budget is checked for the whole list first, counting only the items that have no accepted write yet: if they do not fit, nothing is sent and the answer is write_budget_exhausted with retry_after, or batch_exceeds_write_budget when the list is longer than the limit itself. The room for the whole list is held while it runs and each item uses one unit of it, so two batches at the same moment cannot overshoot the limit: the later one is refused whole with write_budget_exhausted (or write_budget_busy when the count could not be taken just now) and retry_after. A transition cannot carry a comment; add a comment operation after it.


Your own Atlassian connection: GET /api/v1/developers/me/jira-writes ​

Used by ai-boost doctor and ai-boost init (CLI 3.33.0 and later). It needs a signed-in account (the CLI's session), answers for the caller's own organisations only, and changes nothing. Connecting your own Atlassian account changes nothing by itself: an organisation keeps using its own connection until it is switched to each developer's own account.

Optional query parameter project: the slug of the project the caller's folder belongs to. It is checked against the caller's membership and only marks which row is current; a missing, unknown, malformed or foreign value is ignored.

json
{
  "clients": [
    {
      "client": "Acme",
      "state": "connected",
      "account_name": "Ada Dev",
      "sites": [{ "label": "acme", "url": "https://acme.atlassian.net", "reachable": true, "reason": null }],
      "connect_url": "https://aiboost.metadevs.de/portal/integrations?client=1",
      "personal_writes_required": false,
      "current": true
    }
  ]
}
  • state is one of not_connected, connected, needs_reconnect, scope_missing. A client that reads anything else should treat it as unknown.
  • personal_writes_required is true only for an organisation that has switched to each developer's own account; anything other than a literal true means false.
  • No token, e-mail address, Atlassian account id or cloud id is ever returned.

When something goes wrong ​

Every failure is reported through status, and — apart from the two malformed-request cases at the bottom — with HTTP 200. (History: the retired Laravel adapter, versions 4.4.x, turned any response of 400 or above into its own offline message, so the body has to carry the meaning.)

Check status before results.

statusHTTPWhat happened
ok200Results above the threshold
low_confidence200Nothing above the threshold. Not an error — see index_freshness, which usually explains it
partial200Some repositories in scope could not be searched; failed_repositories names them
unavailable200The server or its vector store could not be reached
invalid_input200The embedding model refused the query, nearly always because it is too long — the limit is around 8000 tokens. ai-boost itself is fine; retry with a shorter query
error422A required argument is missing or malformed: a blank query or task, get_issues with both keys and filter, or a missing repository on record_agent_feedback; message names the rule

Offline ​

json
{
  "status": "unavailable",
  "results": [],
  "message": "ai-boost API unreachable — Claude Code will continue without project context."
}

Your session is never blocked. Claude Code continues without context — it just won't have indexed codebase search or session history available until the server comes back.

(History.) An adapter installed before the retirement delivers the same envelope with the reason appended — … without project context. (HTTP 503) — and an http_status key beside it, because the adapter builds its own when it cannot reach the server at all. Match on status, never on the message text.

Malformed request ​

Three shapes, all 422, and only the first carries a status.

A required argument missing or malformed:

json
{"status": "error", "message": "search_code_patterns requires \"query\"."}

A tool name the server does not know:

json
{"error": "Unknown tool."}

A validation failure on record_agent_feedback, which uses the same error key with Laravel's bag in place of the string:

json
{"error": {"score": ["The score field is required when none of rule compliance / task completion / implementation faithfulness / context relevance are present."]}}

An error key and no status is the tell for a request that never reached a tool. Code that switches on status alone falls through on the last two, so check for error first.


POST /api/v1/ingest — replacing a changed file's old chunks ​

An index push that is not a full run (--incremental, --since, --commit, --files, the git hooks, CI) can ask the server to remove the old chunks of the files it rewrote. Both fields are optional; a client that sends neither behaves exactly as before.

FieldWhereRule
index_pushevery batch of one push32 hex characters, the same on every batch; refused next to index_run
replaced_pathsthe push's last batch onlyup to 5,000 paths of up to 500 characters; needs index_push; refused next to index_run

After the last batch is stored, the server deletes the older points of each listed path that this push wrote at least one point for. It never deletes a point of this push, a commit-history point, a knowledge point, or anything written within 5 seconds of the moment the push's first batch arrived, or later. That moment is recorded by the server (cache) when the first batch arrives, not read back from the stored points. A path that holds an accepted chunk of this push but is not in replaced_paths, or whose chunks were all refused, keeps its old points.

The answer gains replaced_paths: {"requested": n, "replaced": m}. If the replacement itself fails, or the recorded start of the push was lost, the push still answers 200 with replaced_paths: null and nothing is deleted. Every point now also carries written_at (server unix seconds).


POST /api/v1/feedback/{session}/evaluate — background judging ​

The Stop hook's background ai-boost evaluate calls this to have a recorded round judged. The diff goes in diff. The server never cuts it. The bound is 20,000,000 bytes, and a larger diff is refused whole.

DiffAnswer
None, or up to 64,000 bytes200 with the verdict, as before: status: "ok", judge_score, judge_rationale, judge_evidence
Over 64,000 bytes202 with status: "judging". The diff is read whole, in parts, in the background (How it works)
Over 20,000,000 bytes422, nothing stored

A one-call judgement that fails with a diff also answers 202 judging: the server retries it in the background with the same diff, and read.kind is retry.

The 202 judging answer ​

json
{
  "status": "judging",
  "phase": "reading",
  "session_id": "…",
  "feedback_id": 1234,
  "queued": 0,
  "read": {"kind": "parts", "parts_read": 0, "parts_total": 8, "diff_bytes": 269279},
  "message": "This change is 269.3 KB, more than one judge call reads, so the judge reads it in 8 parts in the background. GET /api/v1/feedback/…/verdicts?feedback_id=1234 reports progress and then the verdict."
}

It carries a Retry-After: 15 header. Follow the read on /verdicts with the feedback_id. Sending the same round again does not start a second read: it is answered with the running read's progress. If a different diff arrives for a row whose diff is already being read, the first one is kept.

FieldMeaning
phasereading, condensing, scoring or paused
read.kindparts for a diff over 64,000 bytes read in parts; retry for a one-call judgement being retried. Word a retry as a retry, never as a large change
read.parts_read, read.parts_totalProgress. A retry has one part
read.diff_bytesThe diff's size after credentials were redacted
read.reason, read.reason_text, read.next_attempt_atOnly while phase is paused: why, in a code and in words, and when the next try is due

read.reason is one of rate_limited, provider_error, timeout, notes_did_not_condense, expired, stored_unreadable or server_error. Use the code for logic and show reason_text, which the server writes, so the wording can change without a client release.

A 202 with status: "judging" and no read is different: another request is judging the same row in one call right now. It carries Retry-After: 10.

Over the bound: 422 ​

json
{
  "message": "The diff is 25000000 bytes, over the 20,000,000-byte limit, so it was not read.",
  "errors": {"diff": ["…"]},
  "diff_bytes": 25000000,
  "limit_bytes": 20000000
}

Read the numbers from diff_bytes and limit_bytes, never from message. To have the round scored without the diff, send it again with no diff and diff_refused_bytes set to the refused size. Its verdict then records diff_status: "refused_over_bound". A client whose upload of the diff timed out sends diff_unsent_bytes the same way; the verdict records diff_status: "unread" with diff_reason: "upload_timeout".

judge_evidence: what the judge read ​

Every verdict, from evaluate and from /verdicts, carries judge_evidence. The diff_* fields:

FieldMeaning
diff_statusread, none, withheld, unread, redaction_failed or refused_over_bound (what each means). Absent on rows judged before it existed: read diff_bytes and diff_truncated there
diff_bytesThe bytes the judge was given, after credentials were redacted. 0 when it read no diff
diff_sent_bytesThe bytes the client sent, before redaction
diff_truncatedtrue only when an older CLI cut the diff before sending it. CLI 3.93.0 and later never do
diff_partsHow many calls read the diff: 0 with none, 1 for one call, more for a read in parts
diff_reason, diff_reason_textWhy a sent diff was not read, as a code and in words. diff_reason is always present and null when there is nothing to explain; diff_reason_text is present only beside a code: with unread, redaction_failed and withheld (read_only_task)
diff_limit_bytesOnly with refused_over_bound: the bound it was refused at
notes_levels, read_idOnly after a read in parts: how many times its notes were condensed, and the read's id

GET /api/v1/feedback/{session}/verdicts ​

What became of a session's recorded rows. Bounded by the key's scope like evaluate, oldest first, at most 50 rows.

ParameterMeaning
feedback_idOne row
sinceRows from this id on
idempotency_keyThe row a round was judged, or tried, under

Each row in data has feedback_id, created_at, status, judge_score, judge_rationale, judged_at, attempts, last_error and judge_evidence (null until judged). While its diff is being read, it also has phase and read, in the same shape as the 202 above.

statusMeaningKeep asking?
judgedThe verdict, with judge_evidenceNo
judgingBeing judged; with read, its diff is being read in the backgroundYes
pendingNot judged yet, or a failed try that will be retriedYes
failedThe queued judgement gave up; last_error says whyNo
not_judgeableThe row carries nothing a judge can weigh; last_error says soNo

gone. When feedback_id names a row that does not exist in the key's scope (it was deleted, or its repository or project was), the answer is data: [] with gone: [<that id>]. Stop asking for it.

json
{"data": [], "session_id": "…", "gone": [1234]}

GET /api/v1/config — evaluate.diff_limit_bytes ​

The config answer carries the evaluate bound (other keys left out here), so a client does not upload a diff the server would only refuse. /api/v1/config answers only a key scoped to one repository; any other key gets a 422:

json
{"evaluate": {"diff_limit_bytes": 20000000}}

CLI 3.93.0 and later read it before uploading. Over it, they send the round with diff_refused_bytes instead of the diff. A client that cannot read the field, including one whose key covers several repositories, sends the diff and learns the limit from the evaluate 422.