get_graph_metadata
Retrieve structured JSON metadata for a project's knowledge graph, including node/edge counts and repository state. Use it for machine-readable graph status.
Instructions
Structured JSON snapshot of a project's graph state: identity, node/edge counts, graph commit, repository HEAD and freshness. Machine counterpart of get_graph_stats — parse it instead of the text output.
Args: project: Project name. Leave empty if only one project is loaded.
Returns: JSON string: {"ok": true, ...metadata} or {"ok": false, "error": {"code", "message", "remediation"}}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_graph_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |