Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

update_view

Update an existing SiYuan database view's layout, name, grouping, filters, or sorts to keep views organized and accurate.

Instructions

Update an existing database view layout, name, grouping, filters, or sorts.

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>",
      "viewId": "<viewId>"
    },
    "name": "update_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
avIdYesDatabase ID
nameNoNew view name
typeNoNew view type
sortsNoRaw SiYuan view sorts
viewIdYesView ID
filtersNoRaw SiYuan view filters
groupByFieldIdNoField ID to group by

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

B3.2/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 behavioral burden for a mutation tool, and it does not state whether this is a partial update (unspecified fields preserved) or a replacement, whether the change is reversible, or what permissions are required. The most consequential question for a 7-parameter update call, the merge semantics, is left entirely unanswered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the verb and resource, with no filler. The trailing field enumeration largely restates the schema, which is mild redundancy but also serves as a fast scan of what can be changed.

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?

The fully documented schema and the absence of an output schema reduce what the description must cover, so it is nearly adequate. It still falls short for a mutation with no annotations, since partial-update behavior and any side effects of changing name or view type are unaddressed.

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%, so every parameter including avId, viewId, sorts, filters, groupByFieldId, and the type enum is already documented in the schema. The description's field list adds only mild confirmation ("layout" loosely maps to the type enum) and no format or constraint detail beyond the schema, so baseline 3 applies.

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?

"Update an existing database view" gives a specific verb and resource, and the field list (layout, name, grouping, filters, sorts) makes the scope concrete. It does not explicitly contrast itself with add_view/delete_view, but the word "existing" implicitly separates it from creation and removal.

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?

"Update an existing" implies a view must already exist and that add_view is the tool for new views, which is useful implicit routing. However, there is no explicit statement of when to prefer this over list_views (to discover viewId) or delete_view, and no prerequisites or permission notes are given.

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