Skip to main content
Glama

Link graph

vault_graph
Read-onlyIdempotent

Returns the vault's wiki-link graph as nodes and edges for clients that draw note connection maps, revealing orphans, clusters, and filter coverage.

Instructions

Returns the vault's wiki-link graph: notes as nodes (path, title, tipo, status, tags, area, domain, degrees) and the links between them as edges, also as structured data for a client that draws the graph. Use it for an overview of how notes connect (orphans, clusters, what a filter covers), not to answer a question: for a subject use vault_search, and for who points at ONE note use vault_backlinks. Filters pick the nodes, and an edge comes back only when both of its ends do.

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": "vault_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoEvery one of these tags must be on the note; case does not matter.
typeNoFrontmatter `tipo`: wiki, moc, projeto, daily.
folderNoVault folder, matched on a segment boundary, as in vault_list.
statusNoFrontmatter `status`, e.g. ativo, pausado.
max_nodesNoMaximum notes returned, in path order (default 2000, up to 5000); beyond that the answer is marked as truncated.
include_rawNoInclude `01-raw/` (unvetted capture), left out of the graph by default.
include_brokenNoInclude the list of broken links (raw target) of the returned notes.

Output Schema

NameRequiredDescriptionDefault
edgesYes
nodesYes
brokenNo
countsYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare this is a read-only, idempotent, non-destructive operation. Beyond that, the description adds useful graph-specific behavior: filters select nodes, and an edge is returned only when both endpoints are returned, which affects how clients should interpret results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the return shape, then usage guidance, then the edge-inclusion rule. It is compact and every sentence carries useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema and rich annotations already cover the result structure and safety profile. The description supplies the remaining context an agent needs: what the graph is for, when not to use it, and how filtering affects edges.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all seven parameters, including defaults and the truncation behavior. The description only implies that filters pick nodes and says nothing beyond the schema about individual filter semantics, so a baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it returns the vault's wiki-link graph as notes/nodes and links/edges. It distinguishes the tool from vault_search and vault_backlinks, so an agent can identify its role without opening sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this for an overview of how notes connect (orphans, clusters, filter coverage) and not to answer a question. It names concrete alternatives: vault_search for a subject and vault_backlinks for who points at one note.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.