Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

workspace_map

Retrieve all notebooks, top-level document structure (two levels), and Attribute View database IDs to orient yourself before working in a SiYuan workspace.

Instructions

Get a map of the SiYuan workspace: all notebooks, top-level documents (2 levels), and all Attribute View database IDs. Call this first to orient yourself.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A4.2/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. 'Get a map' implies a read-only, non-destructive operation and it discloses the depth cap ('2 levels'), which is real behavioral context. However, it never explicitly states that it is read-only or non-mutating, nor does it warn about response size or cost for a workspace-wide sweep.

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?

Two short sentences with no filler. The content scope is stated first and the usage instruction ('call this first') follows, so the agent gets the what before the when.

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?

With no output schema and no annotations, the description must describe the return surface, and it does name the three things returned. The '2 levels' phrasing for documents is slightly ambiguous (depth of nesting vs. count), and there is no note on scale or truncation for large workspaces.

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 the baseline is 4. The description usefully clarifies that the output spans three distinct categories rather than a single list, which is the only semantic information available for a no-argument tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get a map') and resource ('the SiYuan workspace') and then enumerates the exact contents returned: all notebooks, top-level documents to 2 levels, and all Attribute View database IDs. That enumeration is what separates it from siblings like list_notebooks or list_views, which cover only one slice.

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?

'Call this first to orient yourself' gives an explicit trigger condition for invocation. It does not name a when-not condition or a competing alternative, but the sequencing guidance is unambiguous and actionable.

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