Skip to main content
Glama
Linkly AI

Linkly AI

Official

find_paths

Read-only

Locate folder paths in indexed documents by fuzzy keyword match, then pass a returned path to search as a glob to scope results to the right local or cloud library.

Instructions

Locate folder paths in indexed documents by fuzzy keyword match on the directory part of the file path. Returns top folder candidates ordered by file count — pass a distinctive segment of any returned path back to search as path_glob (substring-matched, so *xinWeChat* works as well as a full prefix). Cloud results include the source library reference (cloud://owner/slug); pass it as library to your follow-up search so the glob is scoped to the right backend.

Call BEFORE search when the user names a container with a fuzzy or cross-language word ("in my WeChat", "Notion notes") and the on-disk path is unknown. Pass multiple variants in patterns in one call (e.g. ["WeChat", "微信", "wxid"]) — patterns are OR-ed and substring-matched. limit caps candidates (default 10, max 50). Skip this tool for pure content queries or file-type filters — call search directly.

Scope: omit library to search paths across your local indexed content (default — Desktop tunnel must be online; cloud libraries are NOT included). Pass library="local://<id>" to scope to one local library, or library="cloud://<owner>/<slug>" to scope to a linked cloud library. To search paths in cloud libraries, call list_libraries first to see what is available, then call find_paths once per cloud library. Note: cloud libraries with a flat structure (no sub-folders) yield no candidates — use search directly instead.

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": {
      "patterns": "<patterns>"
    },
    "name": "find_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of folder candidates to return (default 10, max 50)
libraryNoRestrict to a specific library. Use `local://<library-id>` to target a local library. Plain string is interpreted as a local library name for backward compatibility. Use list_libraries to see available libraries. Omit to search all indexed documents.
patternsYesKeywords to substring-match against the file path. Multiple keywords are OR-ed — pass cross-language or spelling variants in one call to maximise recall (e.g. ["WeChat", "微信"], ["WeChat", "wxid", "xinWeChat"]). Case-insensitive for ASCII; CJK matches literally. Max 10 patterns; each up to 64 UTF-8 bytes.
output_formatNoOutput format. Defaults to "markdown" (human-readable); set to "json" for structured JSON (machine-parseable). Sending `null` or omitting the field both yield the default.

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, but the description adds substantial behavior: results are ordered by file count, cloud results carry a `cloud://owner/slug` reference, local scope requires the Desktop tunnel to be online, and flat-structure cloud libraries yield no candidates. These are non-obvious operational constraints an agent could not infer from the annotations or schema.

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 core purpose and the search follow-up, then organized into workflow, examples, and a bolded Scope section. It is somewhat long and repeats the `limit` default/max already in the schema, but nearly every sentence carries operational value.

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?

No output schema exists, so the description carries the return-value burden — and it does, describing ranked folder candidates and cloud library references. Scope defaults, the tunnel prerequisite, and the flat-structure caveat make it complete for a 4-parameter tool.

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?

With 100% schema coverage the baseline is 3, but the description adds meaning beyond the schema: it explains that patterns are OR-ed and substring-matched and should carry cross-language variants, and it clarifies the default local scope versus `local://`/`cloud://` library targeting. This goes beyond restating the schema text.

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 ('Locate folder paths in indexed documents') plus the matching mechanism ('fuzzy keyword match on the directory part of the file path'). This clearly separates it from `search`, which matches file content rather than directory paths.

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 ('Call BEFORE `search` when the user names a container with a fuzzy or cross-language word'), explicit when-not ('Skip this tool for pure content queries or file-type filters — call `search` directly'), and a prerequisite for cloud scoping ('call `list_libraries` first'). It also names the exact follow-up ('pass... back to `search` as `path_glob`').

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