Skip to main content
Glama
obsidian-surface

obsidian-surface

by sespinosa

layout

Control Obsidian workspace layout: split panes, open files and tabs, close tabs, toggle sidebars, focus tab groups, and list recent files to arrange your workspace.

Instructions

Control Obsidian window layout, tabs, and navigation.

Actions:

  • workspace: Show workspace layout tree with tab IDs (no params)

  • split: Split current pane (direction required: "vertical" or "horizontal")

  • close: Close tab(s) (target optional: "current", "others", or "all")

  • sidebar: Toggle a sidebar (side required: "left" or "right")

  • focus: Focus tab group by direction (direction required: "left", "right", "top", or "bottom")

  • open: Open a file (path required)

  • tabs: Open a new tab or list tabs (path optional; omit to list all tabs)

  • recents: List recently opened files (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": "layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path (for open, tabs)
sideNoSidebar side (for sidebar)
actionYesAction to perform
targetNoClose target (for close, default: current)
directionNoDirection (for split or focus)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it largely omits it. The destructive action close (target 'others' or 'all') is not flagged as potentially losing unsaved tabs, split/sidebar/focus are not described as mutating UI state, and there is no indication of return shapes beyond the partial note that workspace shows tab IDs. Only the 'no params' markers for workspace and recents add behavioral signal.

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?

One scope sentence followed by a scannable per-action bullet list, with the parameter requirement inlined on each bullet. Nothing is redundant and the most useful structural information (which action needs what) is front-loaded.

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 an eight-action dispatcher with five parameters, no annotations, and no output schema, the description covers the action-to-parameter mapping adequately. It falls short on side effects of mutating actions, prerequisites, and any hint of what the non-list actions return, which an agent needs before invoking close or split.

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% and the enum parameters already carry 'for X' hints, so the baseline is 3. The description does add marginal meaning by pairing each action with its required or optional parameter (direction required for split, target optional for close, path optional for tabs), but it does not explain value semantics such as what 'others' closes relative to the active tab or what focus does to the layout.

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 opening line gives a specific verb and resource ('Control Obsidian window layout, tabs, and navigation'), and the action list makes each capability concrete (split, close, sidebar, focus, open, tabs, recents). It never states how it relates to sibling tools, so an agent must infer that this is the window/UI tool rather than a content tool, but the action enumeration leaves little doubt about what it does.

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 through the action list: an agent can map 'I need to list tabs' to tabs and 'I need a new pane' to split. However, there is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites (e.g., must a workspace be open before sidebar or focus), and no routing away from related tools such as opening a file via open versus a note-oriented sibling.

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