Skip to main content
Glama

resolve_link

Read-onlyIdempotent

Resolve Obsidian link text using shortest-path, same-folder, and alias rules, then confirm the target heading or block exists.

Instructions

Resolve link text the way Obsidian does (shortest path, same-folder preference, aliases) and check that a #heading or #^block exists.

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": {
      "link": "<link>"
    },
    "name": "resolve_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoNote the link is written in (affects relative/same-folder resolution)
linkYese.g. "Note", "folder/Note#Heading", "[[Note#^abc|x]]"
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is smaller. It nonetheless adds genuine behavioral context: resolution follows Obsidian's rules (shortest path, same-folder preference, aliases) and includes verification that the target heading or block actually exists, which is information not present in the annotations.

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 compact sentence that front-loads the operation and parenthesizes the resolution rules. Every clause carries information; nothing is padding or restated from the schema.

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?

There is no output schema, so the description should indicate what a caller gets back — especially whether an unresolvable link yields an error or a negative result. It states that existence is checked but not the shape or failure mode of that check, which is a meaningful gap for a three-parameter resolver.

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 coverage is 100%, so all three parameters are already documented, including the note that `from` affects relative/same-folder resolution. The description restates the resolution rules that give `from` and `link` their meaning but adds no syntax or format detail beyond the schema's examples — the baseline 3 for full coverage is appropriate.

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 names a specific verb (resolve) and resource (link text) and pins down the resolution semantics — shortest path, same-folder preference, aliases — plus heading/block existence checking. An agent can tell this is a resolution/validation operation rather than a repair or graph operation, though it never explicitly contrasts itself with fix_broken_link or find_broken_links.

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?

Usage is only implied: the mention of checking that a #heading or #^block exists suggests a pre-validation use case before creating links. There is no explicit when-to-use, when-not-to-use, or pointer to fix_broken_link for the repair case, leaving the agent to infer the boundary.

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

Deploy Server

Other Tools