Read tools
archidocs mcp serves 31 tools. These 16 read the Model and never change it. Each also takes at, a git ref or a date, to answer from the Model as it was then.
Every result is structuredContent plus a compact Markdown copy. A lookup that fails returns isError with {code, message, suggestions?}.
get_workspace_info
Section titled “get_workspace_info”Workspace info
Where this server reads the Workspace from, the commit it reflects, whether write tools are allowed, and how big the Model is.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
at |
string | A point in time to answer at: a ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
source |
object | yes | |
source.kind |
"checkout" |
yes | |
source.root |
string | yes | |
source.kind |
"bundle" |
yes | |
source.location |
string | yes | |
commit |
string or null | yes | |
writesAllowed |
boolean | yes | |
counts |
object | yes | |
counts.projects |
number | yes | |
counts.elements |
number | yes | |
counts.teams |
number | yes | |
counts.environments |
number | yes | |
issues |
object | yes | |
issues.errors |
number | yes | |
issues.warnings |
number | yes | |
viewerUrl |
string |
get_element
Section titled “get_element”Get Element
One Element by qualified id (project:id): its fields, Owner Team, parent and children, the Relationships declared on it in and out, the edges derived onto it from its descendants’, a Service’s Deployments with their URLs, the Dynamic Views it takes part in (as a participant, or as the broker of an event Step), the ADRs linking it or its descendants (as list_adrs gives them), and the file and line it is declared at.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | A qualified id, project:id. |
at |
string | A point in time to answer at: a ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
element |
object | yes | |
element.id |
string | yes | |
element.kind |
"person" |
yes | |
element.parent |
string or null | yes | |
element.name |
string | yes | |
element.description |
string or null | yes | |
element.owner |
string | yes | |
element.tags |
list of string | yes | |
element.links |
list of object | yes | |
element.source |
object | yes | |
element.id |
string | yes | |
element.kind |
"system" |
yes | |
element.parent |
string or null | yes | |
element.name |
string | yes | |
element.description |
string or null | yes | |
element.owner |
string | yes | |
element.tags |
list of string | yes | |
element.links |
list of object | yes | |
element.external |
boolean | yes | |
element.source |
object | yes | |
element.id |
string | yes | |
element.kind |
"service" |
yes | |
element.parent |
string or null | yes | |
element.name |
string | yes | |
element.description |
string or null | yes | |
element.owner |
string | yes | |
element.tags |
list of string | yes | |
element.links |
list of object | yes | |
element.type |
"app" or "datastore" or "broker" |
yes | |
element.technology |
string or null | yes | |
element.external |
boolean | yes | |
element.source |
object | yes | |
element.id |
string | yes | |
element.kind |
"component" |
yes | |
element.parent |
string or null | yes | |
element.name |
string | yes | |
element.description |
string or null | yes | |
element.owner |
string | yes | |
element.tags |
list of string | yes | |
element.links |
list of object | yes | |
element.technology |
string or null | yes | |
element.source |
object | yes | |
owner |
object or null | yes | |
owner.id |
string | yes | |
owner.name |
string | yes | |
parent |
object or null | yes | |
parent.id |
string | yes | |
parent.kind |
"person" or "system" or "service" or "component" |
yes | |
parent.name |
string | yes | |
children |
list of object | yes | |
deployments |
list of object | yes | |
relationships |
object | yes | |
relationships.in |
list of object | yes | |
relationships.out |
list of object | yes | |
derived |
object | yes | |
derived.in |
list of object | yes | |
derived.out |
list of object | yes | |
dynamicViews |
list of object | yes | |
adrs |
list of object | yes | |
viewerUrl |
string |
search_elements
Section titled “search_elements”Search Elements
Find Elements whose qualified id or name contains the query, or the Service behind a URL or host (a Deployment’s url or an endpoint; a longer URL below one also matches). Case-insensitive. Exact matches come first, then prefixes, then the rest, each by id. A URL match carries the Deployment it matched.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
query |
string | yes | |
kind |
"person" or "system" or "service" or "component" |
||
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
query |
string | yes | |
total |
number | yes | |
truncated |
boolean | yes | |
elements |
list of object | yes |
get_deployments
Section titled “get_deployments”Get Deployments
Where a Service runs: each Deployment’s Environment, its full Deployment Target chain (outermost first), main url and named endpoints. Pass environment for one Environment, e.g. a Service’s URL in staging.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
service |
string | yes | The Service’s qualified id, project:id. |
environment |
string | An Environment id, such as prod or staging. | |
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
service |
object | yes | |
service.id |
string | yes | |
service.kind |
"person" or "system" or "service" or "component" |
yes | |
service.name |
string | yes | |
environment |
string or null | yes | |
total |
number | yes | |
truncated |
boolean | yes | |
deployments |
list of object | yes |
list_teams
Section titled “list_teams”List Teams
Every Team defined in the Workspace, with how many Elements each owns.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
total |
number | yes | |
truncated |
boolean | yes | |
teams |
list of object | yes |
list_environments
Section titled “list_environments”List Environments
Every Environment defined in the Workspace.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
total |
number | yes | |
truncated |
boolean | yes | |
environments |
list of object | yes |
list_views
Section titled “list_views”List Views
The Generated Views: c1 and c2 (the Landscapes), c2/<system> and c3/<service> (Services with Components); then the Saved Views (project:view-id), structural ones listed under their level and Dynamic Views under dynamic. With element, only the Views that show that Element as a node, and the Dynamic Views it takes part in (as a participant, or as the broker an event Step runs via).
Input
| Field | Type | Required | Notes |
|---|---|---|---|
kind |
"c1" or "c2" or "c3" or "deployment" or "dynamic" |
||
element |
string | Only Views containing this Element (project:id). | |
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
total |
number | yes | |
truncated |
boolean | yes | |
views |
list of object | yes |
get_view
Section titled “get_view”Get View
One View by id (c1, c2, c2/<system>, c3/<service>, deployment/<environment>, or a Saved View’s project:view-id) as nodes and edges. Neighbours outside the focus are collapsed to the highest level that still separates them; each edge carries the declared Relationships beneath it. A Deployment View nests Deployment Targets (kind target), a System box per System inside each Target (id <system>@<target>) and the Deployments (kind deployment, id <service>@<target>, element the Service); a consumer Deployment connects to the provider’s Deployments under their deepest shared Target, else to all of them, and a related Service with no Deployment there is a node outside every Target. A Saved View with a Lens also returns the Lens, a mark ({hit, distance?, side?}, side being origin, upstream or downstream for an impact Lens) per node and lit per edge; the Lens never changes which nodes the View holds. A Dynamic View instead returns participants in drawing order and steps [{n, kind: call|return|event, from, to, relationship, interaction, via?, channel?, description, note?}]: an event is drawn publisher → subscriber while relationship is the stored subscriber → publisher subscription; a return replies over the sync relationship the other way. Steps that don’t resolve are left out (check reports them).
Input
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | A View id, such as c1, c2/shop:checkout, c3/shop:cart or architecture:purchase. |
at |
string | A point in time to answer at: a ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
kind |
"c1" or "c2" or "c3" or "deployment" or "dynamic" |
yes | |
title |
string | yes | |
direction |
"TB" or "BT" or "LR" or "RL" |
||
lens |
object | ||
lens.impact |
string | yes | |
lens.direction |
"upstream" or "downstream" or "both" |
yes | |
lens.team |
string | yes | |
lens.path |
object | yes | |
nodes |
list of object | ||
edges |
list of object | ||
participants |
list of string | ||
steps |
list of object |
find_paths
Section titled “find_paths”Find paths
How two Elements are connected: the Relationships directly between them both ways, declared or derived from their descendants’ (each derived edge lists the declared Relationships beneath it), and the shortest paths each way up to max_hops, each hop with its Relationships. Compared at the levels of the two Elements given. A via broker counts as a hop.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | yes | A qualified id, project:id. |
to |
string | yes | A qualified id, project:id. |
max_hops |
integer | The longest path to look for, in hops. Default: 4. At least 1. At most 10. |
|
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | yes | |
to |
string | yes | |
maxHops |
number | yes | |
direct |
list of object | yes | |
total |
number | yes | |
truncated |
boolean | yes | |
paths |
list of object | yes |
get_impact
Section titled “get_impact”Get impact
Who an outage of an Element affects: the transitive upstream (what depends on it) or downstream (what it depends on) set, grouped by distance, with each Element’s Owner and the Relationships that carry the impact from the ring before. Includes the Relationships of the Element’s descendants; a via broker is a dependency of both its subscriber and its publisher. Logical Model only.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | A qualified id, project:id. |
direction |
"upstream" or "downstream" or "both" |
yes | |
max_depth |
integer | The furthest distance to follow; unlimited when left out. At least 1. At most 9007199254740991. | |
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
direction |
"upstream" or "downstream" or "both" |
yes | |
maxDepth |
number or null | yes | |
upstream |
object | ||
upstream.total |
number | yes | |
upstream.truncated |
boolean | yes | |
upstream.rings |
list of object | yes | |
downstream |
object | ||
downstream.total |
number | yes | |
downstream.truncated |
boolean | yes | |
downstream.rings |
list of object | yes |
list_owned
Section titled “list_owned”List owned
The Elements and Deployment Targets a Team owns, grouped by kind, each with counts of the other Teams upstream (depending on it) and downstream (it depends on). An Element is listed under its own Owner, whoever owns its parent.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
team |
string | yes | A Team id. |
kind |
"person" or "system" or "service" or "component" or "target" |
||
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
team |
string | yes | |
kind |
"person" or "system" or "service" or "component" or "target" or null |
yes | |
total |
number | yes | |
truncated |
boolean | yes | |
groups |
list of object | yes |
list_adrs
Section titled “list_adrs”List ADRs
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.
Input
| 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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
total |
number | yes | |
truncated |
boolean | yes | |
adrs |
list of object | yes |
get_adr
Section titled “get_adr”Get ADR
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.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | An ADR id, project:NNNN. |
at |
string | A point in time to answer at: a ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
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. |
get_changes
Section titled “get_changes”Get Changes
What changed in the Model between two points in time, each a ref (sha, tag or branch) or a date: a flat list of Changes (added, removed or changed), each with the fields that differ and the whole item before and after. to defaults to at, else the Workspace the server is reading. scope narrows to an Element (with its descendants and the Relationships, Deployments and ADRs touching them), a Team (what it owns at either side) or a Project; pass scope_kind when a Team and a Project share the id. kinds keeps only some item kinds.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | yes | The point to compare from: a ref or a date. |
to |
string | The point to compare to; defaults to at, else the current Workspace. |
|
scope |
string | An Element (project:id), a Team id or a Project id. | |
scope_kind |
"element" or "team" or "project" |
What scope names, when a Team and a Project share the id. |
|
kinds |
list of "team" or "environment" or "project" or "element" or "relationship" or "target" or "deployment" or "view" or "adr" |
Only these item kinds: team, environment, project, element, relationship, target, deployment, view, adr. At least 1 item. | |
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
from |
object | yes | |
from.point |
string | yes | |
from.commit |
string | yes | |
to |
object | yes | |
to.point |
string or null | yes | |
to.commit |
string or null | yes | |
scope |
object or null | yes | |
scope.kind |
"element" or "team" or "project" |
yes | What scope names, when a Team and a Project share the id. |
scope.id |
string | yes | |
total |
number | yes | |
truncated |
boolean | yes | |
counts |
map of id → object | yes | |
changes |
list of object | yes |
list_history
Section titled “list_history”List history
The Revisions (default-branch commits that changed the Workspace), newest first, each with sha, date, subject, author, tags, change counts against the Revision before, and whether its Bundle can be read with at. scope keeps the Revisions that touched an Element or its descendants, a Team or what it owns, or a Project (as they are at at, else now). since and until are refs or dates, inclusive; with at, Revisions after it are left out. Read from the Revision index, so it is cheap.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
scope |
string | An Element (project:id), a Team id or a Project id. | |
scope_kind |
"element" or "team" or "project" |
What scope names, when a Team and a Project share the id. |
|
since |
string | The earliest point: a ref or a date. | |
until |
string | The latest point: a ref or a date. | |
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 ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
scope |
object or null | yes | |
scope.kind |
"element" or "team" or "project" |
yes | What scope names, when a Team and a Project share the id. |
scope.id |
string | yes | |
total |
number | yes | |
truncated |
boolean | yes | |
revisions |
list of object | yes |
get_authoring_guide
Section titled “get_authoring_guide”Authoring guide
How to edit the Model with the write tools. With no topic: the archidocs-authoring skill (the Model, the edit loop) and its list of topics. With a topic: that flow’s reference file; rules is the catalogue of every check rule. Load it before writing.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
topic |
string | One topic’s reference file: bootstrap, add-service, relationships, deployments, dynamic-view, saved-view, propose-adr, change, rules. | |
at |
string | A point in time to answer at: a ref (sha, tag or branch) or a date (YYYY-MM-DD, the last Revision on or before it). Leave out for the current Workspace. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
topic |
string or null | yes | |
topics |
list of object | yes | |
text |
string | yes |