Skip to main content
Glama

Organize folders, pages, and translations

doc_organize
Idempotent

Create or restyle folders, move documents between them, attach, detach, or reorder subpages, and link translations to organize a Tisty library.

Instructions

Create/restyle folders (max 6 deep, <=64 total), move docs between folders, attach/detach/reorder subpages (1 level deep), or link/unlink document translations.

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": {
      "action": "<action>"
    },
    "name": "doc_organize"
  }
}

Input Schema

NameRequiredDescriptionDefault
docsNoTarget document ID(s) (1 for link/unlink_translation or positioned add_page)
iconNoFor `create_folder`: single emoji or icon name
langNoFor `link_translation`: BCP-47 tag of `docs[0]` if missing from frontmatter
nameNoFor `create_folder`: folder name (<=40 chars)
afterNoFor `add_page`: place immediately after this sibling page ID
colorNoFor `create_folder`: folder color
orderNoFor `reorder_pages`: >=2 page IDs of `parent` in new reading order
actionYesLibrary organization operation
beforeNoFor `add_page`: place immediately before this sibling page ID
folderNoFor `file`: destination folder (omit to unfile); for `create_folder`: parent folder
parentNoParent doc ID (`add_page`, `reorder_pages`) or primary doc (`link_translation`)
positionNoFor `add_page`: place before/after existing page cards

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare the safety profile (non-read-only, non-destructive, idempotent), so the description's main added value is the structural limits: folders max 6 levels deep, 64 total, pages only 1 level deep. It does not disclose what happens on unlink_translation (relationship only, or content loss), permission requirements, or the response shape for a tool with 7 actions and no output schema.

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?

One dense sentence enumerates all seven operations with their limits in parentheses, and the highest-impact constraints (depth and total caps) come first. Nothing is redundant with the title or schema.

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?

For a 12-parameter, 7-action mutation tool, the description covers every action and its structural limits, which is the core need. Gaps remain around return values (no output schema exists to cover them) and failure conditions such as unfiling into a nonexistent folder or exceeding the folder cap.

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 100%, and each parameter description is already scoped to its action (e.g. 'For `create_folder`', 'For `file`'), so the schema carries the parameter burden. The description adds a cross-cutting constraint the schema cannot express: the 6-deep/64-total folder cap and the 1-level page nesting limit.

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 names concrete verbs and resources for every action in the enum: folder create/restyle, doc filing, page attach/detach/reorder, and translation link/unlink. It is unambiguous what the tool manipulates, though it never contrasts itself with content-editing siblings like doc_create or doc_edit.

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 action list rather than stated: an agent can infer this is the tool for structural organization, not content editing. There is no explicit when-to-use/when-not-to-use guidance, no prerequisites, and no routing to alternatives such as file_transfer for cross-workspace moves.

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