Skip to main content
Glama

Add Organize Link

add_organize_link

Adds a doc, tag, or collection link under an AFFiNE organize folder; use move_organize_node to relocate an existing link instead of creating a duplicate.

Instructions

Experimental: add a doc, tag, or collection link under an AFFiNE organize folder. Use move_organize_node for an existing link node instead of creating a duplicate link.

Input Schema

NameRequiredDescriptionDefault
typeYesType of target represented by the organize link.
indexNoOptional fractional index. Defaults to append-after-last.
folderIdYesAFFiNE organize folder node id.
targetIdYesTarget doc/tag/collection id
workspaceIdNoAFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
codeNo
dataNo
typeNo
errorNo
indexNo
detailsNo
parentIdNo
causeCodeNo
retryableNo
recoveryGuidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond the annotations by labeling the tool Experimental and warning that using it on an existing node can create a duplicate link.

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?

The description is two tight sentences with no wasted text. The experimental warning and the core action are front-loaded, followed immediately by the key alternative.

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?

The tool has complete schema coverage, annotations, and an output schema, so the description does not need to explain parameters or return values. It covers purpose, experimental status, and the main duplicate-link pitfall, though it could say slightly more about the create-vs-move boundary.

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 all parameters including folderId, targetId, type, index, and workspaceId. The description does not add syntax or meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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: adding a doc, tag, or collection link under an AFFiNE organize folder. It also explicitly distinguishes the tool from move_organize_node, so an agent can select it correctly without opening sibling schemas.

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

Usage Guidelines5/5

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

The description gives a direct usage rule: use move_organize_node for an existing link node instead of creating a duplicate link. This names the alternative and the condition that selects it, leaving little ambiguity about when to use add_organize_link.

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