Skip to main content
Glama

Move Document in Sidebar

move_doc

Moves a document to a new parent in the AFFiNE sidebar, validating the destination link and rejecting cycles before removing the old link, with explicit partial-outcome reporting.

Instructions

Move a doc in the AFFiNE sidebar. The destination link is validated and added before the optional source link is removed, cycles are rejected, and partial outcomes are reported explicitly.

Input Schema

NameRequiredDescriptionDefault
docIdYesThe doc to move.
workspaceIdNo
toParentDocIdYesThe new parent doc that will contain the embed.
fromParentDocIdNoThe current parent doc to remove the embed from. If omitted, only adds to new parent.

Output Schema

NameRequiredDescriptionDefault
okNo
codeNo
kindNo
docIdNo
errorNo
movedNo
detailsNo
causeCodeNo
retryableNo
workspaceIdNo
toParentDocIdNo
recoveryGuidanceNo
removedFromParentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

A4.1/5.0
Behavior5/5

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

The description goes well beyond the annotations by disclosing transactional ordering (destination link validated and added before the source link is removed), cycle rejection as a guardrail, and explicit reporting of partial outcomes. These are exactly the behaviors an agent cannot infer from destructiveHint=false and are essential for a non-idempotent mutation.

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?

Two sentences with the operation front-loaded and zero filler. The second sentence packs four distinct behavioral facts (validation, ordering, cycle rejection, partial reporting) without repetition.

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?

An output schema exists, so return shape needn't be explained, and the mutation semantics are well covered. The only gap is workspaceId, which has no schema description and is not mentioned in the description either, leaving its role unscoped for a multi-workspace caller.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema already documents docId, toParentDocId and the optional fromParentDocId. The description adds the sequencing semantics — that the destination link is written first and the source link removed only afterward — which explains the practical consequence of omitting fromParentDocId beyond the schema's own note.

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?

States a specific verb and resource: moving a doc within the AFFiNE sidebar. The sidebar framing implicitly separates it from move_block and move_organize_node, but neither sibling is named, so an agent must infer which move tool applies to which structure.

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 rather than stated: 'in the AFFiNE sidebar' and 'the optional source link' signal this is a hierarchy re-parenting operation. There is no explicit when-to-use, no prerequisites, and no routing to the many sibling move tools (move_block, move_organize_node) that could be confused with it.

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

Deploy Server

Other Tools