Skip to main content
Glama
Linkly AI

Linkly AI

Official

list

Read-only

Browse a known folder, library, or notes container without full-text search: get sorted, paginated file entries with paths, sizes, and timestamps to drill down.

Instructions

[Tool boundaries: explore = global overview → find_paths = FIND a directory → list = LIST files in a known container → outline/read = read content. For keyword/semantic search use search.] List the entries of a container WITHOUT full-text matching. scope is REQUIRED: "folder" (indexed files under a disk directory — omit path to sweep all watched roots), "library" (one library's files; requires library; call list_libraries first), or "notes" (local markdown card notes). Listing is a flat recursive sweep of the whole subtree — no directory tree is returned; drill down by reading the absolute paths in items or via find_paths. Sorting IS the truncation policy: "recent" (default) anchors on modified_at for folder/library and created_at for notes, newest first — with has_more=true you are seeing the MOST RECENT slice, not a random one. "oldest" is the same anchor earliest-first; "name" is file basename A → Z. Page order equals sort direction; every sort has a deterministic full-path tiebreaker, so offset pagination is stable. total counts the whole filtered set; page with offset + has_more. Timestamps are Unix milliseconds; modified_at is the filesystem mtime. folder/library items carry doc_id/title/absolute path/doc_type/word_count/char_count/total_lines/has_outline/modified_at/keywords/skip_reason (a non-null skip_reason means the content is not readable — don't read/grep it). Use total_lines + has_outline to decide outline vs read. When a listed directory has a README-style file, the response carries a top-level readme pointer — when present and you need to understand the folder's purpose, read it first. notes are filesystem-first: notes created moments ago appear immediately, with doc_id=null and indexed=false until the watcher finishes. Each note item carries note_id plus real-time version (the CAS pair for note_save mode="edit") and title (null when the filename is machine-generated). tags filters notes only (AND; leading '#' stripped, ASCII lowercased); the response carries available_tags (top 50 by usage) — reuse them here and on search scope="notes"; for note_save pass tags only when the user explicitly asked. Defaults per scope — snippet: notes=on (~200 chars of body), folder/library=off (from the indexed abstract when on); output_format: notes=json, folder/library=markdown. snippet=on caps limit at 50; snippet=false pages up to 200.

Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count.

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": {
      "scope": "<scope>"
    },
    "name": "list"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoAbsolute directory path to list. Valid for scope="folder" and local scope="library" (must fall inside the library's folders, or inside the Notes/Clips directory when the library has a tag filter for that source — such paths list only the documents matched by the filter). Omit with scope="folder" to list across all watched roots. The path is an ADDRESS, not a pattern — no globs; if you only know a fuzzy name, call `find_paths` first and use the returned path.
sortNoSort order. "recent" (default): notes anchor on creation time (created_at desc); folder/library anchor on modification time (modified_at desc) — so with has_more=true you are looking at the MOST RECENT slice, not a random one. "oldest": the same anchor, earliest first. "name": file basename, UTF-8 code point order, A → Z. Page order equals sort direction, and every sort ends with a deterministic file-path tiebreaker so offset pagination is stable. Sending `null` or omitting the field yields the default.
tagsNoReturn only notes carrying ALL of the given tags (AND semantics). Valid for scope="notes" only — other scopes reject it. Tags are normalized like `search.tags` (leading '#' stripped, ASCII lowercased). For keyword search over notes use `search` with scope="notes" instead — `list` does no full-text matching.
limitNoMaximum items to return (default: 50, max: 200). While `snippet` is enabled the max drops to 50 — set snippet=false to page with larger limits.
scopeYesContainer scope to list. REQUIRED. "folder" — browse indexed files under a disk directory (omit `path` to see all watched roots). "library" — list files in one library; requires `library`. "notes" — the user's local markdown card notes. Unknown values are rejected. Note: `search.scope` has a value also spelled "folder" that means "all indexed content" — a different concept; the two parameters do not share values.
offsetNoPagination offset counted from the first item in sort order (default: 0). Page order equals sort direction — "recent" pages newest → older, "oldest" earliest → newer, "name" A → Z. Use `has_more` to decide whether to fetch the next page.
libraryNoWhich library to list (scope="library" only, required there). Accepts `local://<library-id>` or a plain local library name. Call `list_libraries` first to see valid names. Cloud libraries (`cloud://owner/slug`) are served by the Linkly cloud endpoint, not by this local server.
snippetNoInclude a snippet per item. Defaults per scope: "notes" = true (first ~200 chars of the note body, YAML stripped); "folder" / "library" = false (when enabled, the snippet comes from the indexed abstract — no disk reads). While enabled, `limit` is capped at 50; the `snippet` field is always present and null when disabled or unavailable. Sending `null` or omitting yields the default.
doc_typesNoFilter by document type name, as reported in the doc_type field of each result (e.g. ["pdf", "md", "docx"]). Type name, not extension. This is not a closed set — newly supported types appear there without a schema change. Valid for scope="folder" and scope="library".
output_formatNoOutput format. Defaults per scope: "notes" = "json" (each item is a CAS handle — note_id + version — for note_save mode="edit", which does not fit a compact line format; markdown is a human-readable opt-in that still carries note_id and the full version inline). "folder" / "library" = "markdown" (compact, human-readable; set "json" for machine parsing). Sending `null` or omitting yields the default.
modified_afterNoInclusive lower bound on file modification time (scope="folder" / "library"). ISO 8601 UTC: a bare date ("2024-01-01") or a full RFC 3339 datetime. Read the current time from any tool response's `_meta.now` to compute relative dates.
modified_beforeNoInclusive upper bound on file modification time (scope="folder" / "library"). Same format as `modified_after`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description adds substantial behavior the annotation cannot carry: sorting doubles as the truncation policy so has_more means "most recent slice," deterministic path tiebreakers make offset pagination stable, snippet=on caps limit at 50, skip_reason marks unreadable content, and notes are filesystem-first with indexed=false until the watcher catches up. It also documents return-item fields and the readme pointer, which is real value beyond a read-only flag.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the routing chain, which is good, but the remainder is a single very dense paragraph mixing pagination, sorting, return fields, tag normalization, per-scope defaults, and size-field semantics. Nearly every sentence carries information, yet the lack of structure makes the dense middle hard to scan.

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?

A 12-parameter tool with one required field and no output schema needs a lot of coverage, and the description supplies it: return item fields, pagination contract, sorting anchors per scope, snippet/limit interaction, and readme discovery. Nothing an agent needs in order to call this correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds meaning the schema does not: per-scope defaults for snippet and output_format, the notes=json CAS-handle rationale for note_save mode="edit", tag normalization and reuse guidance, and the word_count vs char_count distinction (including that omitted char_count means not-yet-computed, not empty). These are semantic distinctions an agent cannot derive from the JSON Schema alone.

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 ("List the entries of a container WITHOUT full-text matching") and opens with an explicit routing chain placing it against explore, find_paths, outline/read, and search. An agent can identify this tool's job versus every listed sibling without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use boundaries ("a known container" vs find_paths for fuzzy names), names the alternative for keyword/semantic search, and states the required scope plus the ordering dependency ("call list_libraries first" for scope="library"). Exclusions such as "`tags` filters notes only" and "`list` does no full-text matching" close the gaps.

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