Skip to main content
Glama

Get knowledge graph

get_knowledge_graph
Read-only

Retrieve an Obsidian vault's knowledge graph to map notes and their links for navigation and connection analysis.

Instructions

Get the complete knowledge graph for a vault

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_knowledge_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • removedInput schema / required
      Removed value: -[
      -  "vault"
      -]
  2. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds only the word 'complete,' which usefully implies the full node/edge set rather than a subgraph, but it says nothing about response size, cost, or whether large vaults make this expensive.

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?

A single front-loaded sentence with no wasted words. The scope qualifier 'complete' arrives before the resource qualifier, so the agent reads the most decision-relevant information first.

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

Completeness3/5

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

This is a simple read-only, zero-required-parameter tool whose annotations cover safety, so the bar is modest. However, with no output schema in place, the description could have stated the shape of the returned graph (nodes/edges) and rough scale, which is the main thing an agent needs before requesting an entire vault graph.

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% and the single optional 'vault' parameter is documented in the schema, including the single-vault fallback and a pointer to list_vaults. The description's 'for a vault' merely echoes the schema, so the baseline of 3 applies.

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

Purpose4/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 ('Get the complete knowledge graph') and the qualifier 'complete' signals unfiltered whole-vault scope. It does not name or distinguish itself from siblings like analyze_graph, get_related_notes, or find_path, which also operate on graph data.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusions, and no named alternative. An agent must infer that 'complete' means 'use this for whole-graph retrieval rather than for a single note's links,' but nothing in the description confirms that routing.

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