What the agent does
This is for a company that manages a dozen hotels for their owners and keeps its standard operating procedures in Confluence: one space for front office, one for housekeeping, one for food and beverage, with a page per procedure, from late check-out approvals to the linen par count. New staff learn from those pages, and an auditor from an owner group sometimes asks to see them. Pages drift: the property management system changes, a form is replaced, a manager who wrote half the housekeeping space leaves. The director of operations wants a monthly list of procedures that nobody has touched in a year, sorted by who should review each one.
The director connects Atlassian once with POST /me/connections {"type": "mcp", "name": "atlassian", "url": "https://mcp.atlassian.com/v2/mcp", "auth": {"mode": "oauth"}} and opens the authorize_url. Atlassian's supported-tools page puts the Confluence tools in permission groups: read_confluence for reading pages, versions and comments, and search_confluence for CQL search. This job needs only those two. The agent sees what the director can see in Confluence.
On a run the agent calls searchConfluence with CQL for pages in the procedure spaces the request names whose last modification is more than 52 weeks ago, and pages labelled sop anywhere. For each page it calls getConfluenceContent for the title, the space, the last editor and the date, and the body, which it scans for the names of systems and forms the request says were retired. It calls listConfluenceComments to find unresolved comments, because a comment that says "this changed in March" is the strongest sign a page is wrong. Where the last editor has left the company, it uses listConfluenceContentVersions to find the most recent editor who is still on the list of reviewers.
It writes a list grouped by reviewer: each page with its space, how many months since it was edited, any retired system it mentions, and the newest open comment. Pages that mention a retired system or have an open comment come first, since those are most likely wrong rather than just old. It writes nothing in Confluence: the request forbids every tool in the write_confluence group, including comments, labels and archiving.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Find Confluence procedures due for review. Use the atlassian connection. Spaces: FO (Front Office), HK (Housekeeping), FB (Food and Beverage). Call searchConfluence with CQL: type = page AND (space in (FO, HK, FB) OR label = \"sop\") AND lastmodified < now(\"-52w\"). For each page call getConfluenceContent (title, space, last editor, last modified, body) and listConfluenceComments for unresolved comments. Retired names to look for in the body: \"PMS v2\", \"Form HK-7\", \"pager\", \"fax\". Reviewers by space: FO Dana Kim, HK Ruth Alvarez, FB Marco Bianchi. If the last editor is not a reviewer, call listConfluenceContentVersions and use the most recent editor who is. Write review-list.md grouped by reviewer: for each page, title and link, space, months since edited, retired names found, newest unresolved comment (author, date, first 200 characters). Sort pages with a retired name or open comment first. If a search or read fails for lack of permission, stop and report Atlassian's message. Read only: never call createConfluenceContent, updateConfluenceContent, createConfluenceComment, addLabelsToConfluenceContent, archiveConfluenceContent or any other tool in the write_confluence group.",
"connections": [
"atlassian"
]
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
review-list.md lists the Confluence procedures due for review, grouped by reviewer, each linked to its page. The session lists it as an artifact, and the session's result gives the count of pages by reviewer. The director sends each reviewer their section at the monthly operations meeting, and each reviewer updates the page in Confluence or confirms it is still right, which itself updates the page's date and takes it off next month's list.
What the director checks: a page that is old because the procedure never changed, such as a fire assembly point, which needs a quick read and a save rather than a rewrite; a retired name that appears in a page's history section on purpose; and the reviewer list in the request, which has to change when a manager leaves. The list says which pages are old, not which are wrong, until a person reads them.
Run it on every first day of the month
In the console, a Project automation with a schedule trigger at 0 8 1 * * in the company's timezone runs a saved agent whose connections name atlassian, with the spaces, retired names and reviewers in its instructions. The list is ready before the monthly operations meeting, and a schedule fills nothing into the prompt, so the CQL's relative date does the rest.
When the company replaces a system, the director adds its old name to the retired list in the saved agent, and the next run surfaces every procedure that still mentions it.
The use case this job follows, with its automation and trigger: Produce a report or file, no repo.
Why run it on Rush?
The Atlassian sign-in stays in Rush's connection, with only the read and search tools the job needs, and the agent reads Confluence as the director does. Each run has its own computer and a record of every search and page it read, so when an owner's auditor asks how the company keeps procedures current, the director can show the monthly lists and the sessions behind them.
A CQL search is easy; reading every old page for a retired form number and an unresolved comment is the slow part, and it is what a person skips. The session records its total_cost_usd, so the company sees what the monthly review costs.
Frequently asked questions
Can the agent update the pages itself?
Atlassian's server has write tools, but this job forbids them. A procedure is how staff are told to work, so a manager who knows the property edits it; the agent only says which pages need that.
What if our admin has turned off some Atlassian tools?
This job needs only the read_confluence and search_confluence groups. If a tool in either is not available to the connection, the request tells the agent to report Atlassian's error in its answer instead of returning a partial list.
Does it read Jira too?
Not in this job. The same Atlassian connection reaches Jira, so a company that tracks procedure changes as Jira issues could add a search for open ones to the request.
More Atlassian jobs
More jobs like this: Produce a report or file, no repo
- Which Client Posts Failed to Publish Overnight? A Social Media Agency's Morning Check of Every Buffer Channel (Buffer)
- Which Linear Projects Are Slipping Past Their Target Date? A SaaS Company's Monday List for the Product Review (Linear)
- Which Customer Quote Requests Have We Not Answered? A Wholesale Distributor's Morning Check of Each Sales Rep's Outlook (Outlook)