Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

list_views

List all views in a SiYuan database and return each view's current layout, grouping, filter, and sort configuration.

Instructions

List database views and their current layout/group/filter/sort configuration.

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": {
      "avId": "<avId>"
    },
    "name": "list_views"
  }
}

Input Schema

NameRequiredDescriptionDefault
avIdYesDatabase ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.6/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. It usefully discloses that the response includes layout, group, filter, and sort configuration, which is real added value given there is no output schema, but it says nothing about permissions, whether views are paginated, whether all views or only shared ones are returned, or that the call is strictly non-mutating.

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 sentence, front-loaded with the action and resource, with the return contents appended rather than buried. No filler or redundant restatement of the tool name.

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 one-parameter read tool with no output schema and no annotations, the description covers what it operates on and what it returns, which is most of what an agent needs. The only gap is the absence of any safety or scoping context (read-only confirmation, auth or pagination behavior).

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?

The single parameter avId is fully documented in the schema as "Database ID" (100% coverage), so the baseline is 3. The description adds no further meaning about the parameter — for example, whether it accepts a database block ID versus a name — beyond what the schema already states.

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 specific verb and resource ("List database views") and adds scope by saying it returns the current layout/group/filter/sort configuration. It is clearly a read operation, distinguishing it implicitly from add_view, update_view, and delete_view, but it never explicitly names those alternatives or states that it does not modify them.

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 by the verb "List" — an agent can infer this is the read path for a database's views, but there is no explicit when-to-use guidance, no mention of prerequisites, and no routing to siblings such as update_view when configuration changes are wanted rather than inspection.

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