Skip to main content
Glama
obsidian-surface

obsidian-surface

by sespinosa

search

Search vault text, explore backlinks and outgoing links, view note outlines, and find orphan or dead-end notes to understand how your notes connect.

Instructions

Search the vault and explore note relationships.

Actions:

  • text: Search for text (query required; format optional: "json" or "text")

  • context: Search with surrounding line context (query required)

  • backlinks: List notes that link to a file (path required)

  • links: List outgoing links from a note (path required)

  • outline: Show heading tree of a note (path required)

  • orphans: List files with no incoming links (no params)

  • deadends: List files with no outgoing links (no params)

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": {
      "action": "<action>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path (for backlinks, links, outline)
queryNoSearch query (for text, context)
actionYesAction to perform
formatNoOutput format (for text, default: text)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it never states that all seven actions are read-only, whether results are capped or paginated, or how matching behaves (case sensitivity, regex, whole-word). It does add the useful constraint that 'orphans' and 'deadends' take no parameters and that 'format' defaults to text, which helps an agent avoid bad calls.

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?

One framing sentence followed by a seven-line action list is front-loaded and skimmable, with zero filler prose. Minor redundancy in re-stating parameter requirements that the schema already declares, but that redundancy is what makes the dispatcher usable at a glance.

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 seven-action dispatcher with no output schema and no annotations, so the description should say more about what each action returns (what an 'outline' tree or 'backlinks' entry looks like) and about ordering or limits. The action enumeration and 'Show heading tree' hint partially cover this, but an agent still can't predict result shape or volume.

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 every parameter is already documented in the schema, and the description largely restates that mapping (query for text/context, path for backlinks/links/outline). It adds no extra semantics such as path format, query syntax, or what context-line count is used. Baseline 3 applies when the schema does the heavy lifting.

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?

Opens with a concrete verb+resource ('Search the vault and explore note relationships') and then enumerates all seven actions with their meanings, so an agent knows exactly what capability set is behind the single name. The only shortfall is that it doesn't position itself against siblings such as 'tag' or 'note', which also touch vault content.

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

Usage Guidelines3/5

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

The per-action list implies which action to choose for a given need (backlinks vs links vs orphans vs deadends), and the parenthetical notes make the required input explicit for each. However, there is no guidance on when to use this tool versus the sibling tools, and no stated exclusions or preconditions (e.g., whether a path must be vault-relative).

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