Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

delete_db_rows

Delete one or more rows from a SiYuan Attribute View database by database ID and entry IDs, removing unwanted records to keep the database current.

Instructions

Delete one or more entries from a database.

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>",
      "entryIds": "<entryIds>"
    },
    "name": "delete_db_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
avIdYesDatabase ID
entryIdsYesEntry IDs to delete

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 supplied, so the description carries the full burden of behavioral disclosure. It does not say whether deletions are permanent or reversible, whether they cascade to related documents or blocks, what permissions are required, or whether batch size is limited. The phrase 'one or more' hints at batch behavior but nothing more.

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?

The description is a single front-loaded sentence with no wasted words. It is efficient, though its brevity contributes to the missing behavioral detail.

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 tool is simple: two required parameters, both fully documented, and no output schema. However, it is a destructive operation with no annotations, so the description should at least note permanence or side effects; that gap keeps it from being fully complete.

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%: avId is documented as 'Database ID' and entryIds as 'Entry IDs to delete'. The description adds nothing beyond that, so the baseline of 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?

The description states a specific verb and resource: 'Delete one or more entries from a database'. That clearly distinguishes the tool from siblings such as delete_document, delete_view, and write_db_rows. It does not name an alternative, but the purpose is unambiguous.

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 guidance on when to use this tool rather than delete_document, delete_view, or update_db_cells, and no stated prerequisites. The only implied usage is deleting database entries, which the name already conveys.

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