Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Read note

get_note
Read-only

Retrieve a TriliumNext note by ID with its metadata, HTML or Markdown body, and embedded images. Use paging and metadata-only mode to read or navigate large notes.

Instructions

Read a note. Returns a metadata JSON block (title, type, attributes, parent/child IDs, and contentInfo with the total size and returned character range), then the body (stored HTML by default), then any images embedded in the body. Bodies over 50000 characters are paged via content_start/content_max_chars. Pass include_content=false for metadata only, include_path=true for breadcrumbs of where the note lives, include_backlinks=true for notes linking to it (a slow scan of all note bodies).

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo"html" (default) returns the stored HTML — use it before write_note edits. "markdown" is a lossy, more compact view for reading only. Ignored when include_content=false.html
noteIdYesID of the note to retrieve
include_pathNoAdd "paths" to the metadata: for every place the note sits in the tree (one per parent, clones included), the noteId path and a human-readable title breadcrumb like "root > Projects > Plan". Use it to tell the user WHERE a note lives. At most 10 paths; pathsTruncated:true marks a note with more placements.
content_startNoCharacter offset into the (format-converted) content to start from — for paging through large notes. Defaults to 0. The metadata block reports the returned range and total size.
includeImagesNoReturn images embedded in the note body as image blocks — only on the first page (content_start=0), at most ~1 MB each and ~4 MB total; larger ones are listed for get_attachment. Also controls whether an image NOTE (type image) returns its picture. Costly; pass false when you only need text.
include_contentNoInclude the note body (default true). Pass false for metadata-only navigation (title, type, attributes, parent/child IDs).
content_max_charsNoMaximum content characters to return (default 50000). When the note is larger, the content is truncated with a notice explaining how to fetch the rest.
include_backlinksNoAdd "backlinks" to the metadata: notes whose content links to (or mentions the ID of) this note, with noteId and title (max 50; backlinksTruncated:true when there are more). Relations without a link in the content (e.g. ~author) are not included. This is a slow full-text scan of every note body; if Trilium is busy or it times out, the note is still returned, with backlinksError instead of backlinks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.4.0
    • changedInput schema / properties / format / description
      Previous value: -"Content format. Use \"markdown\" to convert stored HTML to markdown. Defaults to \"html\". Ignored when include_content=false."New value: +"\"html\" (default) returns the stored HTML — use it before write_note edits. \"markdown\" is a lossy, more compact view for reading only. Ignored when include_content=false."
    • changedInput schema / properties / includeImages / description
      Previous value: -"Whether to fetch embedded images as MCP image blocks. Defaults to true. Ignored when include_content=false."New value: +"Return images embedded in the note body as image blocks — only on the first page (content_start=0), at most ~1 MB each and ~4 MB total; larger ones are listed for get_attachment. Also controls whether an image NOTE (type image) returns its picture. Costly; pass false when you only need text."
    • changedInput schema / properties / include_backlinks / description
      Previous value: -"Add \"backlinks\" to the metadata: notes whose content links to (or mentions the ID of) this note, with noteId and title (max 50). Relations without a link in the content (e.g. ~author) are not included."New value: +"Add \"backlinks\" to the metadata: notes whose content links to (or mentions the ID of) this note, with noteId and title (max 50; backlinksTruncated:true when there are more). Relations without a link in the content (e.g. ~author) are not included. This is a slow full-text scan of every note body; if Trilium is busy or it times out, the note is still returned, with backlinksError instead of backlinks."
    • changedInput schema / properties / include_content / description
      Previous value: -"Whether to include the note body in the response. Defaults to true — the response contains the content (HTML by default, or markdown if format=\"markdown\") plus image blocks for any embedded image attachments. Set to false only for metadata-only navigation (walking the tree, inspecting attributes/parents/children) where you explicitly do not need the body."New value: +"Include the note body (default true). Pass false for metadata-only navigation (title, type, attributes, parent/child IDs)."
    • changedInput schema / properties / include_path / description
      Previous value: -"Add \"paths\" to the metadata: for every place the note sits in the tree (one per parent, clones included), the noteId path and a human-readable title breadcrumb like \"root > Projects > Plan\". Use it to tell the user WHERE a note lives."New value: +"Add \"paths\" to the metadata: for every place the note sits in the tree (one per parent, clones included), the noteId path and a human-readable title breadcrumb like \"root > Projects > Plan\". Use it to tell the user WHERE a note lives. At most 10 paths; pathsTruncated:true marks a note with more placements."
    • 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.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description still adds substantial behavior: the three-part return sequence, the 50000-character paging threshold, and that backlink scans may time out and return backlinksError instead of failing the whole call. That degraded-mode disclosure is exactly the kind of context annotations cannot convey.

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 primary fact (it reads a note) followed immediately by the return shape, so the most important information arrives first. It is one dense block, though, and some phrasing restates what the parameter descriptions already say.

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?

There is no output schema, so the description must carry the return-value burden and it does: metadata fields, body format, image blocks, paging range, and error fields are all named. For an 8-parameter read tool with optional expensive modes, nothing an agent needs is missing.

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%, so the baseline is 3, but the description adds cross-parameter meaning the schema states only piecemeal: bodies over 50000 characters are paged via content_start/content_max_chars together, and the default body is stored HTML. Most remaining detail (breadcrumb format, image size limits) is already in the schema, so it does not reach a 5.

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 ("Read a note") and then spells out exactly what comes back: a metadata JSON block, the body, then embedded images. An agent knows precisely what the call produces. It does not explicitly contrast itself with siblings like get_note_tree or get_attributes, which is the only thing keeping it from a 5.

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 usage contexts: metadata-only navigation via include_content=false, breadcrumbs via include_path=true, and backlinks with an explicit cost warning ("a slow scan of all note bodies"). It covers when to flip each switch but never says when to choose a different tool entirely.

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