get_graph_report
Report on a tree’s links. How a tree’s concepts link to each other: the most linked concepts, those with no links at all, and its areas (concepts more linked to each other than to the rest), with how many links join each pair of areas. An area joined to no other shows where the tree lacks links between its parts. Read-only.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
tree |
string | No | The tree’s slug, as list_trees gives it (not its name). Required unless the Forest has one tree. |
Returns
Section titled “Returns”One JSON object (see All tools):
| Field | Type | Always | Description |
|---|---|---|---|
tree |
Tree reference | Yes | The tree, and the commit it was read at. |
concepts |
number | Yes | How many concepts the tree has. |
links |
number | Yes | How many links join one concept to another. |
mostLinked |
list of Linked concept | Yes | The concepts most linked to, most first (up to 10). |
orphans |
list of Concept link | Yes | Concepts with no links to or from another concept. |
areas |
list of Area | Yes | The tree’s areas: concepts more linked to each other than to the rest. |
Example
Section titled “Example”Asked “How well linked is the company tree?”, an assistant might call get_graph_report with:
{ "tree": "company"}On OKForest’s test Forest (Acme’s made-up company knowledge), it returns:
{ "tree": { "slug": "company", "repo": "acme/acme-okf", "commit": "abc1234abc1234abc1234abc1234abc1234abc12", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/" }, "concepts": 3, "links": 1, "mostLinked": [ { "id": "company:competitors/rival-co", "backlinks": 1, "title": "Rival Co", "tree": "company", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/competitors/rival-co" } ], "orphans": [ { "id": "company:policies/refunds", "title": "Refund policy", "tree": "company", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/policies/refunds" } ], "areas": [ { "area": 1, "concepts": 2, "top": [ { "id": "company:competitors/rival-co", "title": "Rival Co", "tree": "company", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/competitors/rival-co" }, { "id": "company:customers/acme-corp", "title": "Acme Corp", "tree": "company", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/customers/acme-corp" } ], "linksTo": [] } ]}