align_scope
View or change which connected-source items (your own or a team’s in GitHub, Jira, Linear, GitLab, or Confluence) are read into the local graph; use set to include team items or revert to yours.
Instructions
See, or change, what the sources the user has ALREADY connected read into the local graph on this machine: only their own items, or everyone's in one named GitHub repo, Jira project, Linear team, GitLab project or Confluence space that their token can see. action "view" lists each connected source's scope (and any change waiting for the person); use it when asked what is read or why teammates' items are missing. action "set" changes one source; offer it when the user asks to include their team's items, or to go back to only their own. A Jira project can be narrowed to one board, and a Linear team to some of its projects. Widening re-reads that source's history on its next sync (a few minutes; the reply says how far back). It deletes nothing and reads other people's items onto this machine only. A team change you make WAITS: nothing reads it, in the background or via align_sync, until a person runs align sync <source> at a terminal, which shows what it reads and asks (default No). Tell them so, with the reply's disclosure sentence in your own words. That prompt is a speed bump, not proof of consent: an agent with shell access could answer it from a pseudo-terminal, and you must never do that. Narrowing to their own items is immediate. Zoom is only the user's own; Slack and Teams already read all their token can see, and so does Notion unless the person picked pages. It never takes a token or key: for a source that is not connected, or whose saved token was refused, the reply gives the exact align connect <source> command for the user to run themselves. Do not ask the user to paste a token into the chat.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "align_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | GitHub: the repo as owner/repo | |
| board | No | Jira, with exactly one key in "projects": read only the issues on this board (its id or exact name) | |
| scope | No | With "set": "yours" goes back to only the user's own items. "team" is implied by passing the source's value below | |
| teams | No | Linear: team keys, for example ["ENG"] | |
| action | Yes | view: show the scopes. set: change one source's scope | |
| source | No | With "set": which connected source to change | |
| spaces | No | Confluence: space keys, for example ["ENG"] | |
| projects | No | Jira: project keys, for example ["ALI","OPS"] | |
| gitlab_project | No | GitLab: the project id or group/project path | |
| linear_projects | No | Linear, with exactly one key in "teams": read only these projects (names or ids) |