Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

write_db_rows

Creates one or more entries in a SiYuan Attribute View database, letting you add row names and initial field values for new records.

Instructions

Create one or more entries (rows) in a database. Each row can have a name and initial field values.

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>",
      "rows": "<rows>"
    },
    "name": "write_db_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
avIdYesDatabase ID (Attribute View block ID)
rowsYesRows to create (1 or more)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and falls short. It does not say whether the write is atomic (what happens if one row in the batch fails), whether duplicate names are allowed, how unknown fieldId/type mismatches are handled, or what the call returns — all material for a batch mutation tool.

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?

Two short sentences with the core action front-loaded and almost no waste. The second sentence is close to redundant with schema field documentation, but it usefully signals that rows may be created with partial field coverage.

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

Completeness2/5

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

For a batch write tool with a nested values array, zero annotations and no output schema, the description is too thin. It leaves failure/atomicity behavior, validation rules, and return information entirely 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 the schema already documents avId, rows, name, values, fieldId, type and content. The description's phrase 'a name and initial field values' only loosely restates that, adding no format or constraint detail beyond the schema.

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 states a specific verb and resource: 'Create one or more entries (rows) in a database.' That clearly separates it from mutation siblings like update_db_cells or delete_db_rows, though it never names an alternative explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., that field IDs should come from read_database, or that the database must already exist), and no routing toward alternatives. An agent must infer all usage conditions from the schema alone.

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