Skip to main content
Glama

Linkly AI

list

Read-only

[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 local 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.

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 (local only — not supported for cloud libraries). Page order equals sort direction; offset pagination is deterministic. total counts the whole filtered set for local scopes; for cloud libraries total is usually null (unknown) — except a zero-row first page (offset=0), which returns total: 0 (plus a hint when a path prefix was given, since an empty prefix and a nonexistent one are indistinguishable) — paginate by has_more; if you need the full picture and has_more stays true, switch to search with the library filter. Timestamps are Unix milliseconds.

Items carry doc_id (for read/grep/outline) plus title/path/doc_type/word_count/char_count/total_lines/has_outline/modified_at/keywords/skip_reason; notes items add note_id + real-time version (the CAS pair for note_save mode="edit"). When a listed local 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.

Scope: scope="folder"/"notes" and local libraries ride the Desktop tunnel (Desktop must be online). Pass library="cloud:///" with scope="library" to list a linked cloud library — served by the gateway regardless of Desktop state; cloud path is a RELATIVE directory prefix as returned by find_paths.

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
pathNoDirectory to list. For scope="folder" and LOCAL libraries: an absolute disk path (must fall inside watched roots / 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). For CLOUD libraries: a RELATIVE directory prefix as returned by find_paths (absolute forms are rejected). The path is an ADDRESS, not a pattern — no globs; if you only know a fuzzy name, call `find_paths` first.
sortNoSort order. "recent" (default): notes anchor on creation time (created_at desc); folder/library anchor on modification time (modified_at desc). "oldest": the same anchor, earliest first. "name": file basename, UTF-8 code point order, A → Z (local only; rejected for cloud libraries). Page order equals sort direction with a deterministic tiebreaker. 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 (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.
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). Use `has_more` to decide whether to fetch the next page.
libraryNoWhich library to list (scope="library" only, required there). Use `local://<library-id>` or a plain local library name for a local library (rides the Desktop tunnel), or `cloud://<owner>/<slug>` for a linked cloud library (served by the gateway). Call list_libraries first to see valid names.
snippetNoInclude a snippet per item. Defaults per scope: "notes" = true (first ~200 chars of the note body); "folder" / "library" = false (from the indexed abstract when enabled — 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 for note_save mode="edit"); "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 observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint annotations: it discloses that listing is a flat recursive sweep with no tree, that sorting doubles as the truncation policy so a truncated page is the newest slice rather than a random one, that offset pagination is deterministic, and that `total` is usually null for cloud libraries except a zero-row first page. It also discloses the size-field semantics (char_count null means uncomputed, not empty) and that cloud items never carry char_count — behavioral facts an agent cannot get from annotations.

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 boundaries and routing chain before any detail, which is the right order for a broad tool. It is dense and largely earns its length, but a few facts (sort anchors per scope, snippet limit cap, output_format defaults) are restated from the input schema and could be trimmed without loss.

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?

For a 12-parameter tool with no output schema, the description covers item field contents (doc_id, note_id + version CAS pair, skip_reason, has_outline), timestamp units, readme pointer, tunnel/prerequisite behavior per scope, and pagination strategy. Nothing an agent needs to call this correctly or interpret the response appears to be 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 description coverage is 100%, so the baseline is 3; the description nonetheless adds cross-parameter meaning, such as `limit` being capped at 50 while snippets are enabled and `name` sort being rejected for cloud libraries. Some of this retreads the schema's own parameter text (sort anchors, output_format defaults), so it is additive rather than transformative.

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 immediately distinguishes itself from four siblings: explore, find_paths, outline/read, and search. The explicit tool-boundaries chain at the top makes the distinctions unambiguous without opening any 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 routing rules rather than general context: use find_paths for fuzzy names, call list_libraries first for scope="library", switch to `search` with the `library` filter when has_more stays true, and read the `readme` pointer first to understand a folder's purpose. It also states prerequisites (Desktop must be online for folder/notes/local libraries) and the cloud alternative that works regardless of Desktop state.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources