get_adr
Get ADR · read tool
One ADR by id (project:NNNN): its title, status as written and effective status, date, linked Elements, Targets and Saved Views, supersedes and the derived supersededBy, decision-makers, consulted, informed, tags, the full markdown body and its file.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | An ADR id, project:NNNN. |
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 |
|---|---|---|---|
id |
string | yes | |
project |
string | yes | |
title |
string | yes | |
status |
"proposed" or "accepted" or "rejected" or "deprecated" or "superseded" |
yes | |
effectiveStatus |
"proposed" or "accepted" or "rejected" or "deprecated" or "superseded" |
yes | |
date |
string | yes | |
elements |
list of string | yes | |
views |
list of string | yes | |
supersedes |
list of string | yes | |
supersededBy |
list of string | yes | |
decisionMakers |
list of string | yes | |
consulted |
list of string | yes | |
informed |
list of string | yes | |
tags |
list of string | yes | |
body |
string | yes | |
source |
object | yes | |
source.file |
string | yes | |
source.line |
integer | yes | At least -9007199254740991. At most 9007199254740991. |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "id": "sink:0001"}Result:
{ "id": "sink:0001", "project": "sink", "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": [], "decisionMakers": [ "core", "data" ], "consulted": [], "informed": [], "tags": [], "body": "# Send receipts from order events\n\n## Context and Problem Statement\n\nThe API sent receipt e-mails itself, so a slow mail server slowed checkout down.\n\n## Decision Outcome\n\nThe API publishes `orders.placed` to Events, and Mailer subscribes to it and sends the receipt.\n\n## Consequences\n\nCheckout no lo…", "source": { "file": "examples/kitchen-sink/archidocs/sink/adr/0001-send-receipts-from-order-events.md", "line": 1 }}body is cut short here, after 300 characters.
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.