Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Get note tree

get_note_tree
Read-onlyIdempotent

Explore the note hierarchy from any note by expanding child levels and returning titles, types, note IDs, and branch IDs for organizing or drilling into subtrees.

Instructions

Explore the note hierarchy from a note, expanding children "depth" levels (default 1). Each node has noteId, title, type, childCount and childBranchIds; expanded children also carry their own branchId (what organize_note reorder/unlink need). Nodes at the depth boundary list childNoteIds for a follow-up call. System notes (IDs starting with "_") are skipped unless you start from one. At most 200 notes per call; the response is marked truncated when the cap is hit.

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": {
      "noteId": "<noteId>"
    },
    "name": "get_note_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoHow many levels of children to expand (default 1, max 5). Expanded nodes include title/type; nodes at the boundary include childNoteIds for further drilling.
noteIdYesID of the note to expand ("root" for the top of the tree).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • changedInput schema / properties / noteId / description
      Previous value: -"ID of the parent note (use \"root\" for the root note)"New value: +"ID of the note to expand (\"root\" for the top of the tree)."
    • addedInput schema / properties / noteId / maxLength
      Added value: +128
    • addedInput schema / properties / noteId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the 200-note-per-call cap, that the response is flagged as truncated at the cap, and that underscore-prefixed system notes are silently excluded. These are exactly the non-obvious behaviors an agent needs to interpret partial results.

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?

Front-loaded with the action and depth semantics, then limits and exclusions. Dense but each sentence carries information; the field enumeration (noteId, title, type, childCount, childBranchIds) is slightly list-heavy for a description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 still conveys the response shape, truncation signal, and exclusion rules, which is what an agent needs to call and interpret it correctly. Nothing material is missing for a two-parameter read 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 coverage is 100% and the schema's depth description already explains the default, max, and boundary childNoteIds behavior, so most of the description's parameter content is restated. The only added nuance is linking branchId output to organize_note, which is minor.

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?

States a specific verb and resource ("Explore the note hierarchy from a note") plus the scoping parameter's effect (expanding children "depth" levels). It also enumerates the returned node fields, so an agent knows this is a traversal tool rather than a single-note fetch like get_note.

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

Usage Guidelines4/5

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

Gives concrete operating context: system notes starting with "_" are skipped unless used as the root, boundary nodes provide childNoteIds for a follow-up call, and branchId output is what organize_note reorder/unlink need. It does not explicitly contrast against get_note or search_notes, so a sibling alternative is implied rather than named.

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