Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Get attributes

get_attributes
Read-onlyIdempotent

Read a TriliumNext note's own labels and relations by noteId, or fetch a single attribute by attributeId. Provide exactly one identifier to retrieve the requested attribute data.

Instructions

Read attributes. Pass noteId for the note's own labels and relations (inherited attributes are not included), or attributeId for one attribute. Exactly one is required.

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

Input Schema

NameRequiredDescriptionDefault
noteIdNoList this note's own attributes, grouped into labels and relations.
attributeIdNoFetch one attribute (noteId, type, name, value, position, isInheritable).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.4.0
    • changedInput schema / properties / attributeId / description
      Previous value: -"If provided, returns the single attribute with this ID (noteId, type, name, value, position)."New value: +"Fetch one attribute (noteId, type, name, value, position, isInheritable)."
    • addedInput schema / properties / attributeId / maxLength
      Added value: +128
    • addedInput schema / properties / attributeId / minLength
      Added value: +1
    • addedInput schema / properties / attributeId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
    • changedInput schema / properties / noteId / description
      Previous value: -"If provided, returns all attributes of this note grouped by type (labels, relations)."New value: +"List this note's own attributes, grouped into labels and relations."
    • addedInput schema / properties / noteId / maxLength
      Added value: +128
    • addedInput schema / properties / noteId / minLength
      Added value: +1
    • addedInput schema / properties / noteId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already establish readOnly/idempotent/closed-world, so the description focuses on what those hints cannot convey: that inherited attributes are excluded from noteId results, and that exactly one of the two IDs must be supplied. That arity constraint is behaviorally important because the schema declares no required fields and cannot enforce it.

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?

Two short sentences, front-loaded with the purpose, then the branching rule and constraint. Nothing redundant and nothing padded.

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 two-parameter read tool with no output schema, the description plus the schema descriptions cover what an agent needs to call it correctly, including the response shape hints (labels vs relations, attribute fields). Only a short note on empty results or error behavior when both or neither ID is passed would make it fully complete.

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 both parameter descriptions already say 'own attributes' and 'fetch one attribute', so the description mostly restates structured data. The only genuine addition is the emphasis that inherited attributes are not included, which is a minor increment.

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 attributes') and immediately explains the two access modes. It is clearly distinguishable from set_attribute/delete_attribute by the read framing, though it does not name any sibling explicitly.

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 explicit mode-selection guidance: pass noteId to get all of a note's own attributes, or attributeId for a single one. It does not state when to prefer the sibling tools or when this tool should not be used, but the selection rule inside the tool is unambiguous.

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