list_adrs
List ADRs · read tool
Architecture decision records, newest first (by date, then number). With element, only the ADRs that link that Element or Deployment Target or any of its descendants (not its ancestors), each with matchedVia: the linked ids that matched. status filters on the effective status, so superseded finds ADRs replaced by an accepted one. Superseded ADRs are included and carry supersededBy.
| Field | Type | Required | Notes |
|---|---|---|---|
element |
string | Only ADRs linking this Element or Deployment Target (project:id), or its descendants. | |
status |
"proposed" or "accepted" or "rejected" or "deprecated" or "superseded" |
Only ADRs with this effective status. | |
tag |
string | ||
limit |
integer | The most items to return; truncated says whether there were more. Default: 50. At least 1. At most 9007199254740991. |
|
at |
string | A point in time to answer at: a tag, a commit sha or its first 4 or more characters, or a date (YYYY-MM-DD) or time (ISO 8601, UTC unless it gives a zone). On a checkout, any git ref works too. Leave out for the current Workspace. |
Output
Section titled “Output”| Field | Type | Required | Notes |
|---|---|---|---|
total |
number | yes | |
truncated |
boolean | yes | |
adrs |
list of object | yes | |
adrs[].id |
string | yes | |
adrs[].title |
string | yes | |
adrs[].status |
"proposed" or "accepted" or "rejected" or "deprecated" or "superseded" |
yes | |
adrs[].effectiveStatus |
"proposed" or "accepted" or "rejected" or "deprecated" or "superseded" |
yes | |
adrs[].date |
string | yes | |
adrs[].elements |
list of string | yes | |
adrs[].views |
list of string | yes | |
adrs[].supersedes |
list of string | yes | |
adrs[].supersededBy |
list of string | yes | |
adrs[].tags |
list of string | yes | |
adrs[].matchedVia |
list of string | With element: the linked ids that matched. |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "element": "sink:mailer"}Result:
{ "total": 1, "truncated": false, "adrs": [ { "id": "sink:0001", "title": "Send receipts from order events", "status": "accepted", "effectiveStatus": "accepted", "date": "2026-02-03", "elements": [ "sink:mailer", "sink:events" ], "views": [ "sink:place-order" ], "supersedes": [], "supersededBy": [], "tags": [], "matchedVia": [ "sink:mailer" ] } ]}Errors
Section titled “Errors”A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:
invalid_inputwhen the arguments don’t fit the input above.not_foundwhen an id or name, or the point in history given asat, matches nothing, or a sha prefix starts more than one Revision, with the candidates.source_unavailablewhen the server can’t read the Workspace.history_unavailablewhen the Workspace has no history to read atat.
Error codes says what to do about each.
See also
Section titled “See also”Documents Archidocs v1.4.0, the latest release.