Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

bind_row_to_doc

Convert a detached Attribute View row into a document-backed row bound to an existing SiYuan document.

Instructions

Convert an existing detached row into a document-backed row bound to an existing document.

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>",
      "entryId": "<entryId>",
      "docId": "<docId>"
    },
    "name": "bind_row_to_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
avIdYesDatabase ID
docIdYesExisting document block ID
entryIdYesExisting row entry ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

B3.3/5.0
Behavior3/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. It correctly signals a mutation and its direction, but says nothing about permissions required, whether the operation is reversible, what happens to an existing binding, or failure conditions for an already-bound row or a non-existent document.

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?

A single front-loaded sentence with no filler: subject, action and target are stated immediately. It could only be improved by spending the saved space on prerequisites or side effects.

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 an unannotated mutation with three ID parameters and no output schema, the description should say more about preconditions, side effects and error behavior. As written, an agent knows what the tool does but not when it will fail or what state changes to expect.

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 coverage is 100%, so all three parameters are already documented in the schema as IDs. The description adds only the relational nuance that docId refers to an existing document and entryId to an existing detached row; it contributes no format, lookup, or constraint detail beyond that.

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?

Names a specific verb ('Convert') and a precise resource transformation: a detached row becomes a document-backed row bound to an existing document. This distinguishes it in spirit from create_doc_backed_row, since the source row already exists, though that differentiation is never stated explicitly.

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 implied by the word 'existing' — the row must already be detached and the document must already exist — but there is no explicit when-to-use, when-not, or named alternative for creating a new document-backed row instead.

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