Skip to main content
Glama
BiteFoundry Obsidian MCP Server

BiteFoundry Obsidian MCP Server

get_local_graph

Return a BFS knowledge graph around a note, or the entire vault graph when no note is given. Pass a note and small depth to avoid slow whole-vault scans on large vaults.

Instructions

Return the local BFS knowledge graph around a note (or the full vault graph when note is omitted). Omitting note returns the whole-vault graph, which is large and slow on big vaults; pass note and a small depth when possible.

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

Input Schema

NameRequiredDescriptionDefault
noteNoOptional center note path, title, or alias.
depthNoNeighborhood hop depth 1..5 (default 2; other values are clamped and the result reports the depth used).
vaultNoOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It usefully discloses the performance characteristic of whole-vault graphs and that depth values get clamped, but it says nothing about the returned graph shape (nodes/edges, identifiers) or any limits/truncation behavior on large 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?

Two sentences, front-loaded with the tool's action, followed immediately by the performance caveat and the recommended invocation pattern. No filler or restated name/title.

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?

For a read-only graph retrieval tool with no annotations and no output schema, the definition covers when to call it and the cost trade-off, but leaves the agent guessing about the structure of the returned graph and how large results are bounded or paginated.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description adds real meaning beyond the schema by explaining the semantic consequence of omitting the note parameter (whole-vault graph) rather than just documenting its type. Depth and vault semantics are left to the schema, which already handles them.

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?

States a specific verb and resource ('Return the local BFS knowledge graph around a note') and clarifies the default behavior when the center note is omitted. It implicitly separates itself from link-list siblings like get_backlinks or get_outgoing_links by promising a BFS neighborhood graph rather than a single-hop list, but it never names an alternative explicitly.

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

Usage Guidelines4/5

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

Gives concrete operating guidance: prefer passing a note plus a small depth, and avoid omitting note on large vaults. There are no explicit exclusions ('do not use this when...') and no named sibling alternatives, which keeps it short of a 5.

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