Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_get_cursor_position

Retrieves the current cursor position in the active Obsidian editor so you can locate the insertion point for editing, automation, or context-aware actions.

Instructions

Get the current cursor position in the active editor.

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": "obsidian_get_cursor_position"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It does add one useful behavioral constraint — the operation targets the *active editor*, implying an editor must be open — but it says nothing about what happens when no editor is active, whether the call is read-only or has side effects, or what the returned value looks like (line/column vs. character offset vs. a position object).

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 ten-word sentence with the key qualifier ('current', 'active editor') front-loaded. There is no filler, and the size is proportional to the tool's simplicity.

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 trivial zero-parameter read, the description is nearly sufficient, but because there is no output schema, the agent has no way to know the return shape (position format) or the failure mode when no editor is active. One more clause covering the returned fields would make this complete.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a no-parameter tool applies. The description correctly implies no input is required.

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 gives a concrete verb ('Get') and a specific resource ('the current cursor position in the active editor'), so an agent knows exactly what will be returned in kind, if not in shape. It is not wholly distinguished from nearby siblings like obsidian_get_selection or obsidian_insert_at_cursor, but the word 'cursor' plus 'active editor' scopes it adequately.

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 implied rather than stated: an agent infers it should call this when it needs the caret location before inserting or replacing text. There is no explicit when-not guidance and no mention of obsidian_get_selection as the alternative for selected-range information, despite the two being easy to confuse.

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