Skip to main content
Glama
Wiki.js MCP Server
by mfic

wikijs_get_page_tree

Retrieves the folder and page hierarchy from a specified Wiki.js path, with locale and mode filters for browsing or managing content.

Instructions

Get the page tree (folder/page hierarchy) starting from a path

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wikijs_get_page_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoFilter tree itemsALL
pathNoRoot path to start from (empty for root)
localeNoLocale codeen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses very little. 'Get' implies a read, but nothing is said about whether the entire subtree or only one level is returned, ordering, depth limits, or what happens when the path does not exist. For a tree-traversal read with no annotations, these are meaningful gaps.

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?

A single, front-loaded sentence with zero wasted words; the core action and the key scoping parameter arrive immediately.

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?

With no output schema, the description should hint at the return shape; '(folder/page hierarchy)' gives a partial sketch, but whether the result is nested children or a full recursive subtree, and how mode affects it, remain unclear. Adequate but not complete for a traversal tool.

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%, with mode, path, and locale all documented in the schema including the mode enum and defaults, so the baseline is 3. 'Starting from a path' loosely reinforces the path parameter's meaning, but adds no format, syntax, or edge-case detail beyond the schema.

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 ('Get the page tree') and clarifies what a tree means here with '(folder/page hierarchy)'. It distinguishes the tool in spirit from flat siblings like wikijs_list_pages and wikijs_search_pages, though it never names them explicitly.

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 versus wikijs_list_pages, wikijs_search_pages, or wikijs_get_page, nor any stated preconditions (e.g., permissions, whether the path must exist). An agent must infer usage from the name and description alone.

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