Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Get Outgoing Links

vault_get_outgoing_links
Read-onlyIdempotent

Find all notes and files a given note or canvas links to. For notes: [[wikilinks]], markdown, ![[embeds]], and wikilinks inside properties (e.g. related:).

Instructions

Find all notes and files a given note or canvas links to. For notes: [[wikilinks]], markdown, ![[embeds]], and wikilinks inside properties (e.g. related:). For canvas files: links typed in text cards, and file cards by their exact path. Links inside code blocks are ignored; self-links are included. Each target is listed once, however often the note links to it.

Example: vault_get_outgoing_links({ path: "Projects/vault-cortex.md" }) Example: vault_get_outgoing_links({ path: "Diagrams/architecture.canvas" })

When to use: Navigating the graph forward, auditing broken links in one note or canvas, or checking dependencies before editing. For incoming links (what links TO a note), use vault_get_backlinks.

Behavior: Results can lag a file change by a few seconds. A path that does not exist, or one in a dot-prefixed folder, returns an empty result (count 0), not an error, just as a note with no outbound links does; if you expected links, find valid paths with vault_search, vault_list_notes, or vault_list_files.

Returns: JSON with path, outgoing_links (array of { path, title, exists, kind, bytes, daily_note_forward_ref } sorted by target path), and count. A target's path is the vault-relative path the link resolved to; a broken link's path is its target text without any #heading or |alias, with a markdown link's %-escapes decoded. When exists is true, kind "note" is a markdown note readable via vault_read_note and kind "file" a non-markdown file (.canvas, image, PDF) readable via vault_read_file; when exists is false the link is broken and kind is "note" even for a path like "diagram.png". title is null for files and broken links. daily_note_forward_ref is true on a broken link to a daily note not yet created: one into a dedicated daily notes folder, or a bare date written in the daily note format; false otherwise. bytes is the on-disk size (null for broken links), not the delivery cost: vault_read_file downscales a large image to fit response limits.

Errors:

  • "path must end in …" — add the .md or .canvas extension

  • "[SqliteError]: …" — the index failed, not the call; the message says what to do

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "vault_get_outgoing_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesExact vault-relative path including .md or .canvas extension (e.g. "Projects/vault-cortex.md"). Case-sensitive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changedv0.36.0
    • changedInput schema / properties / path / description
      Previous value: -"Exact vault-relative path including .md extension (e.g. \"Projects/vault-cortex.md\"). Case-sensitive."New value: +"Exact vault-relative path including .md or .canvas extension (e.g. \"Projects/vault-cortex.md\"). Case-sensitive."
  3. Addedv0.32.1
  4. Removedv0.32.0
  5. Changed1 schema field changedv0.23.5
    • changedInput schema / properties / path / description
      Previous value: -"Vault-relative path to the note"New value: +"Exact vault-relative path including .md extension (e.g. \"Projects/vault-cortex.md\"). Case-sensitive."
  6. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/non-destructive; the description adds substantially beyond that: index lag of a few seconds, deduplication of repeated targets, inclusion of self-links, ignoring links inside code blocks, and the important non-obvious behavior that a missing path or dot-folder path yields an empty result rather than an error. It even maps specific error strings to the required fix (.md/.canvas extension, SqliteError).

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

Conciseness4/5

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

Front-loaded purpose sentence, then explicitly labeled sections (When to use, Behavior, Returns, Errors), so an agent can skim to the needed part. It is long, and the daily_note_forward_ref explanation plus the bytes/downscaling aside are dense, but with no output schema the return detail is largely load-bearing.

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?

There is no output schema, yet the description fully explains the return shape including field-level semantics (exists, kind, title nullability, broken-link path normalization, %-decoding, bytes caveat). Combined with the error section and sibling routing, an agent has everything needed to call and interpret it correctly.

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% and the schema already states exact vault-relative path, extension, and case-sensitivity, so baseline is 3. The description still adds value with two worked examples covering both a .md and a .canvas path, and by tying the leading error message back to the missing-extension mistake.

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?

Opens with a precise verb+resource statement: 'Find all notes and files a given note or canvas links to.' It then spells out exactly which link syntaxes count for notes versus canvas files, which immediately separates it from any generic link tool and from vault_get_backlinks.

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?

Has an explicit 'When to use' block naming three concrete scenarios (forward graph navigation, broken-link auditing, dependency checks before editing) and routes the inverse case to vault_get_backlinks by name. It also gives recovery guidance for unexpected empty results via vault_search, vault_list_notes, and vault_list_files.

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