veryfront__get_knowledge_graph
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
lookup_target | object or object or object | No | Optional. Omit to search the main preview branch (the default). Set this to target another preview branch, a deployed environment, or a published release; unresolved targets are returned as not found. |
caller_selector | boolean or string or string[] or object | No | Caller-selected document scope. Source membership and server-trusted knowledge policy are intersected with this selector before pagination; denied nodes, edges, broken-link labels and counts are filtered. |
root_file_version_id | string | No | Provide the root file version id. Format: uuid. |
root_path | string | No | Provide the root path. Minimum length: 1. Maximum length: 1024. |
max_depth | integer | No | Link hops from the root, 0 to 3; omit the root to read the whole visible set. Responses over 512 KiB fail with a size limit (REST 413, MCP PAYLOAD_TOO_LARGE). Narrow the graph with root_path, max_depth, filters or pagination.limit (GraphQL rootPath, maxDepth, filters or pagination.limit). Minimum: 0. Maximum: 3. |
filters | object | No | Provide the filters. |
pagination | object | No | Provide the pagination. |
project_reference | string | No | Project whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted. Minimum length: 1. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__get_knowledge_graph",7 "arguments": {}8 }9}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
nodes | object[] | Yes | Visible knowledge files as nodes. Markdown document links are edges; external and broken links are returned separately. Use the graph to find related files. |
edges | object[] | Yes | List of edges associated with this tool result. |
external_links | object[] | Yes | List of external links associated with this tool result. |
broken_links | object[] | Yes | List of broken links associated with this tool result. |
returned_nodes | integer | Yes | Minimum: 0. |
total_nodes | integer | Yes | Minimum: 0. |
partial | boolean | Yes | |
links_truncated | boolean | Yes | True when the combined link count or byte budget omits links. The graph is partial. |
limit | integer | Yes | Maximum number of results included in this payload. Minimum: 1. Maximum: 200. |
page_info | object | Yes | Pagination cursor values for traversing the result set. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "lookup_target": {5 "anyOf": [6 {7 "type": "object",8 "properties": {9 "kind": {10 "type": "string",11 "const": "preview_branch",12 "description": "Provide the kind."13 },14 "branch_id": {15 "anyOf": [16 {17 "type": "string",18 "format": "uuid",19 "description": "Branch identifier. Use null for the main branch when the tool supports it."20 },21 {22 "type": "null",23 "description": "Branch identifier. Use null for the main branch when the tool supports it."24 }25 ],26 "description": "Branch to search. Omit or use null for the main branch (the default)."27 }28 },29 "required": [30 "kind"31 ],32 "additionalProperties": false,33 "description": "Search a working branch, the default scope when lookup_target is omitted."34 },35 {36 "type": "object",37 "properties": {38 "kind": {39 "type": "string",40 "const": "environment",41 "description": "Provide the kind."42 },43 "environment_id": {44 "type": "string",45 "format": "uuid",46 "description": "ID of the environment whose deployed release to search."47 },48 "environment_name": {49 "type": "string",50 "minLength": 1,51 "maxLength": 255,52 "description": "Name of the environment (for example \"production\") whose deployed release to search."53 }54 },55 "required": [56 "kind"57 ],58 "additionalProperties": false,59 "description": "Search the release currently deployed to an environment. Provide environment_id or environment_name."60 },61 {62 "type": "object",63 "properties": {64 "kind": {65 "type": "string",66 "const": "release",67 "description": "Provide the kind."68 },69 "release_id": {70 "type": "string",71 "format": "uuid",72 "description": "ID of the release to search."73 },74 "release_version": {75 "type": "string",76 "minLength": 1,77 "maxLength": 255,78 "description": "Version string of the release to search."79 }80 },81 "required": [82 "kind"83 ],84 "additionalProperties": false,85 "description": "Search a specific published release. Provide release_id or release_version."86 }87 ],88 "description": "Optional. Omit to search the main preview branch (the default). Set this to target another preview branch, a deployed environment, or a published release; unresolved targets are returned as not found."89 },90 "caller_selector": {91 "anyOf": [92 {93 "type": "boolean",94 "description": "Provide the option 1."95 },96 {97 "type": "string",98 "minLength": 1,99 "maxLength": 4096,100 "description": "Provide the option 2."101 },102 {103 "type": "array",104 "items": {105 "$ref": "#/properties/caller_selector/anyOf/1",106 "description": "One caller selector item supplied to the tool."107 },108 "maxItems": 1024,109 "description": "Provide one or more option 3 values."110 },111 {112 "type": "object",113 "additionalProperties": {114 "type": "boolean",115 "description": "Additional structured values supplied to the tool."116 },117 "description": "Provide the option 4."118 }119 ],120 "description": "Caller-selected document scope. Source membership and server-trusted knowledge policy are intersected with this selector before pagination; denied nodes, edges, broken-link labels and counts are filtered."121 },122 "root_file_version_id": {123 "type": "string",124 "format": "uuid",125 "description": "Provide the root file version id."126 },127 "root_path": {128 "type": "string",129 "minLength": 1,130 "maxLength": 1024,131 "description": "Provide the root path."132 },133 "max_depth": {134 "type": "integer",135 "minimum": 0,136 "maximum": 3,137 "description": "Link hops from the root, 0 to 3; omit the root to read the whole visible set. Responses over 512 KiB fail with a size limit (REST 413, MCP PAYLOAD_TOO_LARGE). Narrow the graph with root_path, max_depth, filters or pagination.limit (GraphQL rootPath, maxDepth, filters or pagination.limit)."138 },139 "filters": {140 "type": "object",141 "properties": {142 "search": {143 "type": "string",144 "minLength": 1,145 "maxLength": 256,146 "description": "Case-insensitive title or path search within the authorized source."147 },148 "type": {149 "type": "string",150 "minLength": 1,151 "maxLength": 128,152 "description": "Provide the type."153 },154 "tags": {155 "type": "array",156 "items": {157 "type": "string",158 "minLength": 1,159 "maxLength": 128,160 "description": "One tag item supplied to the tool."161 },162 "maxItems": 64,163 "description": "Provide the tags."164 }165 },166 "additionalProperties": false,167 "description": "Provide the filters."168 },169 "pagination": {170 "type": "object",171 "properties": {172 "limit": {173 "type": "integer",174 "minimum": 1,175 "maximum": 200,176 "description": "Maximum number of results to return."177 },178 "cursor": {179 "type": "string",180 "minLength": 1,181 "maxLength": 2048,182 "description": "Opaque pagination cursor returned by a previous response."183 }184 },185 "additionalProperties": false,186 "description": "Provide the pagination."187 },188 "project_reference": {189 "type": "string",190 "minLength": 1,191 "description": "Project whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted."192 }193 },194 "additionalProperties": false,195 "description": "Arguments for the get_knowledge_graph tool.",196 "$schema": "http://json-schema.org/draft-07/schema#"197}output-schema.json
1{2 "type": "object",3 "properties": {4 "nodes": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "file_id": {10 "type": "string",11 "format": "uuid"12 },13 "file_version_id": {14 "type": "string",15 "format": "uuid"16 },17 "path": {18 "type": "string"19 },20 "title": {21 "type": [22 "string",23 "null"24 ],25 "description": "Short human-readable title returned by the tool."26 },27 "type": {28 "type": [29 "string",30 "null"31 ]32 },33 "tags": {34 "type": "array",35 "items": {36 "type": "string"37 },38 "description": "List of tags associated with this tool result."39 },40 "reserved": {41 "type": "boolean"42 }43 },44 "required": [45 "file_id",46 "file_version_id",47 "path",48 "title",49 "type",50 "tags",51 "reserved"52 ],53 "additionalProperties": false54 },55 "maxItems": 200,56 "description": "Visible knowledge files as nodes. Markdown document links are edges; external and broken links are returned separately. Use the graph to find related files."57 },58 "edges": {59 "type": "array",60 "items": {61 "type": "object",62 "properties": {63 "source_file_version_id": {64 "type": "string",65 "format": "uuid"66 },67 "target_file_version_id": {68 "type": "string",69 "format": "uuid"70 },71 "ordinal": {72 "type": "integer",73 "minimum": 074 }75 },76 "required": [77 "source_file_version_id",78 "target_file_version_id",79 "ordinal"80 ],81 "additionalProperties": false82 },83 "maxItems": 2000,84 "description": "List of edges associated with this tool result."85 },86 "external_links": {87 "type": "array",88 "items": {89 "type": "object",90 "properties": {91 "source_file_version_id": {92 "type": "string",93 "format": "uuid"94 },95 "ordinal": {96 "type": "integer",97 "minimum": 098 },99 "url": {100 "type": "string"101 }102 },103 "required": [104 "source_file_version_id",105 "ordinal",106 "url"107 ],108 "additionalProperties": false109 },110 "maxItems": 2000,111 "description": "List of external links associated with this tool result."112 },113 "broken_links": {114 "type": "array",115 "items": {116 "type": "object",117 "properties": {118 "source_file_version_id": {119 "type": "string",120 "format": "uuid"121 },122 "ordinal": {123 "type": "integer",124 "minimum": 0125 },126 "target_path": {127 "type": "string"128 }129 },130 "required": [131 "source_file_version_id",132 "ordinal",133 "target_path"134 ],135 "additionalProperties": false136 },137 "maxItems": 2000,138 "description": "List of broken links associated with this tool result."139 },140 "returned_nodes": {141 "type": "integer",142 "minimum": 0143 },144 "total_nodes": {145 "type": "integer",146 "minimum": 0147 },148 "partial": {149 "type": "boolean"150 },151 "links_truncated": {152 "type": "boolean",153 "description": "True when the combined link count or byte budget omits links. The graph is partial."154 },155 "limit": {156 "type": "integer",157 "minimum": 1,158 "maximum": 200,159 "description": "Maximum number of results included in this payload."160 },161 "page_info": {162 "type": "object",163 "properties": {164 "self": {165 "type": [166 "string",167 "null"168 ],169 "description": "Cursor supplied on this request, if any."170 },171 "first": {172 "type": "object",173 "description": "Reserved; a first-page cursor is not emitted."174 },175 "next": {176 "type": [177 "string",178 "null"179 ],180 "description": "Opaque cursor for the next page, or null on the last page."181 },182 "prev": {183 "type": "object",184 "description": "Reserved; a previous-page cursor is not emitted."185 }186 },187 "required": [188 "self",189 "first",190 "next",191 "prev"192 ],193 "additionalProperties": false,194 "description": "Pagination cursor values for traversing the result set."195 }196 },197 "required": [198 "nodes",199 "edges",200 "external_links",201 "broken_links",202 "returned_nodes",203 "total_nodes",204 "partial",205 "links_truncated",206 "limit",207 "page_info"208 ],209 "additionalProperties": false,210 "$schema": "http://json-schema.org/draft-07/schema#",211 "description": "Structured result returned by the get_knowledge_graph tool."212}