Skip to main content
Glama
obsidian-surface

obsidian-surface

by sespinosa

surface

Create and manage persistent rendered artifacts—documents, diagrams, tables, and comparisons—in Obsidian, with an indexed timeline for discovering prior communications across sessions.

Instructions

Create and manage display surfaces — rich rendered artifacts (documents, diagrams, tables, comparisons) shown to the user in Obsidian. Surfaces persist as a timeline of what was communicated across sessions. Use create whenever rendering in Obsidian is better than terminal text. Use index at session start to discover prior surfaces.

Actions:

  • create: Create a surface with frontmatter and open it in Obsidian (name, content, summary required; type, tags, cwd_override optional)

  • list: List surfaces in a project with metadata (project optional, defaults to active)

  • index: Query the frontmatter index (project, type, tags, since, query — all optional filters)

  • recent: Get N most recent surfaces across all projects (limit optional, default 10)

  • enrich: Update a surface's frontmatter without changing content (path required; type, tags, summary optional)

  • reindex: Rebuild the index by scanning all surface files (no params)

  • clear: Delete all surfaces in a project and remove from index (project optional)

  • project_set: Set active project (name required)

  • project_list: List all projects (no params)

  • project_rename: Rename a project (from, to required)

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

Input Schema

NameRequiredDescriptionDefault
toNoNew project name (for rename)
fromNoCurrent project name (for rename)
nameNoSurface filename or project name
pathNoPath to a surface (for enrich)
tagsNoTags for the surface
typeNoType of surface (e.g. research, design, comparison, diagram)
limitNoMax results for recent (default 10)
queryNoText search filter for index
sinceNoISO date filter for index (e.g. 2025-01-01)
actionYesAction to perform
contentNoMarkdown content of the surface
projectNoProject name (defaults to active project)
summaryNoBrief summary of the surface (for create, enrich)
cwd_overrideNoOverride working directory recorded in frontmatter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose key traits: surfaces persist as a timeline across sessions, `create` opens the file in Obsidian, and `clear` deletes all surfaces in a project and removes them from the index (destructive). It does not cover overwrite behavior on duplicate `create`, permissions, or reversibility, and gives no return-shape context for list/index.

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?

Purpose is front-loaded in one sentence, followed by the two usage rules, then a scannable per-action list. Each action line is a single compact clause with required params called out; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-action, 14-parameter tool, the description covers every action and its required inputs, which is the main completeness risk. The remaining gap is return-value information — with no output schema, the agent learns nothing about what `index`, `list`, or `recent` actually return beyond "metadata" and "frontmatter index".

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only marks `action` as required, so the description supplies the crucial per-action parameter semantics the schema cannot express: create requires name/content/summary, enrich requires path, project_rename requires from and to, recent defaults limit to 10, and project defaults to active. That is genuine added meaning, not restatement of the schema descriptions.

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?

"Create and manage display surfaces — rich rendered artifacts (documents, diagrams, tables, comparisons) shown to the user in Obsidian" gives a specific verb, resource, and concrete examples of what a surface is. It never names a sibling tool, but the "rendering in Obsidian is better than terminal text" framing functionally separates it from the note/compose siblings, so the purpose is clear without an explicit contrast.

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

Usage Guidelines4/5

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

It gives explicit timing for two key actions: use `create` when Obsidian rendering beats terminal text, and use `index` at session start to discover prior surfaces. The remaining eight actions have no when-to-use guidance or exclusions, so the agent must infer the workflow (e.g. index vs list vs recent) from the action summaries alone.

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